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.001362/0.001363, allocations: 174.6 kB / 13.63 MB, free: 1.684 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.338/1.338, allocations: 221.3 MB / 235.5 MB, free: 2.965 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.0008804/0.0008803, allocations: 86.98 kB / 286.5 MB, free: 252 kB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 4.062e-05/4.089e-05, allocations: 4 kB / 343.9 MB, free: 4.234 MB / 234.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1018/0.1019, allocations: 50.41 MB / 394.3 MB, free: 1.789 MB / 282.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.3066/0.4085, allocations: 78.52 MB / 472.9 MB, free: 9.02 MB / 346.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002539/0.4088, allocations: 79.95 kB / 472.9 MB, free: 8.941 MB / 346.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.006455/0.4153, allocations: 2.461 MB / 475.4 MB, free: 6.477 MB / 346.7 MB Notification: Performance of FrontEnd: time 1.583e-06/0.4153, allocations: 0 / 475.4 MB, free: 6.477 MB / 346.7 MB Notification: Performance of Transformations before backend: time 1.335e-05/0.4153, allocations: 4 kB / 475.4 MB, free: 6.473 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.0004827/0.4158, allocations: 423 kB / 475.8 MB, free: 6.016 MB / 346.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.019e-05/0.4159, allocations: 8.031 kB / 475.8 MB, free: 6.008 MB / 346.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 5.401e-05/0.4159, allocations: 46.5 kB / 475.9 MB, free: 5.953 MB / 346.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.24e-05/0.416, allocations: 15.81 kB / 475.9 MB, free: 5.938 MB / 346.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002828/0.4163, allocations: 231.7 kB / 476.1 MB, free: 5.668 MB / 346.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.137e-05/0.4163, allocations: 16.17 kB / 476.1 MB, free: 5.652 MB / 346.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.574e-05/0.4163, allocations: 8 kB / 476.1 MB, free: 5.645 MB / 346.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004231/0.4168, allocations: 254.5 kB / 476.4 MB, free: 5.363 MB / 346.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 9.639e-06/0.4168, allocations: 0 / 476.4 MB, free: 5.363 MB / 346.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.528e-05/0.4168, allocations: 8 kB / 476.4 MB, free: 5.355 MB / 346.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.763e-06/0.4168, allocations: 4 kB / 476.4 MB, free: 5.352 MB / 346.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001021/0.4169, allocations: 51.92 kB / 476.4 MB, free: 5.301 MB / 346.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0004736/0.4174, allocations: 443.3 kB / 476.9 MB, free: 4.805 MB / 346.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003141/0.4177, allocations: 274.2 kB / 477.1 MB, free: 4.473 MB / 346.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001194/0.4179, allocations: 92.3 kB / 477.2 MB, free: 4.367 MB / 346.7 MB Notification: Performance of preOpt evalFunc (simulation): time 2.833e-05/0.4179, allocations: 7.984 kB / 477.2 MB, free: 4.359 MB / 346.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.471e-05/0.4179, allocations: 38.5 kB / 477.3 MB, free: 4.312 MB / 346.7 MB Notification: Performance of pre-optimization done (n=18): time 2.805e-06/0.4179, allocations: 4 kB / 477.3 MB, free: 4.309 MB / 346.7 MB Notification: Performance of matching and sorting (n=18): time 0.0002953/0.4182, allocations: 141.3 kB / 477.4 MB, free: 4.164 MB / 346.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001084/0.4184, allocations: 196 kB / 477.6 MB, free: 3.93 MB / 346.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001528/0.4185, allocations: 158.3 kB / 477.8 MB, free: 3.77 MB / 346.7 MB Notification: Performance of collectPreVariables (initialization): time 1.816e-05/0.4185, allocations: 33.69 kB / 477.8 MB, free: 3.73 MB / 346.7 MB Notification: Performance of collectInitialEqns (initialization): time 5.417e-05/0.4186, allocations: 96.52 kB / 477.9 MB, free: 3.629 MB / 346.7 MB Notification: Performance of collectInitialBindings (initialization): time 2.22e-05/0.4186, allocations: 23.97 kB / 477.9 MB, free: 3.605 MB / 346.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 6.502e-06/0.4186, allocations: 4 kB / 477.9 MB, free: 3.602 MB / 346.7 MB Notification: Performance of setup shared object (initialization): time 0.0001073/0.4188, allocations: 326.8 kB / 478.2 MB, free: 3.273 MB / 346.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 3.832e-05/0.4188, allocations: 20 kB / 478.3 MB, free: 3.254 MB / 346.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001268/0.4189, allocations: 138 kB / 478.4 MB, free: 3.066 MB / 346.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 7.107e-05/0.419, allocations: 36.02 kB / 478.4 MB, free: 3.031 MB / 346.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.615e-06/0.419, allocations: 0 / 478.4 MB, free: 3.031 MB / 346.7 MB Notification: Performance of matching and sorting (n=19) (initialization): time 0.0002288/0.4193, allocations: 165.1 kB / 478.6 MB, free: 2.863 MB / 346.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.665e-05/0.4193, allocations: 8 kB / 478.6 MB, free: 2.855 MB / 346.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.834e-06/0.4193, allocations: 4.531 kB / 478.6 MB, free: 2.852 MB / 346.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.716e-05/0.4193, allocations: 8 kB / 478.6 MB, free: 2.844 MB / 346.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001381/0.4195, allocations: 47.91 kB / 478.7 MB, free: 2.797 MB / 346.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.147e-05/0.4195, allocations: 7.938 kB / 478.7 MB, free: 2.789 MB / 346.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001013/0.4196, allocations: 15.84 kB / 478.7 MB, free: 2.773 MB / 346.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.682e-05/0.4196, allocations: 15.95 kB / 478.7 MB, free: 2.758 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 7.494e-05/0.4197, allocations: 109 kB / 478.8 MB, free: 2.645 MB / 346.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.000198/0.4199, allocations: 126.3 kB / 478.9 MB, free: 2.516 MB / 346.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 4.927e-05/0.42, allocations: 29.55 kB / 479 MB, free: 2.492 MB / 346.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.058e-06/0.42, allocations: 7.938 kB / 479 MB, free: 2.484 MB / 346.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.238e-06/0.42, allocations: 0 / 479 MB, free: 2.484 MB / 346.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.208e-06/0.42, allocations: 4 kB / 479 MB, free: 2.48 MB / 346.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002499/0.4202, allocations: 221.5 kB / 479.2 MB, free: 2.215 MB / 346.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.643e-06/0.4203, allocations: 0 / 479.2 MB, free: 2.215 MB / 346.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001411/0.4204, allocations: 39.98 kB / 479.2 MB, free: 2.176 MB / 346.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 4.339e-06/0.4204, allocations: 3.984 kB / 479.2 MB, free: 2.172 MB / 346.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.198e-05/0.4204, allocations: 7.938 kB / 479.2 MB, free: 2.164 MB / 346.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.814e-06/0.4204, allocations: 4 kB / 479.2 MB, free: 2.16 MB / 346.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.424e-06/0.4204, allocations: 7.938 kB / 479.2 MB, free: 2.152 MB / 346.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002799/0.4207, allocations: 377.5 kB / 479.6 MB, free: 1.734 MB / 346.7 MB Notification: Performance of postOpt removeConstants (simulation): time 8.181e-05/0.4208, allocations: 112.8 kB / 479.7 MB, free: 1.605 MB / 346.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.52e-05/0.4209, allocations: 8 kB / 479.7 MB, free: 1.598 MB / 346.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001455/0.421, allocations: 11.98 kB / 479.7 MB, free: 1.586 MB / 346.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 2.718e-05/0.421, allocations: 4 kB / 479.7 MB, free: 1.582 MB / 346.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.131e-05/0.4211, allocations: 12 kB / 479.8 MB, free: 1.57 MB / 346.7 MB Notification: Performance of sorting global known variables: time 8.879e-05/0.4212, allocations: 137.2 kB / 479.9 MB, free: 1.438 MB / 346.7 MB Notification: Performance of sort global known variables: time 1.4e-07/0.4212, allocations: 0 / 479.9 MB, free: 1.438 MB / 346.7 MB Notification: Performance of remove unused functions: time 0.0002889/0.4215, allocations: 27.94 kB / 479.9 MB, free: 1.41 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.0007866/0.4222, allocations: 1.238 MB / 481.2 MB, free: 120 kB / 346.7 MB Notification: Performance of simCode: created initialization part: time 0.0001928/0.4225, allocations: 106 kB / 481.3 MB, free: 16 kB / 346.7 MB Notification: Performance of simCode: created event and clocks part: time 1.994e-06/0.4225, allocations: 3.938 kB / 481.3 MB, free: 12 kB / 346.7 MB Notification: Performance of simCode: created simulation system equations: time 2.112e-05/0.4225, allocations: 4 kB / 481.3 MB, free: 8 kB / 346.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004584/0.423, allocations: 96.25 kB / 481.4 MB, free: 15.91 MB / 362.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0006305/0.4236, allocations: 263.2 kB / 481.6 MB, free: 15.61 MB / 362.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000282/0.4239, allocations: 0.7358 MB / 482.4 MB, free: 14.84 MB / 362.7 MB Notification: Performance of simCode: alias equations: time 6.001e-05/0.424, allocations: 13.55 kB / 482.4 MB, free: 14.83 MB / 362.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 7.465e-05/0.424, allocations: 39.42 kB / 482.4 MB, free: 14.79 MB / 362.7 MB Notification: Performance of SimCode: time 3.3e-07/0.4241, allocations: 4 kB / 482.4 MB, free: 14.79 MB / 362.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.01615/0.4402, allocations: 3.072 MB / 485.5 MB, free: 11.88 MB / 362.7 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0002029/0.4405, allocations: 171.6 kB / 485.7 MB, free: 11.66 MB / 362.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 1.539/1.979, allocations: 0 / 485.7 MB, free: 11.66 MB / 362.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