Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_Synchronous_Modelica_Synchronous.Examples.Elementary.RealSignals.HoldWithDAeffects1.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.HoldWithDAeffects1,fileNamePrefix="Modelica_Synchronous_Modelica_Synchronous_Examples_Elementary_RealSignals_HoldWithDAeffects1",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica_Synchronous.Examples.Elementary.RealSignals.HoldWithDAeffects1,fileNamePrefix="Modelica_Synchronous_Modelica_Synchronous_Examples_Elementary_RealSignals_HoldWithDAeffects1",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.00158/0.001579, allocations: 179.7 kB / 15.8 MB, free: 6.34 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.107/2.107, 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.00115/0.001149, allocations: 86.86 kB / 270.3 MB, free: 13.38 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.09521/0.09521, allocations: 12.6 MB / 331.1 MB, free: 10.3 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0005528/0.0005529, allocations: 14.25 kB / 392.1 MB, free: 54.71 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09436/0.09495, allocations: 50.37 MB / 442.5 MB, free: 10.82 MB / 282.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.1468/0.2418, allocations: 79.63 MB / 0.5099 GB, free: 11.08 MB / 362.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0003129/0.2422, allocations: 75.95 kB / 0.5099 GB, free: 11.01 MB / 362.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.01013/0.2523, allocations: 2.343 MB / 0.5122 GB, free: 8.652 MB / 362.7 MB Notification: Performance of FrontEnd: time 2.074e-06/0.2524, allocations: 0 / 0.5122 GB, free: 8.652 MB / 362.7 MB Notification: Performance of Transformations before backend: time 1.932e-05/0.2524, allocations: 4 kB / 0.5122 GB, free: 8.648 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.0007272/0.2531, allocations: 438.8 kB / 0.5127 GB, free: 8.172 MB / 362.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.852e-05/0.2532, allocations: 12.03 kB / 0.5127 GB, free: 8.16 MB / 362.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 7.224e-05/0.2533, allocations: 46.55 kB / 0.5127 GB, free: 8.105 MB / 362.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 5.668e-05/0.2534, allocations: 19.72 kB / 0.5127 GB, free: 8.086 MB / 362.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003818/0.2538, allocations: 235.8 kB / 0.513 GB, free: 7.812 MB / 362.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.229e-05/0.2538, allocations: 8.141 kB / 0.513 GB, free: 7.805 MB / 362.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.675e-05/0.2538, allocations: 8 kB / 0.513 GB, free: 7.797 MB / 362.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0009034/0.2547, allocations: 306 kB / 0.5133 GB, free: 7.469 MB / 362.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.413e-05/0.2548, allocations: 8 kB / 0.5133 GB, free: 7.461 MB / 362.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.84e-05/0.2548, allocations: 0 / 0.5133 GB, free: 7.461 MB / 362.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.006e-05/0.2548, allocations: 4 kB / 0.5133 GB, free: 7.457 MB / 362.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0003913/0.2552, allocations: 79.89 kB / 0.5133 GB, free: 7.379 MB / 362.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0006833/0.2559, allocations: 435.4 kB / 0.5138 GB, free: 6.891 MB / 362.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0007847/0.2567, allocations: 316 kB / 0.5141 GB, free: 6.52 MB / 362.7 MB Notification: Performance of preOpt evalFunc (simulation): time 3.546e-05/0.2568, allocations: 7.984 kB / 0.5141 GB, free: 6.512 MB / 362.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.238e-05/0.2568, allocations: 34.62 kB / 0.5141 GB, free: 6.469 MB / 362.7 MB Notification: Performance of pre-optimization done (n=17): time 2.174e-06/0.2568, allocations: 4 kB / 0.5141 GB, free: 6.465 MB / 362.7 MB Notification: Performance of matching and sorting (n=17): time 0.0009309/0.2578, allocations: 241.8 kB / 0.5143 GB, free: 6.223 MB / 362.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001423/0.2579, allocations: 195.9 kB / 0.5145 GB, free: 5.988 MB / 362.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002252/0.2582, allocations: 166.1 kB / 0.5147 GB, free: 5.82 MB / 362.7 MB Notification: Performance of collectPreVariables (initialization): time 2.905e-05/0.2582, allocations: 29.7 kB / 0.5147 GB, free: 5.785 MB / 362.7 MB Notification: Performance of collectInitialEqns (initialization): time 7.597e-05/0.2583, allocations: 100.1 kB / 0.5148 GB, free: 5.684 MB / 362.7 MB Notification: Performance of collectInitialBindings (initialization): time 2.904e-05/0.2583, allocations: 15.83 kB / 0.5148 GB, free: 5.668 MB / 362.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 1.182e-05/0.2584, allocations: 4 kB / 0.5148 GB, free: 5.664 MB / 362.7 MB Notification: Performance of setup shared object (initialization): time 0.0001477/0.2585, allocations: 330.8 kB / 0.5151 GB, free: 5.332 MB / 362.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001067/0.2586, allocations: 23.98 kB / 0.5152 GB, free: 5.309 MB / 362.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002261/0.2589, allocations: 133.2 kB / 0.5153 GB, free: 5.129 MB / 362.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001445/0.259, allocations: 39.97 kB / 0.5153 GB, free: 5.09 MB / 362.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.867e-06/0.259, allocations: 0 / 0.5153 GB, free: 5.09 MB / 362.7 MB Notification: Performance of matching and sorting (n=17) (initialization): time 0.0004379/0.2595, allocations: 169.1 kB / 0.5155 GB, free: 4.918 MB / 362.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.122e-05/0.2595, allocations: 8 kB / 0.5155 GB, free: 4.91 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.105e-05/0.2595, allocations: 7.938 kB / 0.5155 GB, free: 4.902 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.972e-05/0.2596, allocations: 4.5 kB / 0.5155 GB, free: 4.898 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002216/0.2598, allocations: 35.98 kB / 0.5155 GB, free: 4.863 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.47e-05/0.2598, allocations: 7.938 kB / 0.5156 GB, free: 4.855 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001543/0.26, allocations: 19.89 kB / 0.5156 GB, free: 4.836 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.193e-05/0.26, allocations: 8 kB / 0.5156 GB, free: 4.828 MB / 362.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 16 * Number of states: 0 () * Number of discrete variables: 0 () * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (17): * Single equations (assignments): 17 * 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.0002592/0.2603, allocations: 145.5 kB / 0.5157 GB, free: 4.676 MB / 362.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0004801/0.2608, allocations: 149.4 kB / 0.5159 GB, free: 4.523 MB / 362.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 6.944e-05/0.2609, allocations: 21.41 kB / 0.5159 GB, free: 4.504 MB / 362.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.4e-06/0.2609, allocations: 3.938 kB / 0.5159 GB, free: 4.5 MB / 362.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.586e-06/0.2609, allocations: 4 kB / 0.5159 GB, free: 4.496 MB / 362.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 9.498e-06/0.2609, allocations: 7.984 kB / 0.5159 GB, free: 4.488 MB / 362.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0003836/0.2613, allocations: 217.5 kB / 0.5161 GB, free: 4.227 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.426e-06/0.2613, allocations: 0 / 0.5161 GB, free: 4.227 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002778/0.2616, allocations: 47.94 kB / 0.5161 GB, free: 4.18 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 5.149e-06/0.2616, allocations: 0 / 0.5161 GB, free: 4.18 MB / 362.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.973e-05/0.2617, allocations: 8 kB / 0.5162 GB, free: 4.172 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 4.288e-06/0.2617, allocations: 0 / 0.5162 GB, free: 4.172 MB / 362.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.202e-06/0.2617, allocations: 4 kB / 0.5162 GB, free: 4.168 MB / 362.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0006987/0.2624, allocations: 415.8 kB / 0.5166 GB, free: 3.711 MB / 362.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001345/0.2626, allocations: 112.8 kB / 0.5167 GB, free: 3.582 MB / 362.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.768e-05/0.2626, allocations: 8.094 kB / 0.5167 GB, free: 3.574 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002636/0.2629, allocations: 15.89 kB / 0.5167 GB, free: 3.559 MB / 362.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.297e-05/0.2629, allocations: 7.984 kB / 0.5167 GB, free: 3.551 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.163e-05/0.263, allocations: 8 kB / 0.5167 GB, free: 3.543 MB / 362.7 MB Notification: Performance of sorting global known variables: time 0.0001653/0.2631, allocations: 133.1 kB / 0.5168 GB, free: 3.414 MB / 362.7 MB Notification: Performance of sort global known variables: time 3.71e-07/0.2632, allocations: 4 kB / 0.5168 GB, free: 3.41 MB / 362.7 MB Notification: Performance of remove unused functions: time 0.0004178/0.2636, allocations: 24 kB / 0.5169 GB, free: 3.387 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: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (17): * Single equations (assignments): 17 * 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.001125/0.2647, allocations: 1.224 MB / 0.5181 GB, free: 2.109 MB / 362.7 MB Notification: Performance of simCode: created initialization part: time 0.0004486/0.2652, allocations: 112.7 kB / 0.5182 GB, free: 2 MB / 362.7 MB Notification: Performance of simCode: created event and clocks part: time 2.846e-06/0.2652, allocations: 0 / 0.5182 GB, free: 2 MB / 362.7 MB Notification: Performance of simCode: created simulation system equations: time 8.257e-05/0.2653, allocations: 23.98 kB / 0.5182 GB, free: 1.977 MB / 362.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0007312/0.266, allocations: 104.1 kB / 0.5183 GB, free: 1.875 MB / 362.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.2657/0.5317, allocations: 3.255 MB / 0.5215 GB, free: 84.42 MB / 362.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002276/0.532, allocations: 0.7268 MB / 0.5222 GB, free: 83.72 MB / 362.7 MB Notification: Performance of simCode: alias equations: time 0.0001125/0.5321, allocations: 17.14 kB / 0.5222 GB, free: 83.72 MB / 362.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001131/0.5322, allocations: 40.03 kB / 0.5222 GB, free: 83.71 MB / 362.7 MB Notification: Performance of SimCode: time 2.454e-06/0.5323, allocations: 0 / 0.5222 GB, free: 83.71 MB / 362.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.03062/0.5629, allocations: 2.991 MB / 0.5251 GB, free: 83.4 MB / 362.7 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0002696/0.5632, allocations: 208.4 kB / 0.5253 GB, free: 83.16 MB / 362.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 2.422/2.985, allocations: 4 kB / 0.5253 GB, free: 83.16 MB / 362.7 MB (rm -f Modelica_Synchronous_Modelica_Synchronous.Examples.Elementary.RealSignals.HoldWithDAeffects1.pipe ; mkfifo Modelica_Synchronous_Modelica_Synchronous.Examples.Elementary.RealSignals.HoldWithDAeffects1.pipe ; head -c 1048576 < Modelica_Synchronous_Modelica_Synchronous.Examples.Elementary.RealSignals.HoldWithDAeffects1.pipe >> ../files/Modelica_Synchronous_Modelica_Synchronous.Examples.Elementary.RealSignals.HoldWithDAeffects1.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=Modelica_Synchronous_Modelica_Synchronous.Examples.Elementary.RealSignals.HoldWithDAeffects1_res.mat --tempDir=temp_Modelica_Synchronous_Modelica_Synchronous_Examples_Elementary_RealSignals_HoldWithDAeffects1_fmu --startTime=0 --stopTime=0.2 --timeout=50 --tolerance=1e-06 Modelica_Synchronous_Modelica_Synchronous_Examples_Elementary_RealSignals_HoldWithDAeffects1.fmu > Modelica_Synchronous_Modelica_Synchronous.Examples.Elementary.RealSignals.HoldWithDAeffects1.pipe 2>&1) TODO: How the !@#!# did the simulation report success but simulation result Modelica_Synchronous_Modelica_Synchronous.Examples.Elementary.RealSignals.HoldWithDAeffects1_res.mat does not exist to compare? outputFormat=mat