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/ModelicaServices trunk/package.mo", uses=false) 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) 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) Using package ModelicaServices with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 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_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_Modelica.Clocked.Examples.Elementary.RealSignals.AssignClockToTriggerHold") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.000794/0.000794, allocations: 99.02 kB / 17 MB, free: 6.398 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.0008814/0.0008814, allocations: 192.7 kB / 17.91 MB, free: 5.926 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.473/1.473, allocations: 227.7 MB / 246.4 MB, free: 9.777 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0002244/0.0002244, allocations: 4 kB / 307.1 MB, free: 0.9336 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1166/0.1168, allocations: 51.53 MB / 358.6 MB, free: 13.42 MB / 302.1 MB Notification: Performance of NFInst.instantiate(Modelica.Clocked.Examples.Elementary.RealSignals.AssignClockToTriggerHold): time 0.001859/0.1187, allocations: 1.344 MB / 360 MB, free: 12.07 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.0008934/0.1196, allocations: 0.5536 MB / 360.5 MB, free: 11.51 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 6.975e-05/0.1197, allocations: 0 / 360.5 MB, free: 11.51 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 2.951e-05/0.1197, allocations: 3.938 kB / 360.5 MB, free: 11.5 MB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001222/0.1199, allocations: 11.92 kB / 360.6 MB, free: 11.49 MB / 302.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003024/0.1202, allocations: 47.89 kB / 360.6 MB, free: 11.45 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 0.0001109/0.1203, allocations: 63.77 kB / 360.7 MB, free: 11.38 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 9.642e-05/0.1204, allocations: 28.2 kB / 360.7 MB, free: 11.35 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001043/0.1205, allocations: 27.86 kB / 360.7 MB, free: 11.32 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 6.044e-05/0.1206, allocations: 27.84 kB / 360.7 MB, free: 11.3 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 1.455e-05/0.1206, allocations: 4 kB / 360.7 MB, free: 11.29 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 4.389e-05/0.1206, allocations: 8 kB / 360.8 MB, free: 11.29 MB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 3.469e-05/0.1207, allocations: 11.92 kB / 360.8 MB, free: 11.27 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 3.368e-05/0.1207, allocations: 41.64 kB / 360.8 MB, free: 11.23 MB / 302.1 MB Notification: Performance of NFConvertDAE.convert: time 0.000108/0.1208, allocations: 55.83 kB / 360.9 MB, free: 11.17 MB / 302.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.957e-06/0.1209, allocations: 0 / 360.9 MB, free: 11.17 MB / 302.1 MB Notification: Performance of FrontEnd: time 1.473e-06/0.1209, allocations: 0 / 360.9 MB, free: 11.17 MB / 302.1 MB Notification: Performance of Transformations before backend: time 3.316e-06/0.1209, allocations: 4 kB / 360.9 MB, free: 11.17 MB / 302.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.0004968/0.1214, allocations: 379.3 kB / 361.2 MB, free: 10.75 MB / 302.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.404e-05/0.1214, allocations: 12.03 kB / 361.2 MB, free: 10.74 MB / 302.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.00015/0.1216, allocations: 23.8 kB / 361.3 MB, free: 10.71 MB / 302.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002093/0.1218, allocations: 199.4 kB / 361.5 MB, free: 10.48 MB / 302.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.379e-05/0.1218, allocations: 4 kB / 361.5 MB, free: 10.48 MB / 302.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.399e-05/0.1218, allocations: 8 kB / 361.5 MB, free: 10.47 MB / 302.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002962/0.1221, allocations: 137 kB / 361.6 MB, free: 10.32 MB / 302.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 8.936e-06/0.1222, allocations: 0 / 361.6 MB, free: 10.32 MB / 302.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.399e-05/0.1222, allocations: 8 kB / 361.6 MB, free: 10.31 MB / 302.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.38e-06/0.1222, allocations: 0 / 361.6 MB, free: 10.31 MB / 302.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001088/0.1223, allocations: 39.91 kB / 361.7 MB, free: 10.27 MB / 302.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0004681/0.1228, allocations: 321.5 kB / 362 MB, free: 9.902 MB / 302.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002145/0.123, allocations: 158.2 kB / 362.1 MB, free: 9.711 MB / 302.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 7.742e-05/0.1231, allocations: 41.78 kB / 362.2 MB, free: 9.664 MB / 302.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.06e-05/0.1231, allocations: 0 / 362.2 MB, free: 9.664 MB / 302.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001501/0.1233, allocations: 71.39 kB / 362.2 MB, free: 9.582 MB / 302.1 MB Notification: Performance of pre-optimization done (n=9): time 1.393e-06/0.1233, allocations: 0 / 362.2 MB, free: 9.582 MB / 302.1 MB Notification: Performance of matching and sorting (n=9): time 0.000293/0.1236, allocations: 121.5 kB / 362.4 MB, free: 9.457 MB / 302.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.497e-05/0.1236, allocations: 81.11 kB / 362.4 MB, free: 9.359 MB / 302.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001213/0.1238, allocations: 146.3 kB / 362.6 MB, free: 9.207 MB / 302.1 MB Notification: Performance of collectPreVariables (initialization): time 1.9e-05/0.1238, allocations: 33.7 kB / 362.6 MB, free: 9.168 MB / 302.1 MB Notification: Performance of collectInitialEqns (initialization): time 5.627e-05/0.1239, allocations: 96.14 kB / 362.7 MB, free: 9.07 MB / 302.1 MB Notification: Performance of collectInitialBindings (initialization): time 2.163e-05/0.1239, allocations: 19.8 kB / 362.7 MB, free: 9.051 MB / 302.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 4.638e-06/0.1239, allocations: 0 / 362.7 MB, free: 9.051 MB / 302.1 MB Notification: Performance of setup shared object (initialization): time 9.853e-05/0.124, allocations: 322.8 kB / 363 MB, free: 8.727 MB / 302.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 6.479e-05/0.1241, allocations: 23.98 kB / 363.1 MB, free: 8.703 MB / 302.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 7.479e-05/0.1242, allocations: 69.02 kB / 363.1 MB, free: 8.617 MB / 302.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 7.452e-05/0.1242, allocations: 28 kB / 363.2 MB, free: 8.59 MB / 302.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.938e-06/0.1243, allocations: 3.953 kB / 363.2 MB, free: 8.586 MB / 302.1 MB Notification: Performance of matching and sorting (n=12) (initialization): time 0.0002032/0.1245, allocations: 117.4 kB / 363.3 MB, free: 8.465 MB / 302.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.439e-05/0.1245, allocations: 8 kB / 363.3 MB, free: 8.457 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.258e-06/0.1245, allocations: 0 / 363.3 MB, free: 8.457 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.262e-05/0.1245, allocations: 4 kB / 363.3 MB, free: 8.453 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 8.126e-05/0.1246, allocations: 19.92 kB / 363.3 MB, free: 8.434 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.695e-06/0.1246, allocations: 4 kB / 363.3 MB, free: 8.43 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 5.457e-05/0.1247, allocations: 8.156 kB / 363.3 MB, free: 8.422 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.004e-05/0.1247, allocations: 4 kB / 363.3 MB, free: 8.418 MB / 302.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 ($PRE.triggeredSampler.y,triggeredSampler.y,clockToTrigger.y2,$CLKPRE.clockToTrigger.y2,$whenCondition1,triggeredSampler.trigger,$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.933e-05/0.1248, allocations: 125.8 kB / 363.4 MB, free: 8.285 MB / 302.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 6.562e-05/0.1249, allocations: 61.41 kB / 363.5 MB, free: 8.219 MB / 302.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.861e-05/0.1249, allocations: 12.3 kB / 363.5 MB, free: 8.203 MB / 302.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.024e-06/0.1249, allocations: 4 kB / 363.5 MB, free: 8.199 MB / 302.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.098e-06/0.1249, allocations: 0 / 363.5 MB, free: 8.199 MB / 302.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.306e-06/0.1249, allocations: 0 / 363.5 MB, free: 8.199 MB / 302.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0003388/0.1253, allocations: 354.5 kB / 363.9 MB, free: 7.797 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.813e-06/0.1253, allocations: 384 / 363.9 MB, free: 7.797 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 5.698e-05/0.1254, allocations: 15.92 kB / 363.9 MB, free: 7.781 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.324e-06/0.1254, allocations: 0 / 363.9 MB, free: 7.781 MB / 302.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.191e-05/0.1254, allocations: 8 kB / 363.9 MB, free: 7.773 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.713e-06/0.1254, allocations: 0 / 363.9 MB, free: 7.773 MB / 302.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 9.42e-07/0.1254, allocations: 0 / 363.9 MB, free: 7.773 MB / 302.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002323/0.1256, allocations: 216.1 kB / 364.1 MB, free: 7.543 MB / 302.1 MB Notification: Performance of postOpt removeConstants (simulation): time 7.054e-05/0.1257, allocations: 100.9 kB / 364.2 MB, free: 7.426 MB / 302.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.907e-05/0.1257, allocations: 0 / 364.2 MB, free: 7.426 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 7.041e-05/0.1258, allocations: 4 kB / 364.2 MB, free: 7.422 MB / 302.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.094e-05/0.1259, allocations: 3.984 kB / 364.2 MB, free: 7.418 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.021e-06/0.1259, allocations: 8 kB / 364.2 MB, free: 7.41 MB / 302.1 MB Notification: Performance of sorting global known variables: time 6.998e-05/0.1259, allocations: 119.2 kB / 364.3 MB, free: 7.297 MB / 302.1 MB Notification: Performance of sort global known variables: time 1e-07/0.126, allocations: 0 / 364.3 MB, free: 7.297 MB / 302.1 MB Notification: Performance of remove unused functions: time 0.0002349/0.1262, allocations: 8 kB / 364.3 MB, free: 7.289 MB / 302.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 (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.0001106/0.1263, allocations: 107.5 kB / 364.4 MB, free: 7.176 MB / 302.1 MB Notification: Performance of simCode: created initialization part: time 0.0001799/0.1265, allocations: 68.09 kB / 364.5 MB, free: 7.109 MB / 302.1 MB Notification: Performance of simCode: created event and clocks part: time 1.964e-06/0.1265, allocations: 4.062 kB / 364.5 MB, free: 7.105 MB / 302.1 MB Notification: Performance of simCode: created simulation system equations: time 5.931e-05/0.1266, allocations: 23.98 kB / 364.5 MB, free: 7.082 MB / 302.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003263/0.1269, allocations: 31.97 kB / 364.6 MB, free: 7.051 MB / 302.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.000368/0.1273, allocations: 238.2 kB / 364.8 MB, free: 6.781 MB / 302.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002287/0.1275, allocations: 0.7043 MB / 365.5 MB, free: 6.051 MB / 302.1 MB Notification: Performance of simCode: alias equations: time 3.711e-05/0.1276, allocations: 4.438 kB / 365.5 MB, free: 6.043 MB / 302.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 2.933e-05/0.1276, allocations: 15.42 kB / 365.5 MB, free: 6.031 MB / 302.1 MB Notification: Performance of SimCode: time 3.6e-07/0.1276, allocations: 0 / 365.5 MB, free: 6.031 MB / 302.1 MB Notification: Performance of Templates: time 0.0029/0.1305, allocations: 0.6889 MB / 366.2 MB, free: 5.355 MB / 302.1 MB make -j1 -f Modelica_trunk_Modelica.Clocked.Examples.Elementary.RealSignals.AssignClockToTriggerHold.makefile (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 & ./Modelica_trunk_Modelica.Clocked.Examples.Elementary.RealSignals.AssignClockToTriggerHold -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Modelica_trunk_Modelica.Clocked.Examples.Elementary.RealSignals.AssignClockToTriggerHold.pipe 2>&1) diffSimulationResults("Modelica_trunk_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_trunk_Modelica.Clocked.Examples.Elementary.RealSignals.AssignClockToTriggerHold.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches