Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_Synchronous_Modelica_Synchronous.Examples.Elementary.RealSignals.HoldWithDAeffects2.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.RealSignals.HoldWithDAeffects2,fileNamePrefix="Modelica_Synchronous_Modelica_Synchronous_Examples_Elementary_RealSignals_HoldWithDAeffects2",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica_Synchronous.Examples.Elementary.RealSignals.HoldWithDAeffects2,fileNamePrefix="Modelica_Synchronous_Modelica_Synchronous_Examples_Elementary_RealSignals_HoldWithDAeffects2",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.001566/0.001565, allocations: 181.3 kB / 15.8 MB, free: 6.336 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.056/2.056, allocations: 205.4 MB / 221.9 MB, free: 13.84 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.001148/0.001148, allocations: 110.7 kB / 270.3 MB, free: 13.36 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.09484/0.09484, allocations: 12.59 MB / 331.1 MB, free: 10.29 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0005569/0.000557, allocations: 19.45 kB / 392.1 MB, free: 54.8 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09664/0.09724, allocations: 50.37 MB / 442.5 MB, free: 10.84 MB / 282.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.1469/0.2442, allocations: 79.63 MB / 0.5099 GB, free: 11.09 MB / 362.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0003446/0.2446, allocations: 83.95 kB / 0.51 GB, free: 11.01 MB / 362.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.0105/0.2552, allocations: 2.388 MB / 0.5123 GB, free: 8.609 MB / 362.7 MB Notification: Performance of FrontEnd: time 2.504e-06/0.2552, allocations: 0 / 0.5123 GB, free: 8.609 MB / 362.7 MB Notification: Performance of Transformations before backend: time 2.403e-05/0.2552, allocations: 4 kB / 0.5123 GB, free: 8.605 MB / 362.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 22 * Number of variables: 22 Notification: Performance of Generate backend data structure: time 0.0007522/0.256, allocations: 446.8 kB / 0.5127 GB, free: 8.121 MB / 362.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.227e-05/0.2561, allocations: 12.03 kB / 0.5127 GB, free: 8.109 MB / 362.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 6.602e-05/0.2561, allocations: 38.5 kB / 0.5128 GB, free: 8.062 MB / 362.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 6.149e-05/0.2562, allocations: 23.72 kB / 0.5128 GB, free: 8.039 MB / 362.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003945/0.2566, allocations: 223.9 kB / 0.513 GB, free: 7.777 MB / 362.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.426e-05/0.2567, allocations: 12.14 kB / 0.513 GB, free: 7.766 MB / 362.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.591e-05/0.2567, allocations: 8 kB / 0.513 GB, free: 7.758 MB / 362.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0009387/0.2577, allocations: 324.6 kB / 0.5133 GB, free: 7.406 MB / 362.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.237e-05/0.2577, allocations: 0 / 0.5133 GB, free: 7.406 MB / 362.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.927e-05/0.2577, allocations: 8 kB / 0.5133 GB, free: 7.398 MB / 362.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 9.217e-06/0.2577, allocations: 3.984 kB / 0.5133 GB, free: 7.395 MB / 362.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0003993/0.2581, allocations: 87.88 kB / 0.5134 GB, free: 7.309 MB / 362.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0007538/0.2589, allocations: 443.3 kB / 0.5138 GB, free: 6.812 MB / 362.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0007679/0.2597, allocations: 311.8 kB / 0.5141 GB, free: 6.445 MB / 362.7 MB Notification: Performance of preOpt evalFunc (simulation): time 3.78e-05/0.2598, allocations: 0 / 0.5141 GB, free: 6.445 MB / 362.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.948e-05/0.2598, allocations: 46.56 kB / 0.5142 GB, free: 6.391 MB / 362.7 MB Notification: Performance of pre-optimization done (n=18): time 2.294e-06/0.2598, allocations: 0 / 0.5142 GB, free: 6.391 MB / 362.7 MB Notification: Performance of matching and sorting (n=18): time 0.0009509/0.2608, allocations: 241.6 kB / 0.5144 GB, free: 6.148 MB / 362.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001468/0.2609, allocations: 191.9 kB / 0.5146 GB, free: 5.918 MB / 362.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002414/0.2612, allocations: 162.1 kB / 0.5148 GB, free: 5.754 MB / 362.7 MB Notification: Performance of collectPreVariables (initialization): time 2.919e-05/0.2612, allocations: 33.89 kB / 0.5148 GB, free: 5.715 MB / 362.7 MB Notification: Performance of collectInitialEqns (initialization): time 7.657e-05/0.2613, allocations: 100.5 kB / 0.5149 GB, free: 5.609 MB / 362.7 MB Notification: Performance of collectInitialBindings (initialization): time 3.122e-05/0.2614, allocations: 19.83 kB / 0.5149 GB, free: 5.59 MB / 362.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 1.113e-05/0.2614, allocations: 4 kB / 0.5149 GB, free: 5.586 MB / 362.7 MB Notification: Performance of setup shared object (initialization): time 0.0001609/0.2616, allocations: 322.8 kB / 0.5152 GB, free: 5.262 MB / 362.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001223/0.2617, allocations: 35.91 kB / 0.5152 GB, free: 5.227 MB / 362.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002137/0.2619, allocations: 131.5 kB / 0.5154 GB, free: 5.043 MB / 362.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001607/0.2621, allocations: 51.95 kB / 0.5154 GB, free: 4.992 MB / 362.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.552e-06/0.2621, allocations: 4 kB / 0.5154 GB, free: 4.988 MB / 362.7 MB Notification: Performance of matching and sorting (n=19) (initialization): time 0.0004751/0.2626, allocations: 177.4 kB / 0.5156 GB, free: 4.809 MB / 362.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.605e-05/0.2626, allocations: 11.95 kB / 0.5156 GB, free: 4.797 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.17e-05/0.2627, allocations: 4 kB / 0.5156 GB, free: 4.793 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.326e-05/0.2627, allocations: 4 kB / 0.5156 GB, free: 4.789 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002697/0.263, allocations: 39.92 kB / 0.5157 GB, free: 4.75 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.474e-05/0.263, allocations: 7.984 kB / 0.5157 GB, free: 4.742 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.000161/0.2632, allocations: 15.91 kB / 0.5157 GB, free: 4.727 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.261e-05/0.2632, allocations: 8.25 kB / 0.5157 GB, free: 4.719 MB / 362.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 17 * Number of states: 0 () * Number of discrete variables: 0 () * Number of discrete states: 0 () * Number of clocked states: 1 (hold.compDelay.ubuf) * Top-level inputs: 0 Notification: Strong component statistics for initialization (19): * Single equations (assignments): 19 * 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.0002032/0.2634, allocations: 149.5 kB / 0.5158 GB, free: 4.562 MB / 362.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0005035/0.2639, allocations: 157.3 kB / 0.516 GB, free: 4.402 MB / 362.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 7.577e-05/0.264, allocations: 29.34 kB / 0.516 GB, free: 4.375 MB / 362.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 8.046e-06/0.2641, allocations: 4 kB / 0.516 GB, free: 4.371 MB / 362.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.431e-06/0.2641, allocations: 4.031 kB / 0.516 GB, free: 4.367 MB / 362.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.667e-06/0.2641, allocations: 4 kB / 0.516 GB, free: 4.363 MB / 362.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.000403/0.2645, allocations: 209.5 kB / 0.5162 GB, free: 4.109 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.477e-06/0.2645, allocations: 4 kB / 0.5162 GB, free: 4.105 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.000291/0.2648, allocations: 47.91 kB / 0.5163 GB, free: 4.059 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 6.593e-06/0.2648, allocations: 0 / 0.5163 GB, free: 4.059 MB / 362.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.733e-05/0.2649, allocations: 4 kB / 0.5163 GB, free: 4.055 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 6.512e-06/0.2649, allocations: 3.953 kB / 0.5163 GB, free: 4.051 MB / 362.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.612e-06/0.2649, allocations: 7.984 kB / 0.5163 GB, free: 4.043 MB / 362.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0007294/0.2656, allocations: 422.8 kB / 0.5167 GB, free: 3.582 MB / 362.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001416/0.2658, allocations: 112.8 kB / 0.5168 GB, free: 3.453 MB / 362.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.202e-05/0.2658, allocations: 8 kB / 0.5168 GB, free: 3.445 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.000232/0.2661, allocations: 15.98 kB / 0.5168 GB, free: 3.43 MB / 362.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.692e-05/0.2661, allocations: 4 kB / 0.5168 GB, free: 3.426 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.866e-05/0.2662, allocations: 8 kB / 0.5168 GB, free: 3.418 MB / 362.7 MB Notification: Performance of sorting global known variables: time 0.0001771/0.2663, allocations: 137.1 kB / 0.517 GB, free: 3.285 MB / 362.7 MB Notification: Performance of sort global known variables: time 3.9e-07/0.2664, allocations: 3.938 kB / 0.517 GB, free: 3.281 MB / 362.7 MB Notification: Performance of remove unused functions: time 0.0004488/0.2668, allocations: 24 kB / 0.517 GB, free: 3.258 MB / 362.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 5 * Number of states: 0 () * Number of discrete variables: 0 () * Number of discrete states: 0 () * Number of clocked states: 1 (hold.compDelay.ubuf) * Top-level inputs: 0 Notification: Strong component statistics for simulation (18): * Single equations (assignments): 18 * 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 Backend phase and start with SimCode phase: time 0.00153/0.2684, allocations: 1.297 MB / 0.5182 GB, free: 1.906 MB / 362.7 MB Notification: Performance of simCode: created initialization part: time 0.0004997/0.2689, allocations: 119.8 kB / 0.5184 GB, free: 1.789 MB / 362.7 MB Notification: Performance of simCode: created event and clocks part: time 3.797e-06/0.2689, allocations: 1.062 kB / 0.5184 GB, free: 1.789 MB / 362.7 MB Notification: Performance of simCode: created simulation system equations: time 7.891e-05/0.269, allocations: 16.05 kB / 0.5184 GB, free: 1.773 MB / 362.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0007911/0.2698, allocations: 116.7 kB / 0.5185 GB, free: 1.664 MB / 362.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.272/0.5418, allocations: 3.32 MB / 0.5217 GB, free: 84.06 MB / 362.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002214/0.5421, allocations: 0.734 MB / 0.5224 GB, free: 83.36 MB / 362.7 MB Notification: Performance of simCode: alias equations: time 0.0001131/0.5422, allocations: 15.02 kB / 0.5225 GB, free: 83.36 MB / 362.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001161/0.5423, allocations: 41.78 kB / 0.5225 GB, free: 83.36 MB / 362.7 MB Notification: Performance of SimCode: time 1.302e-06/0.5424, allocations: 0 / 0.5225 GB, free: 83.36 MB / 362.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02745/0.5698, allocations: 3.087 MB / 0.5255 GB, free: 83.02 MB / 362.7 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.000212/0.5701, allocations: 207.8 kB / 0.5257 GB, free: 82.79 MB / 362.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 2.408/2.979, allocations: 0 / 0.5257 GB, free: 82.79 MB / 362.7 MB (rm -f Modelica_Synchronous_Modelica_Synchronous.Examples.Elementary.RealSignals.HoldWithDAeffects2.pipe ; mkfifo Modelica_Synchronous_Modelica_Synchronous.Examples.Elementary.RealSignals.HoldWithDAeffects2.pipe ; head -c 1048576 < Modelica_Synchronous_Modelica_Synchronous.Examples.Elementary.RealSignals.HoldWithDAeffects2.pipe >> ../files/Modelica_Synchronous_Modelica_Synchronous.Examples.Elementary.RealSignals.HoldWithDAeffects2.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=Modelica_Synchronous_Modelica_Synchronous.Examples.Elementary.RealSignals.HoldWithDAeffects2_res.mat --tempDir=temp_Modelica_Synchronous_Modelica_Synchronous_Examples_Elementary_RealSignals_HoldWithDAeffects2_fmu --startTime=0 --stopTime=0.2 --timeout=50 --tolerance=1e-06 Modelica_Synchronous_Modelica_Synchronous_Examples_Elementary_RealSignals_HoldWithDAeffects2.fmu > Modelica_Synchronous_Modelica_Synchronous.Examples.Elementary.RealSignals.HoldWithDAeffects2.pipe 2>&1) TODO: How the !@#!# did the simulation report success but simulation result Modelica_Synchronous_Modelica_Synchronous.Examples.Elementary.RealSignals.HoldWithDAeffects2_res.mat does not exist to compare? outputFormat=mat