Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_Synchronous_Modelica_Synchronous.Examples.Elementary.RealSignals.AssignClockToTriggerHold.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.AssignClockToTriggerHold,fileNamePrefix="Modelica_Synchronous_Modelica_Synchronous_Examples_Elementary_RealSignals_AssignClockToTriggerHold",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica_Synchronous.Examples.Elementary.RealSignals.AssignClockToTriggerHold,fileNamePrefix="Modelica_Synchronous_Modelica_Synchronous_Examples_Elementary_RealSignals_AssignClockToTriggerHold",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.00167/0.001669, allocations: 181.5 kB / 13.23 MB, free: 2.086 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.191/2.191, allocations: 205.2 MB / 219 MB, free: 9.211 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.001105/0.001104, allocations: 92.34 kB / 267.1 MB, free: 9.273 MB / 218.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica_Synchronous 0.93.0-master/package.mo): time 0.1074/0.1074, allocations: 12.58 MB / 327.7 MB, free: 12.49 MB / 282.7 MB Notification: Performance of FrontEnd - loaded program: time 4.082e-05/4.123e-05, allocations: 7.984 kB / 386.1 MB, free: 69.5 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1012/0.1013, allocations: 50.37 MB / 436.5 MB, free: 19.11 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.4326/0.534, allocations: 78.73 MB / 0.5031 GB, free: 11.87 MB / 330.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002878/0.5343, allocations: 79.69 kB / 0.5032 GB, free: 11.87 MB / 330.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.007413/0.5418, allocations: 1.628 MB / 0.5048 GB, free: 11.47 MB / 330.7 MB Notification: Performance of FrontEnd: time 2.515e-06/0.5418, allocations: 0 / 0.5048 GB, free: 11.47 MB / 330.7 MB Notification: Performance of Transformations before backend: time 1.356e-05/0.5418, allocations: 0 / 0.5048 GB, free: 11.47 MB / 330.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.0004595/0.5423, allocations: 372.9 kB / 0.5052 GB, free: 11.11 MB / 330.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.86e-05/0.5424, allocations: 10.12 kB / 0.5052 GB, free: 11.11 MB / 330.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 4.652e-05/0.5424, allocations: 38.03 kB / 0.5052 GB, free: 11.07 MB / 330.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.97e-05/0.5425, allocations: 7.688 kB / 0.5052 GB, free: 11.06 MB / 330.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002154/0.5427, allocations: 204.8 kB / 0.5054 GB, free: 10.85 MB / 330.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.525e-05/0.5427, allocations: 3.844 kB / 0.5054 GB, free: 10.85 MB / 330.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.162e-05/0.5428, allocations: 10.28 kB / 0.5054 GB, free: 10.84 MB / 330.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003332/0.5431, allocations: 136.4 kB / 0.5056 GB, free: 10.77 MB / 330.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.17e-05/0.5431, allocations: 0 / 0.5056 GB, free: 10.77 MB / 330.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.265e-05/0.5432, allocations: 0 / 0.5056 GB, free: 10.77 MB / 330.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.344e-06/0.5432, allocations: 3.844 kB / 0.5056 GB, free: 10.77 MB / 330.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 9.194e-05/0.5433, allocations: 21.55 kB / 0.5056 GB, free: 10.77 MB / 330.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0005617/0.5439, allocations: 313.7 kB / 0.5059 GB, free: 10.48 MB / 330.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002229/0.5441, allocations: 146.2 kB / 0.506 GB, free: 10.34 MB / 330.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 7.259e-05/0.5442, allocations: 36.75 kB / 0.5061 GB, free: 10.32 MB / 330.7 MB Notification: Performance of preOpt evalFunc (simulation): time 2.793e-05/0.5442, allocations: 7.359 kB / 0.5061 GB, free: 10.32 MB / 330.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001139/0.5444, allocations: 55.33 kB / 0.5061 GB, free: 10.27 MB / 330.7 MB Notification: Performance of pre-optimization done (n=9): time 2.504e-06/0.5444, allocations: 0 / 0.5061 GB, free: 10.27 MB / 330.7 MB Notification: Performance of matching and sorting (n=9): time 0.0002484/0.5446, allocations: 88.48 kB / 0.5062 GB, free: 10.23 MB / 330.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.676e-05/0.5447, allocations: 82.7 kB / 0.5063 GB, free: 10.14 MB / 330.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001275/0.5448, allocations: 137.6 kB / 0.5064 GB, free: 10.05 MB / 330.7 MB Notification: Performance of collectPreVariables (initialization): time 1.445e-05/0.5449, allocations: 25.7 kB / 0.5064 GB, free: 10.02 MB / 330.7 MB Notification: Performance of collectInitialEqns (initialization): time 4.052e-05/0.5449, allocations: 102 kB / 0.5065 GB, free: 9.922 MB / 330.7 MB Notification: Performance of collectInitialBindings (initialization): time 2.311e-05/0.5449, allocations: 10.88 kB / 0.5065 GB, free: 9.918 MB / 330.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 7.163e-06/0.545, allocations: 2.75 kB / 0.5065 GB, free: 9.918 MB / 330.7 MB Notification: Performance of setup shared object (initialization): time 6.394e-05/0.545, allocations: 316.9 kB / 0.5068 GB, free: 9.605 MB / 330.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 5.3e-05/0.5451, allocations: 17.69 kB / 0.5069 GB, free: 9.605 MB / 330.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 7.305e-05/0.5452, allocations: 58.16 kB / 0.5069 GB, free: 9.555 MB / 330.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 6.855e-05/0.5453, allocations: 22.34 kB / 0.5069 GB, free: 9.551 MB / 330.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.579e-06/0.5453, allocations: 2.766 kB / 0.5069 GB, free: 9.551 MB / 330.7 MB Notification: Performance of matching and sorting (n=12) (initialization): time 0.0002284/0.5455, allocations: 107.4 kB / 0.507 GB, free: 9.5 MB / 330.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.954e-05/0.5456, allocations: 7.688 kB / 0.507 GB, free: 9.5 MB / 330.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.474e-06/0.5456, allocations: 4.156 kB / 0.5071 GB, free: 9.496 MB / 330.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.88e-05/0.5456, allocations: 3.875 kB / 0.5071 GB, free: 9.496 MB / 330.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001551/0.5458, allocations: 14 kB / 0.5071 GB, free: 9.496 MB / 330.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.149e-05/0.5458, allocations: 12.44 kB / 0.5071 GB, free: 9.488 MB / 330.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 8.98e-05/0.5459, allocations: 6.797 kB / 0.5071 GB, free: 9.488 MB / 330.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.281e-05/0.5459, allocations: 3.875 kB / 0.5071 GB, free: 9.488 MB / 330.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 7.592e-05/0.546, allocations: 112.4 kB / 0.5072 GB, free: 9.379 MB / 330.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 9.053e-05/0.5461, allocations: 62.69 kB / 0.5073 GB, free: 9.336 MB / 330.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 5.757e-05/0.5462, allocations: 15.25 kB / 0.5073 GB, free: 9.328 MB / 330.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.43e-06/0.5462, allocations: 2.906 kB / 0.5073 GB, free: 9.328 MB / 330.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.142e-06/0.5462, allocations: 0 / 0.5073 GB, free: 9.328 MB / 330.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.042e-06/0.5462, allocations: 7.641 kB / 0.5073 GB, free: 9.324 MB / 330.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0003597/0.5466, allocations: 328.9 kB / 0.5076 GB, free: 9.027 MB / 330.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.436e-06/0.5466, allocations: 0 / 0.5076 GB, free: 9.027 MB / 330.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001017/0.5467, allocations: 14.52 kB / 0.5076 GB, free: 9.023 MB / 330.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 4.739e-06/0.5467, allocations: 0 / 0.5076 GB, free: 9.023 MB / 330.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.579e-05/0.5468, allocations: 7.781 kB / 0.5076 GB, free: 9.023 MB / 330.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 4.639e-06/0.5468, allocations: 11.89 kB / 0.5076 GB, free: 9.012 MB / 330.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.013e-06/0.5468, allocations: 0 / 0.5076 GB, free: 9.012 MB / 330.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001985/0.547, allocations: 199.2 kB / 0.5078 GB, free: 8.852 MB / 330.7 MB Notification: Performance of postOpt removeConstants (simulation): time 6.774e-05/0.5471, allocations: 95.47 kB / 0.5079 GB, free: 8.75 MB / 330.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.153e-05/0.5471, allocations: 9.359 kB / 0.5079 GB, free: 8.746 MB / 330.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001084/0.5472, allocations: 7.844 kB / 0.5079 GB, free: 8.742 MB / 330.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.956e-05/0.5473, allocations: 10.2 kB / 0.5079 GB, free: 8.742 MB / 330.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.216e-05/0.5473, allocations: 3.844 kB / 0.5079 GB, free: 8.742 MB / 330.7 MB Notification: Performance of sorting global known variables: time 8.489e-05/0.5474, allocations: 103.8 kB / 0.508 GB, free: 8.668 MB / 330.7 MB Notification: Performance of sort global known variables: time 4.01e-07/0.5474, allocations: 3.812 kB / 0.508 GB, free: 8.668 MB / 330.7 MB Notification: Performance of remove unused functions: time 0.0003162/0.5478, allocations: 11.62 kB / 0.5081 GB, free: 8.668 MB / 330.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.0005192/0.5483, allocations: 0.8371 MB / 0.5089 GB, free: 7.902 MB / 330.7 MB Notification: Performance of simCode: created initialization part: time 0.0001919/0.5485, allocations: 55.66 kB / 0.5089 GB, free: 7.895 MB / 330.7 MB Notification: Performance of simCode: created event and clocks part: time 2.806e-06/0.5485, allocations: 0 / 0.5089 GB, free: 7.895 MB / 330.7 MB Notification: Performance of simCode: created simulation system equations: time 5.688e-05/0.5486, allocations: 18.17 kB / 0.5089 GB, free: 7.895 MB / 330.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003525/0.5489, allocations: 19.2 kB / 0.509 GB, free: 7.895 MB / 330.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0006941/0.5496, allocations: 180 kB / 0.5091 GB, free: 7.746 MB / 330.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001893/0.5499, allocations: 0.7076 MB / 0.5098 GB, free: 7.051 MB / 330.7 MB Notification: Performance of simCode: alias equations: time 6.443e-05/0.5499, allocations: 7.891 kB / 0.5098 GB, free: 7.047 MB / 330.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 7.003e-05/0.55, allocations: 24.28 kB / 0.5099 GB, free: 7.039 MB / 330.7 MB Notification: Performance of SimCode: time 1.713e-06/0.55, allocations: 192 / 0.5099 GB, free: 7.039 MB / 330.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02076/0.5708, allocations: 1.758 MB / 0.5116 GB, free: 6.273 MB / 330.7 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0002402/0.5711, allocations: 190.8 kB / 0.5118 GB, free: 6.051 MB / 330.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 2.619/3.19, allocations: 4 kB / 0.5118 GB, free: 6.047 MB / 330.7 MB (rm -f Modelica_Synchronous_Modelica_Synchronous.Examples.Elementary.RealSignals.AssignClockToTriggerHold.pipe ; mkfifo Modelica_Synchronous_Modelica_Synchronous.Examples.Elementary.RealSignals.AssignClockToTriggerHold.pipe ; head -c 1048576 < Modelica_Synchronous_Modelica_Synchronous.Examples.Elementary.RealSignals.AssignClockToTriggerHold.pipe >> ../files/Modelica_Synchronous_Modelica_Synchronous.Examples.Elementary.RealSignals.AssignClockToTriggerHold.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=Modelica_Synchronous_Modelica_Synchronous.Examples.Elementary.RealSignals.AssignClockToTriggerHold_res.mat --tempDir=temp_Modelica_Synchronous_Modelica_Synchronous_Examples_Elementary_RealSignals_AssignClockToTriggerHold_fmu --startTime=0 --stopTime=0.09 --timeout=50 --tolerance=1e-06 Modelica_Synchronous_Modelica_Synchronous_Examples_Elementary_RealSignals_AssignClockToTriggerHold.fmu > Modelica_Synchronous_Modelica_Synchronous.Examples.Elementary.RealSignals.AssignClockToTriggerHold.pipe 2>&1) TODO: How the !@#!# did the simulation report success but simulation result Modelica_Synchronous_Modelica_Synchronous.Examples.Elementary.RealSignals.AssignClockToTriggerHold_res.mat does not exist to compare? outputFormat=mat