Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_Synchronous_Modelica_Synchronous.Examples.Elementary.BooleanSignals.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.BooleanSignals.UpSample,fileNamePrefix="Modelica_Synchronous_Modelica_Synchronous_Examples_Elementary_BooleanSignals_UpSample",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica_Synchronous.Examples.Elementary.BooleanSignals.UpSample,fileNamePrefix="Modelica_Synchronous_Modelica_Synchronous_Examples_Elementary_BooleanSignals_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.002324/0.002324, allocations: 179 kB / 8.051 MB, free: 1.023 MB / 5.871 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 2.618/2.618, allocations: 205.3 MB / 213.8 MB, free: 13.77 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.00114/0.00114, allocations: 92.77 kB / 261.8 MB, free: 13.45 MB / 218.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica_Synchronous 0.93.0-master/package.mo): time 0.1226/0.1226, allocations: 12.58 MB / 322.3 MB, free: 0.793 MB / 266.7 MB Notification: Performance of FrontEnd - loaded program: time 2.402e-05/2.441e-05, allocations: 7.516 kB / 379 MB, free: 75.2 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09942/0.09948, allocations: 50.38 MB / 429.4 MB, free: 24.84 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.478/0.5775, allocations: 81.54 MB / 0.499 GB, free: 11.77 MB / 330.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002822/0.5779, allocations: 80.8 kB / 0.4991 GB, free: 11.77 MB / 330.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.03439/0.6123, allocations: 8.367 MB / 0.5072 GB, free: 9.758 MB / 330.7 MB Notification: Performance of FrontEnd: time 1.793e-06/0.6123, allocations: 0 / 0.5072 GB, free: 9.758 MB / 330.7 MB Notification: Performance of Transformations before backend: time 3.182e-05/0.6124, allocations: 3.844 kB / 0.5072 GB, free: 9.758 MB / 330.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.000782/0.6132, allocations: 0.5064 MB / 0.5077 GB, free: 9.277 MB / 330.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.986e-05/0.6132, allocations: 15.33 kB / 0.5077 GB, free: 9.273 MB / 330.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 8.852e-05/0.6133, allocations: 23.16 kB / 0.5078 GB, free: 9.262 MB / 330.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0005363/0.6139, allocations: 278.4 kB / 0.508 GB, free: 9.02 MB / 330.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.707e-05/0.6139, allocations: 3.969 kB / 0.508 GB, free: 9.02 MB / 330.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.392e-05/0.614, allocations: 11.27 kB / 0.508 GB, free: 9.016 MB / 330.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.0002042/0.6142, allocations: 62.61 kB / 0.5081 GB, free: 9.012 MB / 330.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0005286/0.6147, allocations: 268.3 kB / 0.5084 GB, free: 8.879 MB / 330.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.26e-05/0.6148, allocations: 0 / 0.5084 GB, free: 8.879 MB / 330.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.17e-05/0.6148, allocations: 0 / 0.5084 GB, free: 8.879 MB / 330.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.492e-06/0.6148, allocations: 3.812 kB / 0.5084 GB, free: 8.879 MB / 330.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0005914/0.6154, allocations: 362.2 kB / 0.5087 GB, free: 8.574 MB / 330.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002923/0.6157, allocations: 159.2 kB / 0.5089 GB, free: 8.488 MB / 330.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001407/0.6159, allocations: 77.62 kB / 0.5089 GB, free: 8.457 MB / 330.7 MB Notification: Performance of preOpt evalFunc (simulation): time 3.506e-05/0.6159, allocations: 6.969 kB / 0.5089 GB, free: 8.457 MB / 330.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001503/0.6161, allocations: 72.7 kB / 0.509 GB, free: 8.398 MB / 330.7 MB Notification: Performance of pre-optimization done (n=22): time 2.645e-06/0.6161, allocations: 0 / 0.509 GB, free: 8.398 MB / 330.7 MB Notification: Performance of matching and sorting (n=22): time 0.0004258/0.6165, allocations: 166.5 kB / 0.5092 GB, free: 8.336 MB / 330.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.713e-05/0.6166, allocations: 136 kB / 0.5093 GB, free: 8.18 MB / 330.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003632/0.617, allocations: 238.4 kB / 0.5095 GB, free: 8.062 MB / 330.7 MB Notification: Performance of collectPreVariables (initialization): time 2.463e-05/0.617, allocations: 33.48 kB / 0.5096 GB, free: 8.027 MB / 330.7 MB Notification: Performance of collectInitialEqns (initialization): time 7.104e-05/0.6171, allocations: 119.3 kB / 0.5097 GB, free: 7.934 MB / 330.7 MB Notification: Performance of collectInitialBindings (initialization): time 3.534e-05/0.6172, allocations: 27.05 kB / 0.5097 GB, free: 7.918 MB / 330.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 9.197e-06/0.6172, allocations: 0 / 0.5097 GB, free: 7.918 MB / 330.7 MB Notification: Performance of setup shared object (initialization): time 7.554e-05/0.6173, allocations: 337.4 kB / 0.51 GB, free: 7.594 MB / 330.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 7.875e-05/0.6174, allocations: 32.88 kB / 0.5101 GB, free: 7.59 MB / 330.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001383/0.6175, allocations: 154.7 kB / 0.5102 GB, free: 7.422 MB / 330.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001238/0.6176, allocations: 56.56 kB / 0.5103 GB, free: 7.406 MB / 330.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.298e-06/0.6177, allocations: 4 kB / 0.5103 GB, free: 7.402 MB / 330.7 MB Notification: Performance of matching and sorting (n=28) (initialization): time 0.0003794/0.618, allocations: 184.9 kB / 0.5104 GB, free: 7.332 MB / 330.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.997e-05/0.6181, allocations: 8.219 kB / 0.5104 GB, free: 7.332 MB / 330.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.015e-05/0.6181, allocations: 7.828 kB / 0.5104 GB, free: 7.328 MB / 330.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.437e-05/0.6181, allocations: 7.844 kB / 0.5105 GB, free: 7.324 MB / 330.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001506/0.6183, allocations: 23.03 kB / 0.5105 GB, free: 7.316 MB / 330.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.231e-05/0.6183, allocations: 9.391 kB / 0.5105 GB, free: 7.312 MB / 330.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.000175/0.6185, allocations: 17.12 kB / 0.5105 GB, free: 7.305 MB / 330.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.088e-05/0.6185, allocations: 14.69 kB / 0.5105 GB, free: 7.305 MB / 330.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.table1.combiTimeTable.nextTimeEvent,sample.u,table1.combiTimeTable.nextTimeEvent,$PRE.table1.combiTimeTable.nextTimeEventScaled,table1.combiTimeTable.nextTimeEventScaled,and1.y,and1.u2,and1.u1,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 () * 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.0001027/0.6186, allocations: 122 kB / 0.5106 GB, free: 7.191 MB / 330.7 MB Notification: Performance of postOpt createAliasVarsForOutputStates (simulation): time 0.0003369/0.619, allocations: 162 kB / 0.5108 GB, free: 7.129 MB / 330.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.742e-05/0.6191, allocations: 31.23 kB / 0.5108 GB, free: 7.109 MB / 330.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0002652/0.6193, allocations: 109.8 kB / 0.5109 GB, free: 7.062 MB / 330.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.011e-06/0.6194, allocations: 3.844 kB / 0.5109 GB, free: 7.062 MB / 330.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.073e-06/0.6194, allocations: 0 / 0.5109 GB, free: 7.062 MB / 330.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.564e-06/0.6194, allocations: 7.922 kB / 0.5109 GB, free: 7.055 MB / 330.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002086/0.6196, allocations: 215.8 kB / 0.5111 GB, free: 6.863 MB / 330.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.666e-06/0.6196, allocations: 0 / 0.5111 GB, free: 6.863 MB / 330.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 7.621e-05/0.6197, allocations: 15.61 kB / 0.5112 GB, free: 6.855 MB / 330.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 6.682e-06/0.6197, allocations: 3.844 kB / 0.5112 GB, free: 6.855 MB / 330.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.829e-05/0.6198, allocations: 3.812 kB / 0.5112 GB, free: 6.855 MB / 330.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 4.158e-06/0.6198, allocations: 7.844 kB / 0.5112 GB, free: 6.852 MB / 330.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.467e-06/0.6198, allocations: 0 / 0.5112 GB, free: 6.852 MB / 330.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003522/0.6201, allocations: 232.1 kB / 0.5114 GB, free: 6.703 MB / 330.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001411/0.6203, allocations: 129.8 kB / 0.5115 GB, free: 6.582 MB / 330.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.449e-05/0.6204, allocations: 7.906 kB / 0.5115 GB, free: 6.578 MB / 330.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001274/0.6205, allocations: 3.844 kB / 0.5115 GB, free: 6.578 MB / 330.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.537e-05/0.6206, allocations: 19.25 kB / 0.5115 GB, free: 6.566 MB / 330.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.053e-05/0.6206, allocations: 3.469 kB / 0.5115 GB, free: 6.566 MB / 330.7 MB Notification: Performance of sorting global known variables: time 0.0002346/0.6208, allocations: 189.3 kB / 0.5117 GB, free: 6.473 MB / 330.7 MB Notification: Performance of sort global known variables: time 6.61e-07/0.6208, allocations: 0 / 0.5117 GB, free: 6.473 MB / 330.7 MB Notification: Performance of remove unused functions: time 0.0004597/0.6213, allocations: 34.53 kB / 0.5118 GB, free: 6.469 MB / 330.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,sample.u,table1.combiTimeTable.nextTimeEvent,table1.combiTimeTable.nextTimeEventScaled,upSample1.y,upSample1.b_super,upSample1.u_super,upSample2.y,upSample2.b_super,upSample2.u_super,and1.u1,and1.u2,and1.y,sample.y,upSample1.u,upSample1.dummy,upSample1.b,upSample2.u,upSample2.dummy,upSample2.b) * Number of discrete states: 2 (table1.combiTimeTable.nextTimeEvent,table1.combiTimeTable.nextTimeEventScaled) * Top-level inputs: 0 Notification: Strong component statistics for simulation (23): * Single equations (assignments): 21 * 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.001673/0.623, allocations: 1.238 MB / 0.513 GB, free: 5.465 MB / 330.7 MB Notification: Performance of simCode: created initialization part: time 0.0003882/0.6234, allocations: 129.3 kB / 0.5131 GB, free: 5.445 MB / 330.7 MB Notification: Performance of simCode: created event and clocks part: time 3.867e-06/0.6235, allocations: 0 / 0.5131 GB, free: 5.445 MB / 330.7 MB Notification: Performance of simCode: created simulation system equations: time 6.91e-05/0.6235, allocations: 26.62 kB / 0.5131 GB, free: 5.441 MB / 330.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0006275/0.6242, allocations: 92.11 kB / 0.5132 GB, free: 5.422 MB / 330.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.00109/0.6253, allocations: 357.5 kB / 0.5135 GB, free: 5.195 MB / 330.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000224/0.6255, allocations: 0.7648 MB / 0.5143 GB, free: 4.457 MB / 330.7 MB Notification: Performance of simCode: alias equations: time 0.0001539/0.6257, allocations: 33.98 kB / 0.5143 GB, free: 4.441 MB / 330.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001448/0.6259, allocations: 69.28 kB / 0.5144 GB, free: 4.426 MB / 330.7 MB Notification: Performance of SimCode: time 1.062e-06/0.6259, allocations: 0 / 0.5144 GB, free: 4.426 MB / 330.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.04847/0.6744, allocations: 4.576 MB / 0.5189 GB, free: 2.211 MB / 330.7 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0002619/0.6747, allocations: 195.1 kB / 0.519 GB, free: 2.02 MB / 330.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 2.738/3.413, allocations: 0 / 0.519 GB, free: 2.02 MB / 330.7 MB (rm -f Modelica_Synchronous_Modelica_Synchronous.Examples.Elementary.BooleanSignals.UpSample.pipe ; mkfifo Modelica_Synchronous_Modelica_Synchronous.Examples.Elementary.BooleanSignals.UpSample.pipe ; head -c 1048576 < Modelica_Synchronous_Modelica_Synchronous.Examples.Elementary.BooleanSignals.UpSample.pipe >> ../files/Modelica_Synchronous_Modelica_Synchronous.Examples.Elementary.BooleanSignals.UpSample.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=Modelica_Synchronous_Modelica_Synchronous.Examples.Elementary.BooleanSignals.UpSample_res.mat --tempDir=temp_Modelica_Synchronous_Modelica_Synchronous_Examples_Elementary_BooleanSignals_UpSample_fmu --startTime=0 --stopTime=0.09 --timeout=50 --tolerance=1e-06 Modelica_Synchronous_Modelica_Synchronous_Examples_Elementary_BooleanSignals_UpSample.fmu > Modelica_Synchronous_Modelica_Synchronous.Examples.Elementary.BooleanSignals.UpSample.pipe 2>&1) TODO: How the !@#!# did the simulation report success but simulation result Modelica_Synchronous_Modelica_Synchronous.Examples.Elementary.BooleanSignals.UpSample_res.mat does not exist to compare? outputFormat=mat