Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_Synchronous_Modelica_Synchronous.Examples.Elementary.IntegerSignals.UpSample.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica_Synchronous 0.93.0-master/package.mo", uses=false) Using package Modelica_Synchronous with version 0.93.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica_Synchronous 0.93.0-master/package.mo) Using package ModelicaServices with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo) Using package Modelica with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo) Using package Complex with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo) Running command: "" <> buildModelFMU(Modelica_Synchronous.Examples.Elementary.IntegerSignals.UpSample,fileNamePrefix="Modelica_Synchronous_Modelica_Synchronous_Examples_Elementary_IntegerSignals_UpSample",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica_Synchronous.Examples.Elementary.IntegerSignals.UpSample,fileNamePrefix="Modelica_Synchronous_Modelica_Synchronous_Examples_Elementary_IntegerSignals_UpSample",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo): time 0.001334/0.001334, allocations: 171.5 kB / 15.81 MB, free: 6.285 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.539/1.539, allocations: 205.4 MB / 221.9 MB, free: 13.83 MB / 186.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo): time 0.0008058/0.000806, allocations: 94.34 kB / 270.3 MB, free: 13.35 MB / 234.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica_Synchronous 0.93.0-master/package.mo): time 0.08264/0.08264, allocations: 12.6 MB / 331.2 MB, free: 10.3 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0004261/0.000426, allocations: 13.59 kB / 392.1 MB, free: 54.79 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.08736/0.0878, allocations: 50.39 MB / 442.5 MB, free: 10.84 MB / 282.7 MB Notification: Performance of NFInst.instantiate(Modelica_Synchronous.Examples.Elementary.IntegerSignals.UpSample): time 0.001782/0.08964, allocations: 1.611 MB / 444.1 MB, free: 9.211 MB / 282.7 MB Notification: Performance of NFInst.instExpressions: time 0.001304/0.09096, allocations: 1.054 MB / 445.2 MB, free: 8.148 MB / 282.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001321/0.09111, allocations: 3.938 kB / 445.2 MB, free: 8.145 MB / 282.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0002688/0.09138, allocations: 55.8 kB / 445.2 MB, free: 8.09 MB / 282.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0001808/0.09157, allocations: 79.72 kB / 445.3 MB, free: 8.012 MB / 282.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0005898/0.09218, allocations: 250.3 kB / 445.6 MB, free: 7.77 MB / 282.7 MB Notification: Performance of NFFlatten.flatten: time 0.0001856/0.09237, allocations: 183.4 kB / 445.7 MB, free: 7.59 MB / 282.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001172/0.09249, allocations: 37.64 kB / 445.8 MB, free: 7.551 MB / 282.7 MB Notification: Performance of NFEvalConstants.evaluate: time 8.863e-05/0.09259, allocations: 79.64 kB / 445.8 MB, free: 7.473 MB / 282.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001067/0.0927, allocations: 87.58 kB / 445.9 MB, free: 7.387 MB / 282.7 MB Notification: Performance of NFPackage.collectConstants: time 2.296e-05/0.09273, allocations: 8 kB / 445.9 MB, free: 7.379 MB / 282.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001116/0.09285, allocations: 39.98 kB / 446 MB, free: 7.34 MB / 282.7 MB Notification: Performance of NFScalarize.scalarize: time 5.964e-05/0.09292, allocations: 67.67 kB / 446 MB, free: 7.273 MB / 282.7 MB Notification: Performance of NFVerifyModel.verify: time 4.895e-05/0.09297, allocations: 57.58 kB / 446.1 MB, free: 7.211 MB / 282.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0001993/0.09318, allocations: 204.4 kB / 446.3 MB, free: 7.012 MB / 282.7 MB Notification: Performance of FrontEnd - DAE generated: time 4.188e-06/0.09319, allocations: 0 / 446.3 MB, free: 7.012 MB / 282.7 MB Notification: Performance of FrontEnd: time 1.693e-06/0.0932, allocations: 0 / 446.3 MB, free: 7.012 MB / 282.7 MB Notification: Performance of Transformations before backend: time 8.606e-06/0.09321, allocations: 0 / 446.3 MB, free: 7.012 MB / 282.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 31 * Number of variables: 31 Notification: Performance of Generate backend data structure: time 0.0006681/0.09388, allocations: 0.5389 MB / 446.8 MB, free: 6.418 MB / 282.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.717e-05/0.09393, allocations: 8.031 kB / 446.8 MB, free: 6.41 MB / 282.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 4.576e-05/0.09398, allocations: 50.55 kB / 446.9 MB, free: 6.352 MB / 282.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.926e-05/0.09403, allocations: 27.62 kB / 446.9 MB, free: 6.324 MB / 282.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002907/0.09433, allocations: 294.3 kB / 447.2 MB, free: 5.996 MB / 282.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.686e-05/0.09436, allocations: 12 kB / 447.2 MB, free: 5.984 MB / 282.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.363e-05/0.09439, allocations: 12 kB / 447.2 MB, free: 5.973 MB / 282.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004939/0.09488, allocations: 327 kB / 447.6 MB, free: 5.625 MB / 282.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.095e-05/0.09491, allocations: 0 / 447.6 MB, free: 5.625 MB / 282.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.688e-05/0.09493, allocations: 7.938 kB / 447.6 MB, free: 5.617 MB / 282.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.562e-06/0.09494, allocations: 4 kB / 447.6 MB, free: 5.613 MB / 282.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001428/0.09509, allocations: 71.89 kB / 447.6 MB, free: 5.543 MB / 282.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0004165/0.09551, allocations: 418.3 kB / 448 MB, free: 5.078 MB / 282.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002846/0.09581, allocations: 191.8 kB / 448.2 MB, free: 4.863 MB / 282.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001282/0.09595, allocations: 102.6 kB / 448.3 MB, free: 4.754 MB / 282.7 MB Notification: Performance of preOpt evalFunc (simulation): time 2.629e-05/0.09598, allocations: 4 kB / 448.3 MB, free: 4.75 MB / 282.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001475/0.09614, allocations: 79.38 kB / 448.4 MB, free: 4.66 MB / 282.7 MB Notification: Performance of pre-optimization done (n=22): time 1.653e-06/0.09615, allocations: 0 / 448.4 MB, free: 4.66 MB / 282.7 MB Notification: Performance of matching and sorting (n=22): time 0.0004544/0.09661, allocations: 257.8 kB / 448.7 MB, free: 4.402 MB / 282.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.805e-05/0.09668, allocations: 182.2 kB / 448.8 MB, free: 4.188 MB / 282.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002521/0.09694, allocations: 342.9 kB / 449.2 MB, free: 3.844 MB / 282.7 MB Notification: Performance of collectPreVariables (initialization): time 1.716e-05/0.09697, allocations: 33.7 kB / 449.2 MB, free: 3.805 MB / 282.7 MB Notification: Performance of collectInitialEqns (initialization): time 6.296e-05/0.09703, allocations: 124.7 kB / 449.3 MB, free: 3.676 MB / 282.7 MB Notification: Performance of collectInitialBindings (initialization): time 2.44e-05/0.09706, allocations: 31.7 kB / 449.4 MB, free: 3.645 MB / 282.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 7.354e-06/0.09708, allocations: 4 kB / 449.4 MB, free: 3.641 MB / 282.7 MB Notification: Performance of setup shared object (initialization): time 5.71e-05/0.09714, allocations: 334.8 kB / 449.7 MB, free: 3.305 MB / 282.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 7.89e-05/0.09722, allocations: 40.44 kB / 449.7 MB, free: 3.266 MB / 282.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001263/0.09736, allocations: 199.2 kB / 449.9 MB, free: 3.012 MB / 282.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001049/0.09747, allocations: 63.92 kB / 450 MB, free: 2.949 MB / 282.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.545e-06/0.09748, allocations: 0 / 450 MB, free: 2.949 MB / 282.7 MB Notification: Performance of matching and sorting (n=28) (initialization): time 0.0003059/0.09779, allocations: 237 kB / 450.2 MB, free: 2.711 MB / 282.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.765e-05/0.09782, allocations: 8 kB / 450.2 MB, free: 2.703 MB / 282.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.895e-06/0.09783, allocations: 4 kB / 450.2 MB, free: 2.699 MB / 282.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.979e-05/0.09786, allocations: 7.953 kB / 450.2 MB, free: 2.691 MB / 282.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001513/0.09801, allocations: 43.86 kB / 450.3 MB, free: 2.648 MB / 282.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 9.418e-06/0.09803, allocations: 4 kB / 450.3 MB, free: 2.645 MB / 282.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001117/0.09815, allocations: 24.3 kB / 450.3 MB, free: 2.621 MB / 282.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.725e-05/0.09818, allocations: 16 kB / 450.3 MB, free: 2.605 MB / 282.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 18 * Number of states: 0 () * Number of discrete variables: 26 ($whenCondition1,$PRE.table.combiTimeTable.nextTimeEvent,table.y,table.combiTimeTable.nextTimeEvent,$PRE.table.combiTimeTable.nextTimeEventScaled,table.combiTimeTable.nextTimeEventScaled,sum.y,sum.u[2],sum.u[1],upSample2.u_super,upSample2.b_super,$CLKPRE.upSample2.b_super,upSample2.y,upSample1.u_super,upSample1.b_super,$CLKPRE.upSample1.b_super,upSample1.y,upSample2.b,$CLKPRE.upSample2.b,upSample2.dummy,upSample2.u,upSample1.b,$CLKPRE.upSample1.b,upSample1.dummy,upSample1.u,sample.y) * Number of discrete states: 0 () * Number of clocked states: 4 (upSample2.b_super,upSample1.b_super,upSample2.b,upSample1.b) * Top-level inputs: 0 Notification: Strong component statistics for initialization (28): * Single equations (assignments): 28 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.0001448/0.09833, allocations: 179.7 kB / 450.5 MB, free: 2.422 MB / 282.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001582/0.09849, allocations: 141.2 kB / 450.6 MB, free: 2.277 MB / 282.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 6.163e-05/0.09856, allocations: 29.73 kB / 450.7 MB, free: 2.242 MB / 282.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.386e-06/0.09857, allocations: 7.938 kB / 450.7 MB, free: 2.234 MB / 282.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.801e-06/0.09858, allocations: 3.953 kB / 450.7 MB, free: 2.23 MB / 282.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.23e-06/0.09859, allocations: 4.312 kB / 450.7 MB, free: 2.227 MB / 282.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001762/0.09877, allocations: 265.5 kB / 450.9 MB, free: 1.918 MB / 282.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.985e-06/0.09878, allocations: 4 kB / 450.9 MB, free: 1.914 MB / 282.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001168/0.0989, allocations: 31.92 kB / 451 MB, free: 1.883 MB / 282.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.565e-06/0.09891, allocations: 0 / 451 MB, free: 1.883 MB / 282.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.494e-05/0.09893, allocations: 8 kB / 451 MB, free: 1.875 MB / 282.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.693e-06/0.09894, allocations: 0 / 451 MB, free: 1.875 MB / 282.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.172e-06/0.09895, allocations: 0 / 451 MB, free: 1.875 MB / 282.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003007/0.09925, allocations: 256.7 kB / 451.2 MB, free: 1.602 MB / 282.7 MB Notification: Performance of postOpt removeConstants (simulation): time 8.37e-05/0.09935, allocations: 128.7 kB / 451.4 MB, free: 1.457 MB / 282.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.437e-05/0.09939, allocations: 4.094 kB / 451.4 MB, free: 1.453 MB / 282.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 8.254e-05/0.09948, allocations: 11.94 kB / 451.4 MB, free: 1.441 MB / 282.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.386e-05/0.09953, allocations: 11.98 kB / 451.4 MB, free: 1.43 MB / 282.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.949e-05/0.09955, allocations: 7.984 kB / 451.4 MB, free: 1.422 MB / 282.7 MB Notification: Performance of sorting global known variables: time 0.0001799/0.09974, allocations: 253.9 kB / 451.6 MB, free: 1.176 MB / 282.7 MB Notification: Performance of sort global known variables: time 1.2e-07/0.09974, allocations: 0 / 451.6 MB, free: 1.176 MB / 282.7 MB Notification: Performance of remove unused functions: time 0.0002772/0.1, allocations: 52 kB / 451.7 MB, free: 1.125 MB / 282.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 3 * Number of states: 0 () * Number of discrete variables: 20 ($whenCondition1,table.y,table.combiTimeTable.nextTimeEvent,table.combiTimeTable.nextTimeEventScaled,upSample1.y,upSample1.b_super,upSample1.u_super,upSample2.y,upSample2.b_super,upSample2.u_super,sum.u[1],sum.u[2],sum.y,sample.y,upSample1.u,upSample1.dummy,upSample1.b,upSample2.u,upSample2.dummy,upSample2.b) * Number of discrete states: 2 (table.combiTimeTable.nextTimeEventScaled,table.combiTimeTable.nextTimeEvent) * Number of clocked states: 4 (upSample1.b_super,upSample2.b_super,upSample1.b,upSample2.b) * Top-level inputs: 0 Notification: Strong component statistics for simulation (22): * Single equations (assignments): 20 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 2 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.001322/0.1014, allocations: 1.18 MB / 452.9 MB, free: 15.91 MB / 298.7 MB Notification: Performance of simCode: created initialization part: time 0.0003088/0.1017, allocations: 159.7 kB / 453 MB, free: 15.76 MB / 298.7 MB Notification: Performance of simCode: created event and clocks part: time 2.305e-06/0.1017, allocations: 0 / 453 MB, free: 15.76 MB / 298.7 MB Notification: Performance of simCode: created simulation system equations: time 7.541e-05/0.1018, allocations: 23.98 kB / 453.1 MB, free: 15.73 MB / 298.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000483/0.1023, allocations: 121.8 kB / 453.2 MB, free: 15.61 MB / 298.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002134/0.1044, allocations: 1.506 MB / 454.7 MB, free: 14 MB / 298.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004079/0.1048, allocations: 0.7677 MB / 455.4 MB, free: 13.21 MB / 298.7 MB Notification: Performance of simCode: alias equations: time 0.000113/0.105, allocations: 34.5 kB / 455.5 MB, free: 13.18 MB / 298.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001231/0.1051, allocations: 79.41 kB / 455.6 MB, free: 13.1 MB / 298.7 MB Notification: Performance of SimCode: time 4.41e-07/0.1051, allocations: 0 / 455.6 MB, free: 13.1 MB / 298.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.01894/0.124, allocations: 5.69 MB / 461.3 MB, free: 7.406 MB / 298.7 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0002733/0.1244, allocations: 254.6 kB / 461.5 MB, free: 7.066 MB / 298.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 1.921/2.046, allocations: 0 / 461.5 MB, free: 7.066 MB / 298.7 MB (rm -f Modelica_Synchronous_Modelica_Synchronous.Examples.Elementary.IntegerSignals.UpSample.pipe ; mkfifo Modelica_Synchronous_Modelica_Synchronous.Examples.Elementary.IntegerSignals.UpSample.pipe ; head -c 1048576 < Modelica_Synchronous_Modelica_Synchronous.Examples.Elementary.IntegerSignals.UpSample.pipe >> ../files/Modelica_Synchronous_Modelica_Synchronous.Examples.Elementary.IntegerSignals.UpSample.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=Modelica_Synchronous_Modelica_Synchronous.Examples.Elementary.IntegerSignals.UpSample_res.mat --tempDir=temp_Modelica_Synchronous_Modelica_Synchronous_Examples_Elementary_IntegerSignals_UpSample_fmu --startTime=0 --stopTime=0.09 --timeout=50 --tolerance=1e-06 Modelica_Synchronous_Modelica_Synchronous_Examples_Elementary_IntegerSignals_UpSample.fmu > Modelica_Synchronous_Modelica_Synchronous.Examples.Elementary.IntegerSignals.UpSample.pipe 2>&1) TODO: How the !@#!# did the simulation report success but simulation result Modelica_Synchronous_Modelica_Synchronous.Examples.Elementary.IntegerSignals.UpSample_res.mat does not exist to compare? outputFormat=mat