Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.RealSignals.HoldWithDAeffects2.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) Using package ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo) Using package Modelica with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo) Using package Complex with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo) Running command: "" <> buildModelFMU(Modelica.Clocked.Examples.Elementary.RealSignals.HoldWithDAeffects2,fileNamePrefix="Modelica_4_0_0_Modelica_Clocked_Examples_Elementary_RealSignals_HoldWithDAeffects2",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Clocked.Examples.Elementary.RealSignals.HoldWithDAeffects2,fileNamePrefix="Modelica_4_0_0_Modelica_Clocked_Examples_Elementary_RealSignals_HoldWithDAeffects2",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001292/0.001291, allocations: 176.2 kB / 8.348 MB, free: 0.7266 MB / 5.871 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.58/1.58, allocations: 221.5 MB / 230.3 MB, free: 7.574 MB / 186.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001076/0.001076, allocations: 97.3 kB / 281.2 MB, free: 5.324 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 2.098e-05/2.103e-05, allocations: 4 kB / 337.1 MB, free: 9.926 MB / 234.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1147/0.1148, allocations: 50.42 MB / 387.6 MB, free: 7.465 MB / 282.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.3203/0.4352, allocations: 77.85 MB / 465.4 MB, free: 0.8398 MB / 330.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002361/0.4355, allocations: 76.98 kB / 465.5 MB, free: 0.7656 MB / 330.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.006629/0.4421, allocations: 2.442 MB / 467.9 MB, free: 14.33 MB / 346.7 MB Notification: Performance of FrontEnd: time 1.653e-06/0.4421, allocations: 3.938 kB / 467.9 MB, free: 14.32 MB / 346.7 MB Notification: Performance of Transformations before backend: time 1.615e-05/0.4422, allocations: 8 kB / 467.9 MB, free: 14.32 MB / 346.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.0004873/0.4427, allocations: 419 kB / 468.3 MB, free: 13.86 MB / 346.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.318e-05/0.4427, allocations: 12.03 kB / 468.4 MB, free: 13.85 MB / 346.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 5.065e-05/0.4428, allocations: 19.77 kB / 468.4 MB, free: 13.83 MB / 346.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003024/0.4431, allocations: 239.7 kB / 468.6 MB, free: 13.55 MB / 346.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.29e-05/0.4431, allocations: 4 kB / 468.6 MB, free: 13.55 MB / 346.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.897e-05/0.4431, allocations: 4 kB / 468.6 MB, free: 13.55 MB / 346.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.0001226/0.4433, allocations: 44.36 kB / 468.7 MB, free: 13.5 MB / 346.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004151/0.4437, allocations: 243.2 kB / 468.9 MB, free: 13.23 MB / 346.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.243e-05/0.4437, allocations: 3.938 kB / 468.9 MB, free: 13.23 MB / 346.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.928e-05/0.4437, allocations: 0 / 468.9 MB, free: 13.23 MB / 346.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.6e-05/0.4437, allocations: 4 kB / 468.9 MB, free: 13.23 MB / 346.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0005378/0.4443, allocations: 404 kB / 469.3 MB, free: 12.78 MB / 346.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003192/0.4446, allocations: 258.1 kB / 469.6 MB, free: 12.46 MB / 346.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001255/0.4448, allocations: 88.41 kB / 469.6 MB, free: 12.36 MB / 346.7 MB Notification: Performance of preOpt evalFunc (simulation): time 2.461e-05/0.4448, allocations: 0 / 469.6 MB, free: 12.36 MB / 346.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.301e-05/0.4448, allocations: 47.84 kB / 469.7 MB, free: 12.31 MB / 346.7 MB Notification: Performance of pre-optimization done (n=18): time 1.042e-06/0.4448, allocations: 0 / 469.7 MB, free: 12.31 MB / 346.7 MB Notification: Performance of matching and sorting (n=18): time 0.0002897/0.4451, allocations: 125.3 kB / 469.8 MB, free: 12.18 MB / 346.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001116/0.4453, allocations: 192 kB / 470 MB, free: 11.95 MB / 346.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001642/0.4454, allocations: 158.3 kB / 470.2 MB, free: 11.79 MB / 346.7 MB Notification: Performance of collectPreVariables (initialization): time 1.629e-05/0.4455, allocations: 25.7 kB / 470.2 MB, free: 11.76 MB / 346.7 MB Notification: Performance of collectInitialEqns (initialization): time 5.522e-05/0.4455, allocations: 96.52 kB / 470.3 MB, free: 11.66 MB / 346.7 MB Notification: Performance of collectInitialBindings (initialization): time 2.835e-05/0.4456, allocations: 15.89 kB / 470.3 MB, free: 11.64 MB / 346.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 4.949e-06/0.4456, allocations: 4.156 kB / 470.3 MB, free: 11.64 MB / 346.7 MB Notification: Performance of setup shared object (initialization): time 0.000131/0.4457, allocations: 322.8 kB / 470.6 MB, free: 11.31 MB / 346.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 3.559e-05/0.4457, allocations: 19.94 kB / 470.6 MB, free: 11.29 MB / 346.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001192/0.4459, allocations: 132.3 kB / 470.8 MB, free: 11.11 MB / 346.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 6.708e-05/0.4459, allocations: 39.95 kB / 470.8 MB, free: 11.07 MB / 346.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.462e-06/0.446, allocations: 4 kB / 470.8 MB, free: 11.07 MB / 346.7 MB Notification: Performance of matching and sorting (n=19) (initialization): time 0.0002118/0.4462, allocations: 137.7 kB / 470.9 MB, free: 10.93 MB / 346.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.871e-05/0.4462, allocations: 12.03 kB / 470.9 MB, free: 10.91 MB / 346.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.385e-06/0.4462, allocations: 4 kB / 470.9 MB, free: 10.91 MB / 346.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.136e-05/0.4462, allocations: 8 kB / 471 MB, free: 10.9 MB / 346.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001408/0.4464, allocations: 35.98 kB / 471 MB, free: 10.87 MB / 346.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.051e-05/0.4464, allocations: 11.88 kB / 471 MB, free: 10.86 MB / 346.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 9.962e-05/0.4465, allocations: 19.83 kB / 471 MB, free: 10.84 MB / 346.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.52e-05/0.4465, allocations: 8.625 kB / 471 MB, free: 10.83 MB / 346.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 () * 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 9.108e-05/0.4466, allocations: 112.9 kB / 471.1 MB, free: 10.71 MB / 346.7 MB Notification: Performance of postOpt createAliasVarsForOutputStates (simulation): time 0.000227/0.4469, allocations: 129.4 kB / 471.3 MB, free: 10.58 MB / 346.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.337e-05/0.4469, allocations: 19.75 kB / 471.3 MB, free: 10.56 MB / 346.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 5.512e-05/0.447, allocations: 25.83 kB / 471.3 MB, free: 10.54 MB / 346.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.645e-06/0.447, allocations: 0 / 471.3 MB, free: 10.54 MB / 346.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.012e-05/0.447, allocations: 8 kB / 471.3 MB, free: 10.53 MB / 346.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.429e-06/0.447, allocations: 3.938 kB / 471.3 MB, free: 10.52 MB / 346.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.000246/0.4473, allocations: 198 kB / 471.5 MB, free: 10.29 MB / 346.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.784e-06/0.4473, allocations: 0 / 471.5 MB, free: 10.29 MB / 346.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001476/0.4474, allocations: 44.06 kB / 471.6 MB, free: 10.25 MB / 346.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 4.849e-06/0.4475, allocations: 4 kB / 471.6 MB, free: 10.25 MB / 346.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.25e-05/0.4475, allocations: 0 / 471.6 MB, free: 10.25 MB / 346.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.616e-06/0.4475, allocations: 4 kB / 471.6 MB, free: 10.24 MB / 346.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.454e-05/0.4475, allocations: 7.922 kB / 471.6 MB, free: 10.23 MB / 346.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003214/0.4478, allocations: 361.6 kB / 471.9 MB, free: 9.832 MB / 346.7 MB Notification: Performance of postOpt removeConstants (simulation): time 9.679e-05/0.4479, allocations: 113 kB / 472 MB, free: 9.703 MB / 346.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.987e-05/0.448, allocations: 7.938 kB / 472 MB, free: 9.695 MB / 346.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001453/0.4481, allocations: 15.98 kB / 472.1 MB, free: 9.68 MB / 346.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.733e-05/0.4482, allocations: 4 kB / 472.1 MB, free: 9.676 MB / 346.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 9.518e-06/0.4482, allocations: 4 kB / 472.1 MB, free: 9.672 MB / 346.7 MB Notification: Performance of sorting global known variables: time 0.0001049/0.4483, allocations: 128.1 kB / 472.2 MB, free: 9.547 MB / 346.7 MB Notification: Performance of sort global known variables: time 1.31e-07/0.4483, allocations: 0 / 472.2 MB, free: 9.547 MB / 346.7 MB Notification: Performance of remove unused functions: time 0.0003108/0.4486, allocations: 23.84 kB / 472.2 MB, free: 9.523 MB / 346.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 () * 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.0009094/0.4495, allocations: 1.224 MB / 473.4 MB, free: 8.246 MB / 346.7 MB Notification: Performance of simCode: created initialization part: time 0.0001783/0.4497, allocations: 85.42 kB / 473.5 MB, free: 8.164 MB / 346.7 MB Notification: Performance of simCode: created event and clocks part: time 2.214e-06/0.4497, allocations: 0 / 473.5 MB, free: 8.164 MB / 346.7 MB Notification: Performance of simCode: created simulation system equations: time 1.99e-05/0.4498, allocations: 8 kB / 473.5 MB, free: 8.156 MB / 346.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004406/0.4502, allocations: 85.12 kB / 473.6 MB, free: 8.074 MB / 346.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0006207/0.4508, allocations: 259.6 kB / 473.9 MB, free: 7.77 MB / 346.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002791/0.4511, allocations: 0.7241 MB / 474.6 MB, free: 7.02 MB / 346.7 MB Notification: Performance of simCode: alias equations: time 6.022e-05/0.4512, allocations: 17.86 kB / 474.6 MB, free: 7.004 MB / 346.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 6.987e-05/0.4513, allocations: 43.36 kB / 474.7 MB, free: 6.961 MB / 346.7 MB Notification: Performance of SimCode: time 2.51e-07/0.4513, allocations: 0 / 474.7 MB, free: 6.961 MB / 346.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02031/0.4716, allocations: 2.68 MB / 477.3 MB, free: 4.312 MB / 346.7 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001927/0.4718, allocations: 159.3 kB / 477.5 MB, free: 4.121 MB / 346.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 1.58/2.052, allocations: 0 / 477.5 MB, free: 4.121 MB / 346.7 MB (rm -f Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.RealSignals.HoldWithDAeffects2.pipe ; mkfifo Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.RealSignals.HoldWithDAeffects2.pipe ; head -c 1048576 < Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.RealSignals.HoldWithDAeffects2.pipe >> ../files/Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.RealSignals.HoldWithDAeffects2.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.RealSignals.HoldWithDAeffects2_res.mat --tempDir=temp_Modelica_4_0_0_Modelica_Clocked_Examples_Elementary_RealSignals_HoldWithDAeffects2_fmu --startTime=0 --stopTime=0.2 --timeout=50 --tolerance=1e-06 Modelica_4_0_0_Modelica_Clocked_Examples_Elementary_RealSignals_HoldWithDAeffects2.fmu > Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.RealSignals.HoldWithDAeffects2.pipe 2>&1) TODO: How the !@#!# did the simulation report success but simulation result Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.RealSignals.HoldWithDAeffects2_res.mat does not exist to compare? outputFormat=mat