Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.RealSignals.AssignClockToTriggerHold.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.AssignClockToTriggerHold,fileNamePrefix="Modelica_4_0_0_Modelica_Clocked_Examples_Elementary_RealSignals_AssignClockToTriggerHold",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Clocked.Examples.Elementary.RealSignals.AssignClockToTriggerHold,fileNamePrefix="Modelica_4_0_0_Modelica_Clocked_Examples_Elementary_RealSignals_AssignClockToTriggerHold",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.001393/0.001393, allocations: 180.6 kB / 16.39 MB, free: 5.762 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.382/1.382, allocations: 223.2 MB / 240.3 MB, free: 11.88 MB / 202.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.0009388/0.0009387, allocations: 89.31 kB / 291.5 MB, free: 10.92 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0003765/0.0003765, allocations: 7.938 kB / 351.2 MB, free: 15.21 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3467/0.3471, allocations: 50.41 MB / 401.6 MB, free: 32.58 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.1022/0.4494, allocations: 77.59 MB / 479.2 MB, free: 2.887 MB / 346.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002017/0.4496, allocations: 79.95 kB / 479.3 MB, free: 2.809 MB / 346.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.004462/0.4541, allocations: 1.704 MB / 481 MB, free: 1.105 MB / 346.7 MB Notification: Performance of FrontEnd: time 2.284e-06/0.4541, allocations: 0 / 481 MB, free: 1.105 MB / 346.7 MB Notification: Performance of Transformations before backend: time 9.258e-06/0.4541, allocations: 4 kB / 481 MB, free: 1.102 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: 15 * Number of variables: 15 Notification: Performance of Generate backend data structure: time 0.000397/0.4545, allocations: 386.9 kB / 481.3 MB, free: 0.6758 MB / 346.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.818e-05/0.4546, allocations: 12.03 kB / 481.3 MB, free: 0.6641 MB / 346.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 4.129e-05/0.4546, allocations: 42.52 kB / 481.4 MB, free: 0.6133 MB / 346.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 2.691e-05/0.4547, allocations: 7.906 kB / 481.4 MB, free: 0.6055 MB / 346.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001657/0.4548, allocations: 193.5 kB / 481.6 MB, free: 388 kB / 346.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 8.596e-06/0.4548, allocations: 8 kB / 481.6 MB, free: 380 kB / 346.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.391e-05/0.4549, allocations: 4 kB / 481.6 MB, free: 376 kB / 346.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002697/0.4551, allocations: 144.3 kB / 481.7 MB, free: 216 kB / 346.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 8.446e-06/0.4552, allocations: 3.953 kB / 481.7 MB, free: 212 kB / 346.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 9.909e-06/0.4552, allocations: 0 / 481.7 MB, free: 212 kB / 346.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.3e-06/0.4552, allocations: 4 kB / 481.7 MB, free: 208 kB / 346.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001075/0.4553, allocations: 39.91 kB / 481.8 MB, free: 168 kB / 346.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0004248/0.4557, allocations: 305.6 kB / 482.1 MB, free: 15.81 MB / 362.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002295/0.456, allocations: 162.3 kB / 482.2 MB, free: 15.62 MB / 362.7 MB Notification: Performance of preOpt evalFunc (simulation): time 1.966e-05/0.456, allocations: 8 kB / 482.3 MB, free: 15.61 MB / 362.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001151/0.4561, allocations: 63.48 kB / 482.3 MB, free: 15.54 MB / 362.7 MB Notification: Performance of pre-optimization done (n=9): time 1.402e-06/0.4561, allocations: 0 / 482.3 MB, free: 15.54 MB / 362.7 MB Notification: Performance of matching and sorting (n=9): time 0.0002871/0.4564, allocations: 133.5 kB / 482.4 MB, free: 15.4 MB / 362.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.361e-05/0.4565, allocations: 77.11 kB / 482.5 MB, free: 15.3 MB / 362.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001019/0.4566, allocations: 132.9 kB / 482.6 MB, free: 15.17 MB / 362.7 MB Notification: Performance of collectPreVariables (initialization): time 1.432e-05/0.4566, allocations: 25.7 kB / 482.7 MB, free: 15.14 MB / 362.7 MB Notification: Performance of collectInitialEqns (initialization): time 4.703e-05/0.4567, allocations: 96.03 kB / 482.8 MB, free: 15.04 MB / 362.7 MB Notification: Performance of collectInitialBindings (initialization): time 1.798e-05/0.4567, allocations: 11.91 kB / 482.8 MB, free: 15.03 MB / 362.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 5.661e-06/0.4567, allocations: 4 kB / 482.8 MB, free: 15.02 MB / 362.7 MB Notification: Performance of setup shared object (initialization): time 9.879e-05/0.4568, allocations: 318.8 kB / 483.1 MB, free: 14.7 MB / 362.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 6.791e-05/0.4569, allocations: 31.92 kB / 483.1 MB, free: 14.67 MB / 362.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 8.193e-05/0.457, allocations: 57.14 kB / 483.2 MB, free: 14.6 MB / 362.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 7.071e-05/0.4571, allocations: 31.98 kB / 483.2 MB, free: 14.57 MB / 362.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.947e-06/0.4571, allocations: 3.953 kB / 483.2 MB, free: 14.56 MB / 362.7 MB Notification: Performance of matching and sorting (n=12) (initialization): time 0.0001968/0.4573, allocations: 117.5 kB / 483.3 MB, free: 14.44 MB / 362.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.4e-05/0.4573, allocations: 4 kB / 483.3 MB, free: 14.44 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.891e-06/0.4573, allocations: 4 kB / 483.3 MB, free: 14.43 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 9.879e-06/0.4574, allocations: 4.156 kB / 483.3 MB, free: 14.43 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 7.887e-05/0.4574, allocations: 19.92 kB / 483.4 MB, free: 14.41 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.472e-06/0.4575, allocations: 4 kB / 483.4 MB, free: 14.41 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 6.019e-05/0.4575, allocations: 7.906 kB / 483.4 MB, free: 14.4 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 9.097e-06/0.4575, allocations: 4 kB / 483.4 MB, free: 14.39 MB / 362.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: 8 ($PRE.triggeredSampler.y,triggeredSampler.y,clockToTrigger.y2,$CLKPRE.clockToTrigger.y2,$whenCondition1,clockToTrigger.y,$PRE.clockToTrigger.y3,clockToTrigger.y3) * Number of discrete states: 0 () * Number of clocked states: 1 (clockToTrigger.y2) * Top-level inputs: 0 Notification: Strong component statistics for initialization (12): * Single equations (assignments): 12 * 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.284e-05/0.4576, allocations: 133 kB / 483.5 MB, free: 14.26 MB / 362.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 6.487e-05/0.4577, allocations: 61.42 kB / 483.6 MB, free: 14.19 MB / 362.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.697e-05/0.4578, allocations: 16.31 kB / 483.6 MB, free: 14.18 MB / 362.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.485e-06/0.4578, allocations: 4 kB / 483.6 MB, free: 14.17 MB / 362.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.719e-06/0.4578, allocations: 4 kB / 483.6 MB, free: 14.17 MB / 362.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.256e-06/0.4578, allocations: 0 / 483.6 MB, free: 14.17 MB / 362.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0003495/0.4581, allocations: 342.6 kB / 483.9 MB, free: 13.78 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.563e-06/0.4582, allocations: 0 / 483.9 MB, free: 13.78 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 6.131e-05/0.4582, allocations: 19.92 kB / 483.9 MB, free: 13.76 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.544e-06/0.4582, allocations: 0 / 483.9 MB, free: 13.76 MB / 362.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.135e-06/0.4582, allocations: 4 kB / 483.9 MB, free: 13.75 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.805e-06/0.4583, allocations: 0 / 483.9 MB, free: 13.75 MB / 362.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.142e-06/0.4583, allocations: 7.938 kB / 484 MB, free: 13.75 MB / 362.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.000247/0.4585, allocations: 218.3 kB / 484.2 MB, free: 13.51 MB / 362.7 MB Notification: Performance of postOpt removeConstants (simulation): time 7.533e-05/0.4586, allocations: 97 kB / 484.3 MB, free: 13.39 MB / 362.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.061e-05/0.4586, allocations: 4 kB / 484.3 MB, free: 13.39 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 7.388e-05/0.4587, allocations: 8 kB / 484.3 MB, free: 13.38 MB / 362.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.398e-05/0.4587, allocations: 7.984 kB / 484.3 MB, free: 13.38 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.965e-06/0.4588, allocations: 4 kB / 484.3 MB, free: 13.37 MB / 362.7 MB Notification: Performance of sorting global known variables: time 7.283e-05/0.4588, allocations: 110.2 kB / 484.4 MB, free: 13.27 MB / 362.7 MB Notification: Performance of sort global known variables: time 1.2e-07/0.4588, allocations: 0 / 484.4 MB, free: 13.27 MB / 362.7 MB Notification: Performance of remove unused functions: time 0.0002319/0.4591, allocations: 23.86 kB / 484.4 MB, free: 13.24 MB / 362.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 2 * Number of states: 0 () * Number of discrete variables: 5 (clockToTrigger.y2,clockToTrigger.y,$whenCondition1,triggeredSampler.y,clockToTrigger.y3) * Number of discrete states: 1 (clockToTrigger.y3) * Number of clocked states: 1 (clockToTrigger.y2) * Top-level inputs: 0 Notification: Strong component statistics for simulation (9): * Single equations (assignments): 8 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 1 * 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.0006011/0.4597, allocations: 0.8505 MB / 485.3 MB, free: 12.36 MB / 362.7 MB Notification: Performance of simCode: created initialization part: time 0.0001745/0.4599, allocations: 75.91 kB / 485.3 MB, free: 12.29 MB / 362.7 MB Notification: Performance of simCode: created event and clocks part: time 1.502e-06/0.4599, allocations: 0 / 485.3 MB, free: 12.29 MB / 362.7 MB Notification: Performance of simCode: created simulation system equations: time 5.912e-05/0.46, allocations: 16.19 kB / 485.4 MB, free: 12.27 MB / 362.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002447/0.4602, allocations: 39.84 kB / 485.4 MB, free: 12.23 MB / 362.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001157/0.4614, allocations: 1.375 MB / 486.8 MB, free: 10.77 MB / 362.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000238/0.4616, allocations: 0.7043 MB / 487.5 MB, free: 10.04 MB / 362.7 MB Notification: Performance of simCode: alias equations: time 3.871e-05/0.4617, allocations: 8.656 kB / 487.5 MB, free: 10.03 MB / 362.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 5.007e-05/0.4617, allocations: 23.42 kB / 487.5 MB, free: 10.01 MB / 362.7 MB Notification: Performance of SimCode: time 2.4e-07/0.4617, allocations: 0 / 487.5 MB, free: 10.01 MB / 362.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.01194/0.4737, allocations: 1.735 MB / 489.2 MB, free: 8.461 MB / 362.7 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0002591/0.474, allocations: 206.6 kB / 489.4 MB, free: 8.223 MB / 362.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 1.559/2.033, allocations: 4.062 kB / 489.4 MB, free: 8.219 MB / 362.7 MB (rm -f Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.RealSignals.AssignClockToTriggerHold.pipe ; mkfifo Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.RealSignals.AssignClockToTriggerHold.pipe ; head -c 1048576 < Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.RealSignals.AssignClockToTriggerHold.pipe >> ../files/Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.RealSignals.AssignClockToTriggerHold.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.RealSignals.AssignClockToTriggerHold_res.mat --tempDir=temp_Modelica_4_0_0_Modelica_Clocked_Examples_Elementary_RealSignals_AssignClockToTriggerHold_fmu --startTime=0 --stopTime=0.09 --timeout=50 --tolerance=1e-06 Modelica_4_0_0_Modelica_Clocked_Examples_Elementary_RealSignals_AssignClockToTriggerHold.fmu > Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.RealSignals.AssignClockToTriggerHold.pipe 2>&1) TODO: How the !@#!# did the simulation report success but simulation result Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.RealSignals.AssignClockToTriggerHold_res.mat does not exist to compare? outputFormat=mat