Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_trunk_cpp_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: translateModel(Modelica.Clocked.Examples.Elementary.RealSignals.AssignClockToTriggerHold,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|sample1.y|triggeredSampler.y",fileNamePrefix="Modelica_trunk_cpp_Modelica.Clocked.Examples.Elementary.RealSignals.AssignClockToTriggerHold") translateModel(Modelica.Clocked.Examples.Elementary.RealSignals.AssignClockToTriggerHold,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|sample1.y|triggeredSampler.y",fileNamePrefix="Modelica_trunk_cpp_Modelica.Clocked.Examples.Elementary.RealSignals.AssignClockToTriggerHold") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001414/0.001414, allocations: 199.4 kB / 18.07 MB, free: 3.738 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.397/1.397, allocations: 226.5 MB / 245.3 MB, free: 6.512 MB / 202.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.0008092/0.000809, allocations: 102.6 kB / 297.4 MB, free: 6.684 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0002363/0.0002363, allocations: 8 kB / 357.4 MB, free: 10.74 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2694/0.2696, allocations: 51.3 MB / 408.7 MB, free: 27.7 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.1336/0.4033, allocations: 78.34 MB / 487 MB, free: 13.25 MB / 362.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002209/0.4035, allocations: 75.95 kB / 487.1 MB, free: 13.18 MB / 362.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.004666/0.4082, allocations: 1.799 MB / 488.9 MB, free: 11.39 MB / 362.7 MB Notification: Performance of FrontEnd: time 2.134e-06/0.4082, allocations: 3.938 kB / 488.9 MB, free: 11.38 MB / 362.7 MB Notification: Performance of Transformations before backend: time 9.858e-06/0.4083, allocations: 4 kB / 488.9 MB, free: 11.38 MB / 362.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.000384/0.4087, allocations: 379.2 kB / 489.3 MB, free: 10.96 MB / 362.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.34e-05/0.4087, allocations: 8.031 kB / 489.3 MB, free: 10.95 MB / 362.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001322/0.4088, allocations: 24.83 kB / 489.3 MB, free: 10.93 MB / 362.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001746/0.409, allocations: 195.8 kB / 489.5 MB, free: 10.7 MB / 362.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.317e-05/0.4091, allocations: 12.31 kB / 489.5 MB, free: 10.69 MB / 362.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.555e-05/0.4091, allocations: 4.375 kB / 489.5 MB, free: 10.68 MB / 362.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003073/0.4094, allocations: 145.5 kB / 489.6 MB, free: 10.52 MB / 362.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 9.317e-06/0.4094, allocations: 192 / 489.6 MB, free: 10.52 MB / 362.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.503e-05/0.4094, allocations: 3.938 kB / 489.6 MB, free: 10.52 MB / 362.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.402e-06/0.4094, allocations: 7.922 kB / 489.7 MB, free: 10.51 MB / 362.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001175/0.4096, allocations: 43.97 kB / 489.7 MB, free: 10.47 MB / 362.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0004603/0.41, allocations: 305.5 kB / 490 MB, free: 10.12 MB / 362.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002032/0.4102, allocations: 162.3 kB / 490.2 MB, free: 9.922 MB / 362.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 7.815e-05/0.4103, allocations: 37.8 kB / 490.2 MB, free: 9.879 MB / 362.7 MB Notification: Performance of preOpt evalFunc (simulation): time 1.888e-05/0.4104, allocations: 0 / 490.2 MB, free: 9.879 MB / 362.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001147/0.4105, allocations: 75.33 kB / 490.3 MB, free: 9.793 MB / 362.7 MB Notification: Performance of pre-optimization done (n=9): time 1.433e-06/0.4105, allocations: 0 / 490.3 MB, free: 9.793 MB / 362.7 MB Notification: Performance of matching and sorting (n=9): time 0.0003067/0.4108, allocations: 121.5 kB / 490.4 MB, free: 9.668 MB / 362.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.602e-05/0.4109, allocations: 77.11 kB / 490.5 MB, free: 9.574 MB / 362.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001173/0.411, allocations: 145.8 kB / 490.6 MB, free: 9.422 MB / 362.7 MB Notification: Performance of collectPreVariables (initialization): time 1.96e-05/0.411, allocations: 25.7 kB / 490.6 MB, free: 9.391 MB / 362.7 MB Notification: Performance of collectInitialEqns (initialization): time 4.264e-05/0.4111, allocations: 96.08 kB / 490.7 MB, free: 9.293 MB / 362.7 MB Notification: Performance of collectInitialBindings (initialization): time 1.998e-05/0.4111, allocations: 15.8 kB / 490.7 MB, free: 9.277 MB / 362.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 6.923e-06/0.4111, allocations: 4 kB / 490.7 MB, free: 9.273 MB / 362.7 MB Notification: Performance of setup shared object (initialization): time 0.0001023/0.4112, allocations: 318.8 kB / 491 MB, free: 8.953 MB / 362.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 6.335e-05/0.4113, allocations: 23.98 kB / 491.1 MB, free: 8.93 MB / 362.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 8.406e-05/0.4114, allocations: 69.12 kB / 491.1 MB, free: 8.844 MB / 362.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001371/0.4115, allocations: 89.02 kB / 491.2 MB, free: 8.738 MB / 362.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.944e-06/0.4115, allocations: 0 / 491.2 MB, free: 8.738 MB / 362.7 MB Notification: Performance of matching and sorting (n=12) (initialization): time 0.0001992/0.4117, allocations: 113.5 kB / 491.3 MB, free: 8.621 MB / 362.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.328e-05/0.4118, allocations: 8 kB / 491.3 MB, free: 8.613 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.211e-06/0.4118, allocations: 3.984 kB / 491.3 MB, free: 8.609 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.041e-05/0.4118, allocations: 160 / 491.3 MB, free: 8.609 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 6.849e-05/0.4119, allocations: 16 kB / 491.4 MB, free: 8.594 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 8.736e-06/0.4119, allocations: 4 kB / 491.4 MB, free: 8.59 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 5.407e-05/0.4119, allocations: 12.3 kB / 491.4 MB, free: 8.578 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 9.578e-06/0.412, allocations: 4 kB / 491.4 MB, free: 8.574 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.066e-05/0.4121, allocations: 128.5 kB / 491.5 MB, free: 8.441 MB / 362.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 6.509e-05/0.4121, allocations: 57.5 kB / 491.6 MB, free: 8.379 MB / 362.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.364e-05/0.4122, allocations: 20.25 kB / 491.6 MB, free: 8.355 MB / 362.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.007e-06/0.4122, allocations: 4 kB / 491.6 MB, free: 8.352 MB / 362.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.867e-06/0.4122, allocations: 4 kB / 491.6 MB, free: 8.348 MB / 362.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.29e-06/0.4122, allocations: 3.984 kB / 491.6 MB, free: 8.344 MB / 362.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0003291/0.4125, allocations: 346.5 kB / 491.9 MB, free: 7.949 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.693e-06/0.4125, allocations: 4 kB / 491.9 MB, free: 7.945 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 5.335e-05/0.4126, allocations: 8 kB / 491.9 MB, free: 7.938 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.834e-06/0.4126, allocations: 3.938 kB / 492 MB, free: 7.934 MB / 362.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.09e-05/0.4126, allocations: 11.98 kB / 492 MB, free: 7.922 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.665e-06/0.4126, allocations: 4 kB / 492 MB, free: 7.918 MB / 362.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.114e-06/0.4126, allocations: 3.938 kB / 492 MB, free: 7.914 MB / 362.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002024/0.4129, allocations: 196.5 kB / 492.2 MB, free: 7.703 MB / 362.7 MB Notification: Performance of postOpt removeConstants (simulation): time 6.097e-05/0.4129, allocations: 100.9 kB / 492.3 MB, free: 7.586 MB / 362.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.024e-05/0.413, allocations: 15.92 kB / 492.3 MB, free: 7.57 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 7.241e-05/0.413, allocations: 4 kB / 492.3 MB, free: 7.566 MB / 362.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.063e-05/0.4131, allocations: 7.938 kB / 492.3 MB, free: 7.559 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.745e-06/0.4131, allocations: 4 kB / 492.3 MB, free: 7.555 MB / 362.7 MB Notification: Performance of sorting global known variables: time 6.921e-05/0.4132, allocations: 111.8 kB / 492.4 MB, free: 7.449 MB / 362.7 MB Notification: Performance of sort global known variables: time 1.21e-07/0.4132, allocations: 0 / 492.4 MB, free: 7.449 MB / 362.7 MB Notification: Performance of remove unused functions: time 0.0002255/0.4134, allocations: 16 kB / 492.4 MB, free: 7.434 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.0001031/0.4135, allocations: 106 kB / 492.5 MB, free: 7.324 MB / 362.7 MB Notification: Performance of simCode: created initialization part: time 0.0001829/0.4137, allocations: 67.91 kB / 492.6 MB, free: 7.258 MB / 362.7 MB Notification: Performance of simCode: created event and clocks part: time 1.583e-06/0.4137, allocations: 0 / 492.6 MB, free: 7.258 MB / 362.7 MB Notification: Performance of simCode: created simulation system equations: time 6.379e-05/0.4138, allocations: 23.94 kB / 492.6 MB, free: 7.234 MB / 362.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003164/0.4141, allocations: 32.02 kB / 492.6 MB, free: 7.203 MB / 362.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0003767/0.4145, allocations: 264.1 kB / 492.9 MB, free: 6.906 MB / 362.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002444/0.4147, allocations: 0.7043 MB / 493.6 MB, free: 6.176 MB / 362.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 2.944e-05/0.4148, allocations: 11.44 kB / 493.6 MB, free: 6.164 MB / 362.7 MB Notification: Performance of SimCode: time 2.4e-07/0.4148, allocations: 4 kB / 493.6 MB, free: 6.16 MB / 362.7 MB Notification: Performance of Templates: time 0.002228/0.417, allocations: 1.03 MB / 494.6 MB, free: 5.137 MB / 362.7 MB make -j1 -f Modelica_trunk_cpp_Modelica.Clocked.Examples.Elementary.RealSignals.AssignClockToTriggerHold.makefile (rm -f Modelica_trunk_cpp_Modelica.Clocked.Examples.Elementary.RealSignals.AssignClockToTriggerHold.pipe ; mkfifo Modelica_trunk_cpp_Modelica.Clocked.Examples.Elementary.RealSignals.AssignClockToTriggerHold.pipe ; head -c 1048576 < Modelica_trunk_cpp_Modelica.Clocked.Examples.Elementary.RealSignals.AssignClockToTriggerHold.pipe >> ../files/Modelica_trunk_cpp_Modelica.Clocked.Examples.Elementary.RealSignals.AssignClockToTriggerHold.sim & ./Modelica_trunk_cpp_Modelica.Clocked.Examples.Elementary.RealSignals.AssignClockToTriggerHold --alarm=480 -emit_protected > Modelica_trunk_cpp_Modelica.Clocked.Examples.Elementary.RealSignals.AssignClockToTriggerHold.pipe 2>&1) diffSimulationResults("Modelica_trunk_cpp_Modelica.Clocked.Examples.Elementary.RealSignals.AssignClockToTriggerHold_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Clocked/Examples/Elementary/RealSignals/AssignClockToTriggerHold/AssignClockToTriggerHold.csv","../files/Modelica_trunk_cpp_Modelica.Clocked.Examples.Elementary.RealSignals.AssignClockToTriggerHold.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches