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.001961/0.001961, allocations: 114.8 kB / 17.75 MB, free: 5.355 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.001935/0.001935, allocations: 184.5 kB / 18.67 MB, free: 4.441 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.477/1.477, allocations: 222.9 MB / 242.4 MB, free: 15.17 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001198/0.001198, allocations: 51.92 kB / 352 MB, free: 3.242 MB / 286.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2964/0.2976, allocations: 49.43 MB / 401.4 MB, free: 8.746 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.Clocked.Examples.Elementary.RealSignals.AssignClockToTriggerHold): time 0.00288/0.3005, allocations: 1.64 MB / 403 MB, free: 7.227 MB / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.0008879/0.3014, allocations: 0.4947 MB / 403.5 MB, free: 6.727 MB / 318.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 8.323e-05/0.3015, allocations: 7.938 kB / 403.5 MB, free: 6.719 MB / 318.1 MB Notification: Performance of NFTyping.typeComponents: time 4.801e-05/0.3016, allocations: 3.938 kB / 403.6 MB, free: 6.715 MB / 318.1 MB Notification: Performance of NFTyping.typeBindings: time 0.00013/0.3017, allocations: 19.86 kB / 403.6 MB, free: 6.695 MB / 318.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002979/0.302, allocations: 59.75 kB / 403.6 MB, free: 6.637 MB / 318.1 MB Notification: Performance of NFFlatten.flatten: time 0.0001213/0.3021, allocations: 63.78 kB / 403.7 MB, free: 6.574 MB / 318.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001173/0.3023, allocations: 24.2 kB / 403.7 MB, free: 6.547 MB / 318.1 MB Notification: Performance of NFEvalConstants.evaluate: time 7.751e-05/0.3024, allocations: 35.84 kB / 403.8 MB, free: 6.512 MB / 318.1 MB Notification: Performance of NFSimplifyModel.simplify: time 7.496e-05/0.3024, allocations: 35.78 kB / 403.8 MB, free: 6.477 MB / 318.1 MB Notification: Performance of NFPackage.collectConstants: time 1.993e-05/0.3025, allocations: 4 kB / 403.8 MB, free: 6.473 MB / 318.1 MB Notification: Performance of NFFlatten.collectFunctions: time 1.589e-05/0.3025, allocations: 12 kB / 403.8 MB, free: 6.461 MB / 318.1 MB Notification: Performance of NFScalarize.scalarize: time 6.155e-05/0.3026, allocations: 19.92 kB / 403.8 MB, free: 6.441 MB / 318.1 MB Notification: Performance of NFVerifyModel.verify: time 4.782e-05/0.3026, allocations: 31.75 kB / 403.9 MB, free: 6.41 MB / 318.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0001295/0.3027, allocations: 79.64 kB / 403.9 MB, free: 6.332 MB / 318.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.631e-06/0.3028, allocations: 4 kB / 403.9 MB, free: 6.328 MB / 318.1 MB Notification: Performance of FrontEnd: time 1.933e-06/0.3028, allocations: 0 / 403.9 MB, free: 6.328 MB / 318.1 MB Notification: Performance of Transformations before backend: time 5.36e-06/0.3028, allocations: 0 / 403.9 MB, free: 6.328 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.0005245/0.3033, allocations: 392.2 kB / 404.3 MB, free: 5.902 MB / 318.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.526e-05/0.3033, allocations: 8.031 kB / 404.3 MB, free: 5.895 MB / 318.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.406e-05/0.3034, allocations: 12.84 kB / 404.3 MB, free: 5.883 MB / 318.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002292/0.3036, allocations: 208 kB / 404.5 MB, free: 5.641 MB / 318.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.205e-05/0.3036, allocations: 4.375 kB / 404.5 MB, free: 5.637 MB / 318.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.675e-05/0.3037, allocations: 8.375 kB / 404.6 MB, free: 5.629 MB / 318.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.000316/0.304, allocations: 141.3 kB / 404.7 MB, free: 5.473 MB / 318.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 8.105e-06/0.304, allocations: 0 / 404.7 MB, free: 5.473 MB / 318.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.457e-05/0.304, allocations: 8 kB / 404.7 MB, free: 5.465 MB / 318.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.539e-06/0.304, allocations: 0 / 404.7 MB, free: 5.465 MB / 318.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001124/0.3042, allocations: 31.92 kB / 404.7 MB, free: 5.434 MB / 318.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0004851/0.3046, allocations: 305.7 kB / 405 MB, free: 5.082 MB / 318.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002378/0.3049, allocations: 162.2 kB / 405.2 MB, free: 4.887 MB / 318.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 7.999e-05/0.305, allocations: 33.8 kB / 405.2 MB, free: 4.848 MB / 318.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.967e-05/0.305, allocations: 0 / 405.2 MB, free: 4.848 MB / 318.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001176/0.3051, allocations: 67.39 kB / 405.3 MB, free: 4.77 MB / 318.1 MB Notification: Performance of pre-optimization done (n=9): time 1.372e-06/0.3051, allocations: 0 / 405.3 MB, free: 4.77 MB / 318.1 MB Notification: Performance of matching and sorting (n=9): time 0.0002878/0.3054, allocations: 121.4 kB / 405.4 MB, free: 4.645 MB / 318.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.367e-05/0.3055, allocations: 85.09 kB / 405.5 MB, free: 4.543 MB / 318.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.000109/0.3056, allocations: 145.7 kB / 405.6 MB, free: 4.391 MB / 318.1 MB Notification: Performance of collectPreVariables (initialization): time 1.772e-05/0.3057, allocations: 25.7 kB / 405.7 MB, free: 4.359 MB / 318.1 MB Notification: Performance of collectInitialEqns (initialization): time 6.227e-05/0.3057, allocations: 96.12 kB / 405.7 MB, free: 4.262 MB / 318.1 MB Notification: Performance of collectInitialBindings (initialization): time 2.43e-05/0.3058, allocations: 23.75 kB / 405.8 MB, free: 4.238 MB / 318.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 4.451e-05/0.3058, allocations: 29.7 kB / 405.8 MB, free: 4.203 MB / 318.1 MB Notification: Performance of setup shared object (initialization): time 0.0001195/0.3059, allocations: 314.8 kB / 406.1 MB, free: 3.887 MB / 318.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 7.282e-05/0.306, allocations: 23.98 kB / 406.1 MB, free: 3.863 MB / 318.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 7.732e-05/0.3061, allocations: 61.12 kB / 406.2 MB, free: 3.785 MB / 318.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001347/0.3062, allocations: 89.33 kB / 406.3 MB, free: 3.68 MB / 318.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.254e-06/0.3063, allocations: 0 / 406.3 MB, free: 3.68 MB / 318.1 MB Notification: Performance of matching and sorting (n=12) (initialization): time 0.0002047/0.3065, allocations: 113.5 kB / 406.4 MB, free: 3.562 MB / 318.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.47e-05/0.3065, allocations: 4 kB / 406.4 MB, free: 3.559 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.152e-06/0.3065, allocations: 4 kB / 406.4 MB, free: 3.555 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.265e-05/0.3065, allocations: 3.938 kB / 406.4 MB, free: 3.551 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 8.366e-05/0.3066, allocations: 19.92 kB / 406.4 MB, free: 3.531 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.122e-06/0.3066, allocations: 0 / 406.4 MB, free: 3.531 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 5.624e-05/0.3067, allocations: 8 kB / 406.4 MB, free: 3.523 MB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.083e-05/0.3067, allocations: 7.984 kB / 406.4 MB, free: 3.516 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.0001068/0.3068, allocations: 143.7 kB / 406.6 MB, free: 3.367 MB / 318.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 6.729e-05/0.3069, allocations: 61.44 kB / 406.6 MB, free: 3.301 MB / 318.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.239e-05/0.3069, allocations: 12.31 kB / 406.6 MB, free: 3.285 MB / 318.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.813e-06/0.3069, allocations: 0 / 406.6 MB, free: 3.285 MB / 318.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.208e-06/0.3069, allocations: 0 / 406.6 MB, free: 3.285 MB / 318.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.03e-06/0.307, allocations: 4 kB / 406.7 MB, free: 3.281 MB / 318.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0003488/0.3073, allocations: 346.4 kB / 407 MB, free: 2.887 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.623e-06/0.3073, allocations: 0 / 407 MB, free: 2.887 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 5.658e-05/0.3074, allocations: 12 kB / 407 MB, free: 2.875 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 3.606e-06/0.3074, allocations: 4 kB / 407 MB, free: 2.871 MB / 318.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.717e-06/0.3074, allocations: 0 / 407 MB, free: 2.871 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.603e-06/0.3074, allocations: 0 / 407 MB, free: 2.871 MB / 318.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.859e-06/0.3074, allocations: 7.922 kB / 407 MB, free: 2.863 MB / 318.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002156/0.3076, allocations: 196.2 kB / 407.2 MB, free: 2.652 MB / 318.1 MB Notification: Performance of postOpt removeConstants (simulation): time 6.322e-05/0.3077, allocations: 100.9 kB / 407.3 MB, free: 2.535 MB / 318.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.064e-05/0.3077, allocations: 4.125 kB / 407.3 MB, free: 2.531 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 7.654e-05/0.3078, allocations: 11.98 kB / 407.3 MB, free: 2.52 MB / 318.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.782e-05/0.3079, allocations: 7.938 kB / 407.3 MB, free: 2.512 MB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.462e-06/0.3079, allocations: 0 / 407.3 MB, free: 2.512 MB / 318.1 MB Notification: Performance of sorting global known variables: time 7.879e-05/0.308, allocations: 113.8 kB / 407.4 MB, free: 2.402 MB / 318.1 MB Notification: Performance of sort global known variables: time 1.2e-07/0.308, allocations: 0 / 407.4 MB, free: 2.402 MB / 318.1 MB Notification: Performance of remove unused functions: time 0.0002468/0.3082, allocations: 16 kB / 407.5 MB, free: 2.387 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.0001022/0.3083, allocations: 101.4 kB / 407.6 MB, free: 2.281 MB / 318.1 MB Notification: Performance of simCode: created initialization part: time 0.0002144/0.3086, allocations: 71.91 kB / 407.6 MB, free: 2.211 MB / 318.1 MB Notification: Performance of simCode: created event and clocks part: time 1.904e-06/0.3086, allocations: 0 / 407.6 MB, free: 2.211 MB / 318.1 MB Notification: Performance of simCode: created simulation system equations: time 6.054e-05/0.3086, allocations: 19.98 kB / 407.6 MB, free: 2.191 MB / 318.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003319/0.309, allocations: 35.95 kB / 407.7 MB, free: 2.156 MB / 318.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0003975/0.3094, allocations: 230 kB / 407.9 MB, free: 1.898 MB / 318.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002763/0.3097, allocations: 0.7085 MB / 408.6 MB, free: 1.164 MB / 318.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.423e-05/0.3097, allocations: 11.44 kB / 408.6 MB, free: 1.152 MB / 318.1 MB Notification: Performance of SimCode: time 1.873e-06/0.3097, allocations: 96 / 408.6 MB, free: 1.152 MB / 318.1 MB Notification: Performance of Templates: time 0.002488/0.3122, allocations: 1.052 MB / 409.7 MB, free: 108 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/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Clocked/Examples/Elementary/RealSignals/AssignClockToTriggerHold/AssignClockToTriggerHold.csv","/var/lib/jenkins1/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