Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_Synchronous_Modelica_Synchronous.Examples.Elementary.IntegerSignals.Hold.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.Hold,fileNamePrefix="Modelica_Synchronous_Modelica_Synchronous_Examples_Elementary_IntegerSignals_Hold",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica_Synchronous.Examples.Elementary.IntegerSignals.Hold,fileNamePrefix="Modelica_Synchronous_Modelica_Synchronous_Examples_Elementary_IntegerSignals_Hold",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.002693/0.002693, allocations: 181.5 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.229/2.229, allocations: 205.2 MB / 219 MB, free: 9.145 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.001088/0.001087, allocations: 86.59 kB / 267.1 MB, free: 9.266 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.11/0.11, allocations: 12.58 MB / 327.7 MB, free: 12.48 MB / 282.7 MB Notification: Performance of FrontEnd - loaded program: time 5.283e-05/5.311e-05, allocations: 4 kB / 386.1 MB, free: 69.5 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1219/0.122, allocations: 50.37 MB / 436.5 MB, free: 19.12 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.4688/0.5909, allocations: 81.94 MB / 0.5063 GB, free: 11.86 MB / 330.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0004333/0.5914, allocations: 85.7 kB / 0.5064 GB, free: 11.85 MB / 330.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.03913/0.6305, allocations: 6.04 MB / 0.5122 GB, free: 9.586 MB / 330.7 MB Notification: Performance of FrontEnd: time 1.874e-06/0.6306, allocations: 0 / 0.5122 GB, free: 9.586 MB / 330.7 MB Notification: Performance of Transformations before backend: time 3.809e-05/0.6307, allocations: 7.812 kB / 0.5123 GB, free: 9.582 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: 16 * Number of variables: 16 Notification: Performance of Generate backend data structure: time 0.0009023/0.6316, allocations: 0.491 MB / 0.5127 GB, free: 9.105 MB / 330.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.681e-05/0.6317, allocations: 7.688 kB / 0.5127 GB, free: 9.105 MB / 330.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 5.295e-05/0.6317, allocations: 46.2 kB / 0.5128 GB, free: 9.059 MB / 330.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 7.188e-05/0.6318, allocations: 27.31 kB / 0.5128 GB, free: 9.043 MB / 330.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0005303/0.6323, allocations: 290.4 kB / 0.5131 GB, free: 8.797 MB / 330.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.409e-05/0.6324, allocations: 11.64 kB / 0.5131 GB, free: 8.793 MB / 330.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.862e-05/0.6324, allocations: 7.812 kB / 0.5131 GB, free: 8.789 MB / 330.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.000378/0.6328, allocations: 172.6 kB / 0.5133 GB, free: 8.672 MB / 330.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.099e-05/0.6328, allocations: 0 / 0.5133 GB, free: 8.672 MB / 330.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.898e-05/0.6329, allocations: 3.844 kB / 0.5133 GB, free: 8.672 MB / 330.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.851e-06/0.6329, allocations: 3.938 kB / 0.5133 GB, free: 8.668 MB / 330.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.000126/0.633, allocations: 43.55 kB / 0.5133 GB, free: 8.66 MB / 330.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0006527/0.6337, allocations: 489.6 kB / 0.5138 GB, free: 8.238 MB / 330.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002339/0.6339, allocations: 141.4 kB / 0.5139 GB, free: 8.129 MB / 330.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001049/0.6341, allocations: 52.48 kB / 0.514 GB, free: 8.094 MB / 330.7 MB Notification: Performance of preOpt evalFunc (simulation): time 2.811e-05/0.6341, allocations: 7.781 kB / 0.514 GB, free: 8.09 MB / 330.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001788/0.6343, allocations: 94.31 kB / 0.5141 GB, free: 8.016 MB / 330.7 MB Notification: Performance of pre-optimization done (n=11): time 2.084e-06/0.6343, allocations: 0 / 0.5141 GB, free: 8.016 MB / 330.7 MB Notification: Performance of matching and sorting (n=11): time 0.0003818/0.6347, allocations: 143.8 kB / 0.5142 GB, free: 7.953 MB / 330.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.439e-05/0.6348, allocations: 179.9 kB / 0.5144 GB, free: 7.734 MB / 330.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0004274/0.6352, allocations: 301 kB / 0.5147 GB, free: 7.605 MB / 330.7 MB Notification: Performance of collectPreVariables (initialization): time 2.309e-05/0.6352, allocations: 32.83 kB / 0.5147 GB, free: 7.574 MB / 330.7 MB Notification: Performance of collectInitialEqns (initialization): time 8.619e-05/0.6353, allocations: 133.4 kB / 0.5148 GB, free: 7.477 MB / 330.7 MB Notification: Performance of collectInitialBindings (initialization): time 3.248e-05/0.6354, allocations: 14.81 kB / 0.5148 GB, free: 7.469 MB / 330.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 9.187e-06/0.6354, allocations: 7.812 kB / 0.5148 GB, free: 7.465 MB / 330.7 MB Notification: Performance of setup shared object (initialization): time 7.686e-05/0.6355, allocations: 333.6 kB / 0.5152 GB, free: 7.141 MB / 330.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 7.236e-05/0.6356, allocations: 23.12 kB / 0.5152 GB, free: 7.141 MB / 330.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001351/0.6357, allocations: 105.1 kB / 0.5153 GB, free: 7.055 MB / 330.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 9.327e-05/0.6358, allocations: 32.61 kB / 0.5153 GB, free: 7.051 MB / 330.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.995e-06/0.6358, allocations: 0 / 0.5153 GB, free: 7.051 MB / 330.7 MB Notification: Performance of matching and sorting (n=13) (initialization): time 0.0002814/0.6361, allocations: 139.6 kB / 0.5155 GB, free: 6.988 MB / 330.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.695e-05/0.6362, allocations: 3.844 kB / 0.5155 GB, free: 6.988 MB / 330.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.414e-06/0.6362, allocations: 3.812 kB / 0.5155 GB, free: 6.988 MB / 330.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.648e-05/0.6362, allocations: 0 / 0.5155 GB, free: 6.988 MB / 330.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002101/0.6364, allocations: 27.23 kB / 0.5155 GB, free: 6.98 MB / 330.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 8.776e-06/0.6364, allocations: 0 / 0.5155 GB, free: 6.98 MB / 330.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001411/0.6366, allocations: 23.67 kB / 0.5155 GB, free: 6.969 MB / 330.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.602e-05/0.6366, allocations: 3.844 kB / 0.5155 GB, free: 6.969 MB / 330.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 6 * Number of states: 0 () * Number of discrete variables: 11 ($whenCondition1,$PRE.table.combiTimeTable.nextTimeEvent,table.combiTimeTable.nextTimeEvent,$PRE.table.combiTimeTable.nextTimeEventScaled,table.combiTimeTable.nextTimeEventScaled,sample.u,shiftSample.y,hold.u,hold.y,shiftSample.u,sample.y) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (13): * Single equations (assignments): 13 * 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 8.985e-05/0.6367, allocations: 120.5 kB / 0.5156 GB, free: 6.852 MB / 330.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001195/0.6369, allocations: 76.06 kB / 0.5157 GB, free: 6.801 MB / 330.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.000308/0.6372, allocations: 126 kB / 0.5158 GB, free: 6.742 MB / 330.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.471e-06/0.6372, allocations: 0 / 0.5158 GB, free: 6.742 MB / 330.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.594e-06/0.6372, allocations: 3.844 kB / 0.5158 GB, free: 6.742 MB / 330.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.821e-06/0.6372, allocations: 0 / 0.5158 GB, free: 6.742 MB / 330.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002594/0.6375, allocations: 261 kB / 0.5161 GB, free: 6.512 MB / 330.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.666e-06/0.6375, allocations: 0 / 0.5161 GB, free: 6.512 MB / 330.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001344/0.6377, allocations: 19.02 kB / 0.5161 GB, free: 6.508 MB / 330.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 7.825e-06/0.6377, allocations: 7.969 kB / 0.5161 GB, free: 6.504 MB / 330.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.507e-05/0.6377, allocations: 3.938 kB / 0.5161 GB, free: 6.5 MB / 330.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 4.378e-06/0.6377, allocations: 3.875 kB / 0.5161 GB, free: 6.5 MB / 330.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.435e-06/0.6377, allocations: 0 / 0.5161 GB, free: 6.5 MB / 330.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003258/0.6381, allocations: 220.7 kB / 0.5163 GB, free: 6.332 MB / 330.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001495/0.6382, allocations: 125.5 kB / 0.5164 GB, free: 6.215 MB / 330.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.979e-05/0.6383, allocations: 7.375 kB / 0.5164 GB, free: 6.215 MB / 330.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001206/0.6384, allocations: 3.781 kB / 0.5164 GB, free: 6.215 MB / 330.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 9.085e-05/0.6385, allocations: 19.06 kB / 0.5165 GB, free: 6.203 MB / 330.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.702e-05/0.6385, allocations: 3.844 kB / 0.5165 GB, free: 6.203 MB / 330.7 MB Notification: Performance of sorting global known variables: time 0.0003151/0.6389, allocations: 250.8 kB / 0.5167 GB, free: 6.098 MB / 330.7 MB Notification: Performance of sort global known variables: time 1.222e-06/0.6389, allocations: 0 / 0.5167 GB, free: 6.098 MB / 330.7 MB Notification: Performance of remove unused functions: time 0.0003975/0.6393, allocations: 57.78 kB / 0.5168 GB, free: 6.082 MB / 330.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 4 * Number of states: 0 () * Number of discrete variables: 9 ($whenCondition1,table.combiTimeTable.nextTimeEvent,table.combiTimeTable.nextTimeEventScaled,sample.u,hold.y,hold.u,shiftSample.y,sample.y,shiftSample.u) * Number of discrete states: 2 (table.combiTimeTable.nextTimeEvent,table.combiTimeTable.nextTimeEventScaled) * Top-level inputs: 0 Notification: Strong component statistics for simulation (12): * Single equations (assignments): 10 * 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.001524/0.6408, allocations: 1.243 MB / 0.518 GB, free: 4.973 MB / 330.7 MB Notification: Performance of simCode: created initialization part: time 0.0003013/0.6411, allocations: 93.16 kB / 0.5181 GB, free: 4.961 MB / 330.7 MB Notification: Performance of simCode: created event and clocks part: time 3.106e-06/0.6412, allocations: 0 / 0.5181 GB, free: 4.961 MB / 330.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0001065/0.6413, allocations: 38.98 kB / 0.5181 GB, free: 4.953 MB / 330.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004886/0.6418, allocations: 64.08 kB / 0.5182 GB, free: 4.938 MB / 330.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0009174/0.6427, allocations: 383 kB / 0.5185 GB, free: 4.707 MB / 330.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002232/0.643, allocations: 0.7503 MB / 0.5193 GB, free: 3.977 MB / 330.7 MB Notification: Performance of simCode: alias equations: time 0.0001303/0.6431, allocations: 28.75 kB / 0.5193 GB, free: 3.969 MB / 330.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001342/0.6432, allocations: 65.2 kB / 0.5193 GB, free: 3.957 MB / 330.7 MB Notification: Performance of SimCode: time 9.01e-07/0.6433, allocations: 0 / 0.5193 GB, free: 3.957 MB / 330.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02614/0.6694, allocations: 4.895 MB / 0.5241 GB, free: 15.8 MB / 346.7 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0002841/0.6698, allocations: 209.6 kB / 0.5243 GB, free: 15.58 MB / 346.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 2.602/3.271, allocations: 3.938 kB / 0.5243 GB, free: 15.57 MB / 346.7 MB (rm -f Modelica_Synchronous_Modelica_Synchronous.Examples.Elementary.IntegerSignals.Hold.pipe ; mkfifo Modelica_Synchronous_Modelica_Synchronous.Examples.Elementary.IntegerSignals.Hold.pipe ; head -c 1048576 < Modelica_Synchronous_Modelica_Synchronous.Examples.Elementary.IntegerSignals.Hold.pipe >> ../files/Modelica_Synchronous_Modelica_Synchronous.Examples.Elementary.IntegerSignals.Hold.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=Modelica_Synchronous_Modelica_Synchronous.Examples.Elementary.IntegerSignals.Hold_res.mat --tempDir=temp_Modelica_Synchronous_Modelica_Synchronous_Examples_Elementary_IntegerSignals_Hold_fmu --startTime=0 --stopTime=0.2 --timeout=50 --tolerance=1e-06 Modelica_Synchronous_Modelica_Synchronous_Examples_Elementary_IntegerSignals_Hold.fmu > Modelica_Synchronous_Modelica_Synchronous.Examples.Elementary.IntegerSignals.Hold.pipe 2>&1) TODO: How the !@#!# did the simulation report success but simulation result Modelica_Synchronous_Modelica_Synchronous.Examples.Elementary.IntegerSignals.Hold_res.mat does not exist to compare? outputFormat=mat