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/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) 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) 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) Using package ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/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_4.0.0_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_4.0.0_Modelica.Clocked.Examples.Elementary.RealSignals.AssignClockToTriggerHold") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001316/0.001316, allocations: 114.9 kB / 17.06 MB, free: 6 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001296/0.001296, allocations: 196 kB / 18 MB, free: 5.078 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.494/1.494, allocations: 222.9 MB / 241.7 MB, free: 15.07 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001206/0.001206, allocations: 51.92 kB / 351.3 MB, free: 3.203 MB / 286.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.4014/0.4026, allocations: 49.42 MB / 400.7 MB, free: 8.734 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.Clocked.Examples.Elementary.RealSignals.AssignClockToTriggerHold): time 0.004077/0.4067, allocations: 1.64 MB / 402.4 MB, free: 7.203 MB / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.001152/0.4079, allocations: 0.4947 MB / 402.9 MB, free: 6.703 MB / 318.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001402/0.4081, allocations: 7.938 kB / 402.9 MB, free: 6.695 MB / 318.1 MB Notification: Performance of NFTyping.typeComponents: time 6.144e-05/0.4082, allocations: 3.938 kB / 402.9 MB, free: 6.691 MB / 318.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0002014/0.4084, allocations: 15.86 kB / 402.9 MB, free: 6.676 MB / 318.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0004531/0.4089, allocations: 63.81 kB / 403 MB, free: 6.613 MB / 318.1 MB Notification: Performance of NFFlatten.flatten: time 0.000146/0.409, allocations: 63.77 kB / 403 MB, free: 6.551 MB / 318.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001606/0.4092, allocations: 20.23 kB / 403 MB, free: 6.527 MB / 318.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.000114/0.4093, allocations: 35.84 kB / 403.1 MB, free: 6.492 MB / 318.1 MB Notification: Performance of NFSimplifyModel.simplify: time 8.847e-05/0.4094, allocations: 27.84 kB / 403.1 MB, free: 6.465 MB / 318.1 MB Notification: Performance of NFPackage.collectConstants: time 3.136e-05/0.4094, allocations: 8 kB / 403.1 MB, free: 6.457 MB / 318.1 MB Notification: Performance of NFFlatten.collectFunctions: time 1.749e-05/0.4095, allocations: 4 kB / 403.1 MB, free: 6.453 MB / 318.1 MB Notification: Performance of NFScalarize.scalarize: time 8.484e-05/0.4096, allocations: 23.92 kB / 403.1 MB, free: 6.43 MB / 318.1 MB Notification: Performance of NFVerifyModel.verify: time 6.896e-05/0.4096, allocations: 43.67 kB / 403.2 MB, free: 6.387 MB / 318.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0001954/0.4098, allocations: 71.72 kB / 403.2 MB, free: 6.316 MB / 318.1 MB Notification: Performance of FrontEnd - DAE generated: time 6.252e-06/0.4099, allocations: 0 / 403.2 MB, free: 6.316 MB / 318.1 MB Notification: Performance of FrontEnd: time 2.204e-06/0.4099, allocations: 0 / 403.2 MB, free: 6.316 MB / 318.1 MB Notification: Performance of Transformations before backend: time 9.067e-06/0.4099, allocations: 0 / 403.2 MB, free: 6.316 MB / 318.1 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.0007774/0.4107, allocations: 396.2 kB / 403.6 MB, free: 5.887 MB / 318.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.055e-05/0.4107, allocations: 8.031 kB / 403.6 MB, free: 5.879 MB / 318.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 5.87e-05/0.4108, allocations: 16.78 kB / 403.7 MB, free: 5.863 MB / 318.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003642/0.4112, allocations: 215.1 kB / 403.9 MB, free: 5.617 MB / 318.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.56e-05/0.4112, allocations: 4.375 kB / 403.9 MB, free: 5.613 MB / 318.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.839e-05/0.4112, allocations: 12.36 kB / 403.9 MB, free: 5.602 MB / 318.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003704/0.4116, allocations: 137.3 kB / 404 MB, free: 5.449 MB / 318.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.139e-05/0.4116, allocations: 4 kB / 404 MB, free: 5.445 MB / 318.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.704e-05/0.4116, allocations: 0 / 404 MB, free: 5.445 MB / 318.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.013e-06/0.4116, allocations: 0 / 404 MB, free: 5.445 MB / 318.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001356/0.4118, allocations: 35.97 kB / 404.1 MB, free: 5.41 MB / 318.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0006373/0.4124, allocations: 305.6 kB / 404.4 MB, free: 5.059 MB / 318.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002909/0.4127, allocations: 158.2 kB / 404.5 MB, free: 4.867 MB / 318.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 8.569e-05/0.4128, allocations: 41.78 kB / 404.6 MB, free: 4.82 MB / 318.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.673e-05/0.4129, allocations: 0 / 404.6 MB, free: 4.82 MB / 318.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001447/0.413, allocations: 63.41 kB / 404.6 MB, free: 4.746 MB / 318.1 MB Notification: Performance of pre-optimization done (n=9): time 1.423e-06/0.413, allocations: 0 / 404.6 MB, free: 4.746 MB / 318.1 MB Notification: Performance of matching and sorting (n=9): time 0.0003827/0.4134, allocations: 125.4 kB / 404.7 MB, free: 4.617 MB / 318.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.058e-05/0.4135, allocations: 81.11 kB / 404.8 MB, free: 4.52 MB / 318.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001377/0.4136, allocations: 141.8 kB / 405 MB, free: 4.371 MB / 318.1 MB Notification: Performance of collectPreVariables (initialization): time 2.074e-05/0.4137, allocations: 29.69 kB / 405 MB, free: 4.336 MB / 318.1 MB Notification: Performance of collectInitialEqns (initialization): time 6.745e-05/0.4137, allocations: 88.14 kB / 405.1 MB, free: 4.246 MB / 318.1 MB Notification: Performance of collectInitialBindings (initialization): time 3.603e-05/0.4138, allocations: 19.75 kB / 405.1 MB, free: 4.227 MB / 318.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 6.73e-05/0.4139, allocations: 33.7 kB / 405.1 MB, free: 4.188 MB / 318.1 MB Notification: Performance of setup shared object (initialization): time 0.0001425/0.414, allocations: 330.7 kB / 405.4 MB, free: 3.855 MB / 318.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 6.797e-05/0.4141, allocations: 19.98 kB / 405.5 MB, free: 3.836 MB / 318.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 8.828e-05/0.4142, allocations: 57.14 kB / 405.5 MB, free: 3.762 MB / 318.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001625/0.4144, allocations: 81.08 kB / 405.6 MB, free: 3.664 MB / 318.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.92e-06/0.4144, allocations: 4 kB / 405.6 MB, free: 3.66 MB / 318.1 MB Notification: Performance of matching and sorting (n=12) (initialization): time 0.0002132/0.4146, allocations: 121.7 kB / 405.7 MB, free: 3.535 MB / 318.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.272e-05/0.4146, allocations: 8 kB / 405.7 MB, free: 3.527 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.544e-06/0.4146, allocations: 0 / 405.7 MB, free: 3.527 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.359e-05/0.4147, allocations: 4 kB / 405.7 MB, free: 3.523 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 9.195e-05/0.4148, allocations: 15.94 kB / 405.7 MB, free: 3.508 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 9.398e-06/0.4148, allocations: 7.984 kB / 405.8 MB, free: 3.5 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 6.027e-05/0.4148, allocations: 4 kB / 405.8 MB, free: 3.496 MB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.591e-05/0.4149, allocations: 4 kB / 405.8 MB, free: 3.492 MB / 318.1 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 (triggeredSampler.y,$PRE.triggeredSampler.y,clockToTrigger.y3,$PRE.clockToTrigger.y3,triggeredSampler.trigger,$whenCondition1,$CLKPRE.clockToTrigger.y2,clockToTrigger.y2) * 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 (not torn): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.0001078/0.415, allocations: 134 kB / 405.9 MB, free: 3.352 MB / 318.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 7.257e-05/0.4151, allocations: 61.42 kB / 406 MB, free: 3.285 MB / 318.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 4.484e-05/0.4151, allocations: 20.3 kB / 406 MB, free: 3.262 MB / 318.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.167e-06/0.4151, allocations: 4 kB / 406 MB, free: 3.258 MB / 318.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.001e-06/0.4151, allocations: 0 / 406 MB, free: 3.258 MB / 318.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.2e-06/0.4151, allocations: 0 / 406 MB, free: 3.258 MB / 318.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0003908/0.4155, allocations: 334.5 kB / 406.3 MB, free: 2.875 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.236e-06/0.4156, allocations: 11.88 kB / 406.3 MB, free: 2.863 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 5.779e-05/0.4156, allocations: 8 kB / 406.3 MB, free: 2.855 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 4.669e-06/0.4156, allocations: 7.984 kB / 406.3 MB, free: 2.848 MB / 318.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.068e-05/0.4156, allocations: 0 / 406.3 MB, free: 2.848 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.044e-06/0.4157, allocations: 0 / 406.3 MB, free: 2.848 MB / 318.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.605e-06/0.4157, allocations: 7.938 kB / 406.3 MB, free: 2.84 MB / 318.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002413/0.4159, allocations: 196.3 kB / 406.5 MB, free: 2.629 MB / 318.1 MB Notification: Performance of postOpt removeConstants (simulation): time 7.81e-05/0.416, allocations: 100.9 kB / 406.6 MB, free: 2.512 MB / 318.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.23e-05/0.416, allocations: 8 kB / 406.6 MB, free: 2.504 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 6.723e-05/0.4161, allocations: 0 / 406.6 MB, free: 2.504 MB / 318.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.285e-05/0.4162, allocations: 11.94 kB / 406.6 MB, free: 2.492 MB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 9.267e-06/0.4162, allocations: 3.984 kB / 406.7 MB, free: 2.488 MB / 318.1 MB Notification: Performance of sorting global known variables: time 8.149e-05/0.4163, allocations: 109.8 kB / 406.8 MB, free: 2.383 MB / 318.1 MB Notification: Performance of sort global known variables: time 1e-07/0.4163, allocations: 0 / 406.8 MB, free: 2.383 MB / 318.1 MB Notification: Performance of remove unused functions: time 0.0002542/0.4165, allocations: 16 kB / 406.8 MB, free: 2.367 MB / 318.1 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,triggeredSampler.trigger,$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 (not torn): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.0001615/0.4167, allocations: 106.3 kB / 406.9 MB, free: 2.258 MB / 318.1 MB Notification: Performance of simCode: created initialization part: time 0.0002142/0.4169, allocations: 67.84 kB / 406.9 MB, free: 2.191 MB / 318.1 MB Notification: Performance of simCode: created event and clocks part: time 2.154e-06/0.4169, allocations: 0 / 406.9 MB, free: 2.191 MB / 318.1 MB Notification: Performance of simCode: created simulation system equations: time 5.92e-05/0.417, allocations: 23.97 kB / 407 MB, free: 2.168 MB / 318.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003625/0.4174, allocations: 37.41 kB / 407 MB, free: 2.133 MB / 318.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0004513/0.4178, allocations: 208.2 kB / 407.2 MB, free: 1.902 MB / 318.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003121/0.4182, allocations: 0.7087 MB / 407.9 MB, free: 1.168 MB / 318.1 MB Notification: Performance of simCode: alias equations: time 4.644e-05/0.4182, allocations: 8.656 kB / 407.9 MB, free: 1.16 MB / 318.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.03e-05/0.4183, allocations: 11.44 kB / 407.9 MB, free: 1.148 MB / 318.1 MB Notification: Performance of SimCode: time 1.9e-07/0.4183, allocations: 0 / 407.9 MB, free: 1.148 MB / 318.1 MB Notification: Performance of Templates: time 0.003775/0.422, allocations: 0.8016 MB / 408.7 MB, free: 368 kB / 318.1 MB make -j1 -f Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.RealSignals.AssignClockToTriggerHold.makefile (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 & ./Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.RealSignals.AssignClockToTriggerHold -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.RealSignals.AssignClockToTriggerHold.pipe 2>&1) diffSimulationResults("Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.RealSignals.AssignClockToTriggerHold_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Clocked/Examples/Elementary/RealSignals/AssignClockToTriggerHold/AssignClockToTriggerHold.csv","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.RealSignals.AssignClockToTriggerHold.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches