Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_Synchronous_Modelica_Synchronous.Examples.Elementary.IntegerSignals.SuperSample.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.SuperSample,fileNamePrefix="Modelica_Synchronous_Modelica_Synchronous_Examples_Elementary_IntegerSignals_SuperSample",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica_Synchronous.Examples.Elementary.IntegerSignals.SuperSample,fileNamePrefix="Modelica_Synchronous_Modelica_Synchronous_Examples_Elementary_IntegerSignals_SuperSample",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.001576/0.00158, allocations: 182 kB / 13.23 MB, free: 2.086 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 2.161/2.161, allocations: 205.2 MB / 219 MB, free: 9.203 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.001672/0.001671, allocations: 100.8 kB / 267.1 MB, free: 9.27 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.1665/0.1665, allocations: 12.6 MB / 327.8 MB, free: 12.49 MB / 282.7 MB Notification: Performance of FrontEnd - loaded program: time 3.65e-05/3.661e-05, allocations: 4 kB / 386.1 MB, free: 69.51 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09378/0.09385, allocations: 50.37 MB / 436.5 MB, free: 19.12 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.5437/0.6376, allocations: 81.79 MB / 0.5061 GB, free: 11.92 MB / 330.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0003057/0.638, allocations: 81.75 kB / 0.5062 GB, free: 11.91 MB / 330.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.02691/0.6649, allocations: 6.458 MB / 0.5125 GB, free: 9.523 MB / 330.7 MB Notification: Performance of FrontEnd: time 2.094e-06/0.665, allocations: 0 / 0.5125 GB, free: 9.523 MB / 330.7 MB Notification: Performance of Transformations before backend: time 3.089e-05/0.665, allocations: 3.719 kB / 0.5125 GB, free: 9.523 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: 14 * Number of variables: 14 Notification: Performance of Generate backend data structure: time 0.0007023/0.6657, allocations: 0.499 MB / 0.513 GB, free: 9.039 MB / 330.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.088e-05/0.6658, allocations: 7.469 kB / 0.513 GB, free: 9.039 MB / 330.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 5.247e-05/0.6659, allocations: 41.67 kB / 0.513 GB, free: 8.996 MB / 330.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 7.729e-05/0.666, allocations: 23.25 kB / 0.5131 GB, free: 8.984 MB / 330.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0005447/0.6665, allocations: 290.9 kB / 0.5133 GB, free: 8.738 MB / 330.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.004e-05/0.6665, allocations: 0 / 0.5133 GB, free: 8.738 MB / 330.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.501e-05/0.6666, allocations: 10.94 kB / 0.5133 GB, free: 8.738 MB / 330.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003717/0.667, allocations: 154.8 kB / 0.5135 GB, free: 8.629 MB / 330.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.324e-05/0.667, allocations: 3.984 kB / 0.5135 GB, free: 8.625 MB / 330.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.981e-05/0.667, allocations: 3.875 kB / 0.5135 GB, free: 8.625 MB / 330.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.203e-06/0.667, allocations: 0 / 0.5135 GB, free: 8.625 MB / 330.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001299/0.6672, allocations: 37.05 kB / 0.5135 GB, free: 8.617 MB / 330.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0007404/0.6679, allocations: 404.8 kB / 0.5139 GB, free: 8.281 MB / 330.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002294/0.6682, allocations: 114.8 kB / 0.514 GB, free: 8.195 MB / 330.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 9.093e-05/0.6683, allocations: 39.52 kB / 0.5141 GB, free: 8.172 MB / 330.7 MB Notification: Performance of preOpt evalFunc (simulation): time 3.365e-05/0.6683, allocations: 11.58 kB / 0.5141 GB, free: 8.164 MB / 330.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001873/0.6685, allocations: 73.42 kB / 0.5142 GB, free: 8.109 MB / 330.7 MB Notification: Performance of pre-optimization done (n=9): time 3.367e-06/0.6686, allocations: 7.812 kB / 0.5142 GB, free: 8.105 MB / 330.7 MB Notification: Performance of matching and sorting (n=9): time 0.0004022/0.669, allocations: 118.6 kB / 0.5143 GB, free: 8.051 MB / 330.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.838e-05/0.6691, allocations: 162 kB / 0.5144 GB, free: 7.859 MB / 330.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0004614/0.6695, allocations: 297.1 kB / 0.5147 GB, free: 7.734 MB / 330.7 MB Notification: Performance of collectPreVariables (initialization): time 2.494e-05/0.6696, allocations: 25.7 kB / 0.5147 GB, free: 7.703 MB / 330.7 MB Notification: Performance of collectInitialEqns (initialization): time 9.145e-05/0.6697, allocations: 131.6 kB / 0.5149 GB, free: 7.609 MB / 330.7 MB Notification: Performance of collectInitialBindings (initialization): time 3.534e-05/0.6697, allocations: 26.7 kB / 0.5149 GB, free: 7.594 MB / 330.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 8.847e-06/0.6697, allocations: 7.438 kB / 0.5149 GB, free: 7.59 MB / 330.7 MB Notification: Performance of setup shared object (initialization): time 7.78e-05/0.6698, allocations: 337.3 kB / 0.5152 GB, free: 7.266 MB / 330.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 6.682e-05/0.6699, allocations: 21.53 kB / 0.5152 GB, free: 7.266 MB / 330.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001295/0.6701, allocations: 90.78 kB / 0.5153 GB, free: 7.195 MB / 330.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 8.923e-05/0.6702, allocations: 30.05 kB / 0.5154 GB, free: 7.188 MB / 330.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.186e-06/0.6702, allocations: 0 / 0.5154 GB, free: 7.188 MB / 330.7 MB Notification: Performance of matching and sorting (n=11) (initialization): time 0.0002709/0.6704, allocations: 127.5 kB / 0.5155 GB, free: 7.125 MB / 330.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.785e-05/0.6705, allocations: 3.906 kB / 0.5155 GB, free: 7.125 MB / 330.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.414e-06/0.6705, allocations: 3.812 kB / 0.5155 GB, free: 7.125 MB / 330.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.837e-05/0.6705, allocations: 128 / 0.5155 GB, free: 7.125 MB / 330.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001993/0.6707, allocations: 30.48 kB / 0.5155 GB, free: 7.113 MB / 330.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.08e-05/0.6708, allocations: 0 / 0.5155 GB, free: 7.113 MB / 330.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001377/0.6709, allocations: 7.688 kB / 0.5155 GB, free: 7.113 MB / 330.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.645e-05/0.6709, allocations: 3.844 kB / 0.5155 GB, free: 7.113 MB / 330.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 5 * Number of states: 0 () * Number of discrete variables: 9 ($whenCondition1,$PRE.table.combiTimeTable.nextTimeEvent,sample.u,table.combiTimeTable.nextTimeEvent,$PRE.table.combiTimeTable.nextTimeEventScaled,table.combiTimeTable.nextTimeEventScaled,superSample.y,superSample.u,sample.y) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (11): * Single equations (assignments): 11 * 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.0001025/0.671, allocations: 118.8 kB / 0.5156 GB, free: 7 MB / 330.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001212/0.6712, allocations: 71.41 kB / 0.5157 GB, free: 6.945 MB / 330.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0003381/0.6715, allocations: 122.4 kB / 0.5158 GB, free: 6.898 MB / 330.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.35e-06/0.6716, allocations: 0 / 0.5158 GB, free: 6.898 MB / 330.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.372e-06/0.6716, allocations: 0 / 0.5158 GB, free: 6.898 MB / 330.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.985e-06/0.6716, allocations: 7.828 kB / 0.5158 GB, free: 6.895 MB / 330.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002517/0.6718, allocations: 254 kB / 0.5161 GB, free: 6.668 MB / 330.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.645e-06/0.6719, allocations: 0 / 0.5161 GB, free: 6.668 MB / 330.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001266/0.672, allocations: 19.48 kB / 0.5161 GB, free: 6.66 MB / 330.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 5.63e-06/0.672, allocations: 0 / 0.5161 GB, free: 6.66 MB / 330.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.521e-05/0.672, allocations: 0 / 0.5161 GB, free: 6.66 MB / 330.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.777e-06/0.6721, allocations: 3.844 kB / 0.5161 GB, free: 6.66 MB / 330.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.034e-06/0.6721, allocations: 0 / 0.5161 GB, free: 6.66 MB / 330.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002999/0.6724, allocations: 194.2 kB / 0.5163 GB, free: 6.516 MB / 330.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.000145/0.6725, allocations: 126.7 kB / 0.5164 GB, free: 6.398 MB / 330.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.749e-05/0.6726, allocations: 3.844 kB / 0.5164 GB, free: 6.398 MB / 330.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001362/0.6727, allocations: 7.094 kB / 0.5164 GB, free: 6.398 MB / 330.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.662e-05/0.6728, allocations: 11.95 kB / 0.5164 GB, free: 6.391 MB / 330.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.755e-05/0.6728, allocations: 7.438 kB / 0.5164 GB, free: 6.391 MB / 330.7 MB Notification: Performance of sorting global known variables: time 0.0003282/0.6732, allocations: 243.4 kB / 0.5167 GB, free: 6.285 MB / 330.7 MB Notification: Performance of sort global known variables: time 4.51e-07/0.6732, allocations: 0 / 0.5167 GB, free: 6.285 MB / 330.7 MB Notification: Performance of remove unused functions: time 0.0004108/0.6736, allocations: 49.53 kB / 0.5167 GB, free: 6.277 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: 7 ($whenCondition1,sample.u,table.combiTimeTable.nextTimeEvent,table.combiTimeTable.nextTimeEventScaled,superSample.y,sample.y,superSample.u) * Number of discrete states: 2 (table.combiTimeTable.nextTimeEvent,table.combiTimeTable.nextTimeEventScaled) * Top-level inputs: 0 Notification: Strong component statistics for simulation (10): * Single equations (assignments): 8 * 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.001561/0.6752, allocations: 1.155 MB / 0.5178 GB, free: 5.25 MB / 330.7 MB Notification: Performance of simCode: created initialization part: time 0.0003336/0.6756, allocations: 81.59 kB / 0.5179 GB, free: 5.238 MB / 330.7 MB Notification: Performance of simCode: created event and clocks part: time 4.028e-06/0.6756, allocations: 0 / 0.5179 GB, free: 5.238 MB / 330.7 MB Notification: Performance of simCode: created simulation system equations: time 9.423e-05/0.6757, allocations: 34.92 kB / 0.5179 GB, free: 5.23 MB / 330.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000542/0.6763, allocations: 57.42 kB / 0.518 GB, free: 5.211 MB / 330.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0009902/0.6773, allocations: 359.2 kB / 0.5183 GB, free: 4.996 MB / 330.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002267/0.6775, allocations: 0.7421 MB / 0.5191 GB, free: 4.273 MB / 330.7 MB Notification: Performance of simCode: alias equations: time 0.0001439/0.6777, allocations: 35.97 kB / 0.5191 GB, free: 4.254 MB / 330.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001384/0.6778, allocations: 61.47 kB / 0.5192 GB, free: 4.238 MB / 330.7 MB Notification: Performance of SimCode: time 1.262e-06/0.6778, allocations: 0 / 0.5192 GB, free: 4.238 MB / 330.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02686/0.7047, allocations: 4.728 MB / 0.5238 GB, free: 216 kB / 330.7 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0002905/0.7051, allocations: 217.1 kB / 0.524 GB, free: 15.98 MB / 346.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 2.653/3.358, allocations: 4.062 kB / 0.524 GB, free: 15.98 MB / 346.7 MB (rm -f Modelica_Synchronous_Modelica_Synchronous.Examples.Elementary.IntegerSignals.SuperSample.pipe ; mkfifo Modelica_Synchronous_Modelica_Synchronous.Examples.Elementary.IntegerSignals.SuperSample.pipe ; head -c 1048576 < Modelica_Synchronous_Modelica_Synchronous.Examples.Elementary.IntegerSignals.SuperSample.pipe >> ../files/Modelica_Synchronous_Modelica_Synchronous.Examples.Elementary.IntegerSignals.SuperSample.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=Modelica_Synchronous_Modelica_Synchronous.Examples.Elementary.IntegerSignals.SuperSample_res.mat --tempDir=temp_Modelica_Synchronous_Modelica_Synchronous_Examples_Elementary_IntegerSignals_SuperSample_fmu --startTime=0 --stopTime=0.2 --timeout=50 --tolerance=1e-06 Modelica_Synchronous_Modelica_Synchronous_Examples_Elementary_IntegerSignals_SuperSample.fmu > Modelica_Synchronous_Modelica_Synchronous.Examples.Elementary.IntegerSignals.SuperSample.pipe 2>&1) TODO: How the !@#!# did the simulation report success but simulation result Modelica_Synchronous_Modelica_Synchronous.Examples.Elementary.IntegerSignals.SuperSample_res.mat does not exist to compare? outputFormat=mat