Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_trunk_Modelica.Clocked.Examples.Elementary.RealSignals.AssignClockToTriggerHold.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo", uses=false) Using package ModelicaServices with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo) Using package Modelica with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo) Using package Complex with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo) Running command: "" <> buildModelFMU(Modelica.Clocked.Examples.Elementary.RealSignals.AssignClockToTriggerHold,fileNamePrefix="Modelica_trunk_Modelica_Clocked_Examples_Elementary_RealSignals_AssignClockToTriggerHold",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Clocked.Examples.Elementary.RealSignals.AssignClockToTriggerHold,fileNamePrefix="Modelica_trunk_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 trunk/package.mo): time 0.001501/0.001501, allocations: 197.4 kB / 8.766 MB, free: 320 kB / 5.871 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.636/1.636, allocations: 225.6 MB / 234.8 MB, free: 3.289 MB / 186.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.0008542/0.0008544, allocations: 93.16 kB / 286.7 MB, free: 5.281 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 2.208e-05/2.22e-05, allocations: 4 kB / 343.8 MB, free: 8.207 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1093/0.1094, allocations: 51.48 MB / 395.3 MB, free: 4.688 MB / 330.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.3161/0.4255, allocations: 77.67 MB / 472.9 MB, free: 13.7 MB / 346.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002214/0.4257, allocations: 78.31 kB / 473 MB, free: 13.66 MB / 346.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.00501/0.4308, allocations: 1.793 MB / 474.8 MB, free: 12.56 MB / 346.7 MB Notification: Performance of FrontEnd: time 1.072e-06/0.4308, allocations: 0 / 474.8 MB, free: 12.56 MB / 346.7 MB Notification: Performance of Transformations before backend: time 9.408e-06/0.4308, allocations: 0 / 474.8 MB, free: 12.56 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.0003041/0.4311, allocations: 373.8 kB / 475.2 MB, free: 12.18 MB / 346.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.525e-05/0.4312, allocations: 12.03 kB / 475.2 MB, free: 12.16 MB / 346.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001264/0.4313, allocations: 22.86 kB / 475.2 MB, free: 12.14 MB / 346.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001447/0.4314, allocations: 197.3 kB / 475.4 MB, free: 11.92 MB / 346.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.474e-05/0.4315, allocations: 5.266 kB / 475.4 MB, free: 11.92 MB / 346.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.434e-05/0.4315, allocations: 7.609 kB / 475.4 MB, free: 11.91 MB / 346.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 8.613e-05/0.4316, allocations: 28.69 kB / 475.4 MB, free: 11.89 MB / 346.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001837/0.4318, allocations: 121.8 kB / 475.6 MB, free: 11.79 MB / 346.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 8.566e-06/0.4318, allocations: 2.812 kB / 475.6 MB, free: 11.79 MB / 346.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.049e-05/0.4318, allocations: 0 / 475.6 MB, free: 11.79 MB / 346.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.479e-06/0.4318, allocations: 4 kB / 475.6 MB, free: 11.79 MB / 346.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.000379/0.4322, allocations: 275.7 kB / 475.8 MB, free: 11.52 MB / 346.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0001462/0.4324, allocations: 152.2 kB / 476 MB, free: 11.34 MB / 346.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 3.766e-05/0.4324, allocations: 28.03 kB / 476 MB, free: 11.32 MB / 346.7 MB Notification: Performance of preOpt evalFunc (simulation): time 2.198e-05/0.4324, allocations: 5.062 kB / 476 MB, free: 11.32 MB / 346.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 7.09e-05/0.4325, allocations: 60.17 kB / 476.1 MB, free: 11.25 MB / 346.7 MB Notification: Performance of pre-optimization done (n=9): time 1.342e-06/0.4325, allocations: 0 / 476.1 MB, free: 11.25 MB / 346.7 MB Notification: Performance of matching and sorting (n=9): time 0.0001744/0.4327, allocations: 82.47 kB / 476.2 MB, free: 11.18 MB / 346.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.677e-05/0.4328, allocations: 83.98 kB / 476.2 MB, free: 11.09 MB / 346.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 8.355e-05/0.4328, allocations: 122.8 kB / 476.4 MB, free: 10.98 MB / 346.7 MB Notification: Performance of collectPreVariables (initialization): time 1.147e-05/0.4329, allocations: 25.7 kB / 476.4 MB, free: 10.95 MB / 346.7 MB Notification: Performance of collectInitialEqns (initialization): time 2.803e-05/0.4329, allocations: 92.31 kB / 476.5 MB, free: 10.86 MB / 346.7 MB Notification: Performance of collectInitialBindings (initialization): time 1.848e-05/0.4329, allocations: 28.55 kB / 476.5 MB, free: 10.84 MB / 346.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 5.069e-06/0.4329, allocations: 0 / 476.5 MB, free: 10.84 MB / 346.7 MB Notification: Performance of setup shared object (initialization): time 4.993e-05/0.433, allocations: 320 kB / 476.8 MB, free: 10.52 MB / 346.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 2.829e-05/0.433, allocations: 12.75 kB / 476.8 MB, free: 10.51 MB / 346.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 3.818e-05/0.4331, allocations: 53.2 kB / 476.9 MB, free: 10.45 MB / 346.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 4.014e-05/0.4331, allocations: 28.61 kB / 476.9 MB, free: 10.43 MB / 346.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.525e-06/0.4331, allocations: 0 / 476.9 MB, free: 10.43 MB / 346.7 MB Notification: Performance of matching and sorting (n=12) (initialization): time 0.0001224/0.4332, allocations: 93.77 kB / 477 MB, free: 10.36 MB / 346.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.549e-05/0.4333, allocations: 8 kB / 477 MB, free: 10.35 MB / 346.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.598e-06/0.4333, allocations: 0 / 477 MB, free: 10.35 MB / 346.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.213e-05/0.4333, allocations: 4 kB / 477 MB, free: 10.34 MB / 346.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 7.935e-05/0.4334, allocations: 23.38 kB / 477 MB, free: 10.32 MB / 346.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 4.308e-06/0.4334, allocations: 0 / 477 MB, free: 10.32 MB / 346.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 5.367e-05/0.4335, allocations: 5.406 kB / 477 MB, free: 10.32 MB / 346.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.967e-06/0.4335, allocations: 7.125 kB / 477 MB, free: 10.32 MB / 346.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 () * 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 4.84e-05/0.4335, allocations: 115.1 kB / 477.2 MB, free: 10.2 MB / 346.7 MB Notification: Performance of postOpt createAliasVarsForOutputStates (simulation): time 9.758e-05/0.4336, allocations: 81.55 kB / 477.2 MB, free: 10.13 MB / 346.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.244e-05/0.4336, allocations: 7.906 kB / 477.2 MB, free: 10.12 MB / 346.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.229e-05/0.4337, allocations: 15.5 kB / 477.3 MB, free: 10.12 MB / 346.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.003e-06/0.4337, allocations: 4 kB / 477.3 MB, free: 10.11 MB / 346.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.298e-06/0.4337, allocations: 0 / 477.3 MB, free: 10.11 MB / 346.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.657e-06/0.4337, allocations: 1.359 kB / 477.3 MB, free: 10.11 MB / 346.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001923/0.4339, allocations: 310.9 kB / 477.6 MB, free: 9.805 MB / 346.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.382e-06/0.4339, allocations: 0 / 477.6 MB, free: 9.805 MB / 346.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 5.692e-05/0.434, allocations: 12.94 kB / 477.6 MB, free: 9.797 MB / 346.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.775e-06/0.434, allocations: 0 / 477.6 MB, free: 9.797 MB / 346.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 9.047e-06/0.434, allocations: 5.312 kB / 477.6 MB, free: 9.793 MB / 346.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.473e-06/0.434, allocations: 0 / 477.6 MB, free: 9.793 MB / 346.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.664e-06/0.434, allocations: 4 kB / 477.6 MB, free: 9.789 MB / 346.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001149/0.4341, allocations: 197.1 kB / 477.8 MB, free: 9.594 MB / 346.7 MB Notification: Performance of postOpt removeConstants (simulation): time 4.405e-05/0.4342, allocations: 97.67 kB / 477.9 MB, free: 9.488 MB / 346.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.933e-05/0.4342, allocations: 0 / 477.9 MB, free: 9.488 MB / 346.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 7.085e-05/0.4343, allocations: 7.188 kB / 477.9 MB, free: 9.484 MB / 346.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.53e-05/0.4343, allocations: 18.56 kB / 477.9 MB, free: 9.469 MB / 346.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.774e-06/0.4344, allocations: 6.625 kB / 477.9 MB, free: 9.465 MB / 346.7 MB Notification: Performance of sorting global known variables: time 4.459e-05/0.4344, allocations: 105.9 kB / 478 MB, free: 9.375 MB / 346.7 MB Notification: Performance of sort global known variables: time 2.4e-07/0.4344, allocations: 0 / 478 MB, free: 9.375 MB / 346.7 MB Notification: Performance of remove unused functions: time 0.000253/0.4347, allocations: 15.94 kB / 478 MB, free: 9.359 MB / 346.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) * 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.0003426/0.435, allocations: 0.8282 MB / 478.9 MB, free: 8.539 MB / 346.7 MB Notification: Performance of simCode: created initialization part: time 9.78e-05/0.4351, allocations: 48.94 kB / 478.9 MB, free: 8.504 MB / 346.7 MB Notification: Performance of simCode: created event and clocks part: time 1.693e-06/0.4351, allocations: 0 / 478.9 MB, free: 8.504 MB / 346.7 MB Notification: Performance of simCode: created simulation system equations: time 2.846e-05/0.4352, allocations: 12.86 kB / 478.9 MB, free: 8.496 MB / 346.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000234/0.4354, allocations: 27.14 kB / 478.9 MB, free: 8.477 MB / 346.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0003879/0.4358, allocations: 157.2 kB / 479.1 MB, free: 8.312 MB / 346.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001211/0.4359, allocations: 0.7066 MB / 479.8 MB, free: 7.594 MB / 346.7 MB Notification: Performance of simCode: alias equations: time 3.708e-05/0.436, allocations: 6.031 kB / 479.8 MB, free: 7.59 MB / 346.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.214e-05/0.436, allocations: 24.38 kB / 479.8 MB, free: 7.578 MB / 346.7 MB Notification: Performance of SimCode: time 2.5e-07/0.436, allocations: 0 / 479.8 MB, free: 7.578 MB / 346.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.01895/0.455, allocations: 1.398 MB / 481.2 MB, free: 6.777 MB / 346.7 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001263/0.4552, allocations: 162.4 kB / 481.4 MB, free: 6.59 MB / 346.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 1.476/1.932, allocations: 5.906 kB / 481.4 MB, free: 6.586 MB / 346.7 MB (rm -f Modelica_trunk_Modelica.Clocked.Examples.Elementary.RealSignals.AssignClockToTriggerHold.pipe ; mkfifo Modelica_trunk_Modelica.Clocked.Examples.Elementary.RealSignals.AssignClockToTriggerHold.pipe ; head -c 1048576 < Modelica_trunk_Modelica.Clocked.Examples.Elementary.RealSignals.AssignClockToTriggerHold.pipe >> ../files/Modelica_trunk_Modelica.Clocked.Examples.Elementary.RealSignals.AssignClockToTriggerHold.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=Modelica_trunk_Modelica.Clocked.Examples.Elementary.RealSignals.AssignClockToTriggerHold_res.mat --tempDir=temp_Modelica_trunk_Modelica_Clocked_Examples_Elementary_RealSignals_AssignClockToTriggerHold_fmu --startTime=0 --stopTime=0.09 --timeout=50 --tolerance=1e-06 Modelica_trunk_Modelica_Clocked_Examples_Elementary_RealSignals_AssignClockToTriggerHold.fmu > Modelica_trunk_Modelica.Clocked.Examples.Elementary.RealSignals.AssignClockToTriggerHold.pipe 2>&1) TODO: How the !@#!# did the simulation report success but simulation result Modelica_trunk_Modelica.Clocked.Examples.Elementary.RealSignals.AssignClockToTriggerHold_res.mat does not exist to compare? outputFormat=mat