Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.1.0_Modelica.Clocked.Examples.Elementary.RealSignals.AssignClockToSquareWaveHold.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo): time 0.001401/0.001401, allocations: 107.2 kB / 20.44 MB, free: 1.207 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo): time 0.001727/0.001727, allocations: 209.6 kB / 23.73 MB, free: 4.41 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo): time 1.482/1.482, allocations: 230.6 MB / 257.5 MB, free: 7.82 MB / 206.1 MB " [Timeout remaining time 178] Using package Modelica with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo) Using package Complex with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo) Using package ModelicaServices with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo) Running command: translateModel(Modelica.Clocked.Examples.Elementary.RealSignals.AssignClockToSquareWaveHold,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5010,variableFilter="time|sample1.y|clockToSquareWave.y",fileNamePrefix="Modelica_4.1.0_Modelica.Clocked.Examples.Elementary.RealSignals.AssignClockToSquareWaveHold") translateModel(Modelica.Clocked.Examples.Elementary.RealSignals.AssignClockToSquareWaveHold,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5010,variableFilter="time|sample1.y|clockToSquareWave.y",fileNamePrefix="Modelica_4.1.0_Modelica.Clocked.Examples.Elementary.RealSignals.AssignClockToSquareWaveHold") [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 0.001854/0.001854, allocations: 43.94 kB / 378.2 MB, free: 2.484 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2998/0.3017, allocations: 53.36 MB / 431.6 MB, free: 6.762 MB / 334.1 MB Notification: Performance of NFInst.instantiate(Modelica.Clocked.Examples.Elementary.RealSignals.AssignClockToSquareWaveHold): time 0.003407/0.3051, allocations: 1.612 MB / 433.2 MB, free: 5.148 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.001277/0.3064, allocations: 0.5298 MB / 433.7 MB, free: 4.613 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 9.965e-05/0.3065, allocations: 0 / 433.7 MB, free: 4.613 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 5.915e-05/0.3065, allocations: 7.875 kB / 433.7 MB, free: 4.605 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001657/0.3067, allocations: 15.92 kB / 433.7 MB, free: 4.59 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0004016/0.3071, allocations: 63.75 kB / 433.8 MB, free: 4.527 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.0001286/0.3072, allocations: 43.86 kB / 433.8 MB, free: 4.484 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001187/0.3073, allocations: 15.97 kB / 433.9 MB, free: 4.469 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001392/0.3075, allocations: 31.86 kB / 433.9 MB, free: 4.438 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 8.046e-05/0.3076, allocations: 23.86 kB / 433.9 MB, free: 4.414 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 2.193e-05/0.3076, allocations: 7.984 kB / 433.9 MB, free: 4.406 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 4.981e-05/0.3076, allocations: 4 kB / 433.9 MB, free: 4.402 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 6.642e-05/0.3077, allocations: 19.92 kB / 433.9 MB, free: 4.383 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 4.949e-05/0.3078, allocations: 19.88 kB / 434 MB, free: 4.363 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0001906/0.3079, allocations: 69.91 kB / 434 MB, free: 4.301 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 6.472e-06/0.3079, allocations: 4 kB / 434 MB, free: 4.297 MB / 334.1 MB Notification: Performance of FrontEnd: time 1.913e-06/0.308, allocations: 0 / 434 MB, free: 4.297 MB / 334.1 MB Notification: Performance of Transformations before backend: time 6.672e-06/0.308, allocations: 0 / 434 MB, free: 4.297 MB / 334.1 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 11 * Number of variables: 11 Notification: Performance of Generate backend data structure: time 0.0006145/0.3086, allocations: 317.8 kB / 434.4 MB, free: 3.957 MB / 334.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.669e-05/0.3086, allocations: 8.031 kB / 434.4 MB, free: 3.949 MB / 334.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001563/0.3088, allocations: 16.89 kB / 434.4 MB, free: 3.934 MB / 334.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002507/0.309, allocations: 145.1 kB / 434.5 MB, free: 3.77 MB / 334.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.44e-05/0.309, allocations: 8.375 kB / 434.5 MB, free: 3.762 MB / 334.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.26e-05/0.309, allocations: 4.375 kB / 434.5 MB, free: 3.758 MB / 334.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003171/0.3094, allocations: 142.1 kB / 434.7 MB, free: 3.598 MB / 334.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.07e-05/0.3094, allocations: 0 / 434.7 MB, free: 3.598 MB / 334.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 9.188e-06/0.3094, allocations: 0 / 434.7 MB, free: 3.598 MB / 334.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.679e-06/0.3094, allocations: 3.938 kB / 434.7 MB, free: 3.594 MB / 334.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 8.986e-05/0.3095, allocations: 23.98 kB / 434.7 MB, free: 3.57 MB / 334.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0003324/0.3098, allocations: 226.2 kB / 434.9 MB, free: 3.312 MB / 334.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.000207/0.31, allocations: 79.66 kB / 435 MB, free: 3.207 MB / 334.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 8.333e-05/0.3101, allocations: 42.69 kB / 435 MB, free: 3.156 MB / 334.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.602e-05/0.3101, allocations: 4 kB / 435 MB, free: 3.152 MB / 334.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.663e-05/0.3101, allocations: 30.56 kB / 435.1 MB, free: 3.113 MB / 334.1 MB Notification: Performance of pre-optimization done (n=6): time 1.152e-06/0.3102, allocations: 0 / 435.1 MB, free: 3.113 MB / 334.1 MB Notification: Performance of matching and sorting (n=6): time 0.0002978/0.3104, allocations: 101.7 kB / 435.2 MB, free: 3.008 MB / 334.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.765e-05/0.3105, allocations: 106.8 kB / 435.3 MB, free: 2.879 MB / 334.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001419/0.3107, allocations: 145.8 kB / 435.4 MB, free: 2.727 MB / 334.1 MB Notification: Performance of collectPreVariables (initialization): time 1.606e-05/0.3107, allocations: 25.7 kB / 435.4 MB, free: 2.695 MB / 334.1 MB Notification: Performance of collectInitialEqns (initialization): time 5.58e-05/0.3107, allocations: 92.33 kB / 435.5 MB, free: 2.602 MB / 334.1 MB Notification: Performance of collectInitialBindings (initialization): time 2.025e-05/0.3108, allocations: 15.89 kB / 435.5 MB, free: 2.586 MB / 334.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 5.152e-05/0.3108, allocations: 29.66 kB / 435.6 MB, free: 2.551 MB / 334.1 MB Notification: Performance of setup shared object (initialization): time 0.0001542/0.311, allocations: 314.8 kB / 435.9 MB, free: 2.234 MB / 334.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 5.435e-05/0.311, allocations: 11.98 kB / 435.9 MB, free: 2.223 MB / 334.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 6.933e-05/0.3111, allocations: 44.28 kB / 435.9 MB, free: 2.164 MB / 334.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001224/0.3112, allocations: 64.22 kB / 436 MB, free: 2.086 MB / 334.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.677e-06/0.3112, allocations: 7.938 kB / 436 MB, free: 2.078 MB / 334.1 MB Notification: Performance of matching and sorting (n=7) (initialization): time 0.0001721/0.3114, allocations: 81.55 kB / 436.1 MB, free: 1.992 MB / 334.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.581e-05/0.3114, allocations: 8 kB / 436.1 MB, free: 1.984 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.009e-06/0.3114, allocations: 0 / 436.1 MB, free: 1.984 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.83e-05/0.3114, allocations: 4 kB / 436.1 MB, free: 1.98 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 7.629e-05/0.3115, allocations: 11.98 kB / 436.1 MB, free: 1.969 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 9.548e-06/0.3115, allocations: 4.094 kB / 436.1 MB, free: 1.965 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 5.89e-05/0.3116, allocations: 20.02 kB / 436.1 MB, free: 1.945 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.266e-05/0.3116, allocations: 11.98 kB / 436.1 MB, free: 1.934 MB / 334.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 5 * Number of states: 0 () * Number of discrete variables: 3 (clockToSquareWave.y,$CLKPRE.clockToSquareWave.y2,clockToSquareWave.y2) * Number of discrete states: 0 () * Number of clocked states: 1 (clockToSquareWave.y2) * Top-level inputs: 0 Notification: Strong component statistics for initialization (7): * Single equations (assignments): 7 * 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.0001152/0.3117, allocations: 121.8 kB / 436.3 MB, free: 1.805 MB / 334.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 8.731e-05/0.3118, allocations: 53.64 kB / 436.3 MB, free: 1.746 MB / 334.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 4.455e-05/0.3118, allocations: 12.34 kB / 436.3 MB, free: 1.727 MB / 334.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.074e-06/0.3118, allocations: 0 / 436.3 MB, free: 1.727 MB / 334.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.248e-06/0.3118, allocations: 0 / 436.3 MB, free: 1.727 MB / 334.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.981e-06/0.3118, allocations: 4 kB / 436.3 MB, free: 1.723 MB / 334.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001981/0.312, allocations: 125.2 kB / 436.5 MB, free: 1.57 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.272e-06/0.312, allocations: 4 kB / 436.5 MB, free: 1.566 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 6.132e-05/0.3121, allocations: 15.92 kB / 436.5 MB, free: 1.551 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.375e-06/0.3121, allocations: 4 kB / 436.5 MB, free: 1.547 MB / 334.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.696e-06/0.3121, allocations: 0 / 436.5 MB, free: 1.547 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.597e-06/0.3121, allocations: 4 kB / 436.5 MB, free: 1.543 MB / 334.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.292e-06/0.3121, allocations: 0 / 436.5 MB, free: 1.543 MB / 334.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002308/0.3124, allocations: 189.1 kB / 436.7 MB, free: 1.336 MB / 334.1 MB Notification: Performance of postOpt removeConstants (simulation): time 4.473e-05/0.3124, allocations: 15.94 kB / 436.7 MB, free: 1.32 MB / 334.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.068e-05/0.3124, allocations: 4 kB / 436.7 MB, free: 1.316 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 7.178e-05/0.3125, allocations: 0 / 436.7 MB, free: 1.316 MB / 334.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.244e-05/0.3125, allocations: 7.938 kB / 436.7 MB, free: 1.309 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.813e-06/0.3125, allocations: 3.984 kB / 436.7 MB, free: 1.305 MB / 334.1 MB Notification: Performance of sorting global known variables: time 9.115e-05/0.3126, allocations: 118 kB / 436.8 MB, free: 1.191 MB / 334.1 MB Notification: Performance of sort global known variables: time 5e-08/0.3126, allocations: 0 / 436.8 MB, free: 1.191 MB / 334.1 MB Notification: Performance of remove unused functions: time 0.0002463/0.3129, allocations: 11.94 kB / 436.8 MB, free: 1.18 MB / 334.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 3 * Number of states: 0 () * Number of discrete variables: 2 (clockToSquareWave.y,clockToSquareWave.y2) * Number of discrete states: 0 () * Number of clocked states: 1 (clockToSquareWave.y2) * Top-level inputs: 0 Notification: Strong component statistics for simulation (6): * Single equations (assignments): 6 * 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 Backend phase and start with SimCode phase: time 0.0001088/0.313, allocations: 103.2 kB / 436.9 MB, free: 1.07 MB / 334.1 MB Notification: Performance of simCode: created initialization part: time 0.0001663/0.3131, allocations: 40.02 kB / 437 MB, free: 1.031 MB / 334.1 MB Notification: Performance of simCode: created event and clocks part: time 1.803e-06/0.3131, allocations: 0 / 437 MB, free: 1.031 MB / 334.1 MB Notification: Performance of simCode: created simulation system equations: time 4.688e-05/0.3132, allocations: 16.3 kB / 437 MB, free: 1.016 MB / 334.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003439/0.3135, allocations: 48.02 kB / 437 MB, free: 0.9688 MB / 334.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0003754/0.3139, allocations: 189.2 kB / 437.2 MB, free: 0.75 MB / 334.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 9.224e-05/0.314, allocations: 87.38 kB / 437.3 MB, free: 0.6406 MB / 334.1 MB Notification: Performance of simCode: alias equations: time 3.306e-05/0.314, allocations: 4 kB / 437.3 MB, free: 0.6367 MB / 334.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.382e-05/0.3141, allocations: 11.44 kB / 437.3 MB, free: 0.625 MB / 334.1 MB Notification: Performance of SimCode: time 3.31e-07/0.3141, allocations: 0 / 437.3 MB, free: 0.625 MB / 334.1 MB Notification: Performance of Templates: time 0.003488/0.3176, allocations: 0.7215 MB / 438 MB, free: 15.93 MB / 350.1 MB " [Timeout remaining time 660] make -j1 -f Modelica_4.1.0_Modelica.Clocked.Examples.Elementary.RealSignals.AssignClockToSquareWaveHold.makefile [Timeout 660] (rm -f Modelica_4.1.0_Modelica.Clocked.Examples.Elementary.RealSignals.AssignClockToSquareWaveHold.pipe ; mkfifo Modelica_4.1.0_Modelica.Clocked.Examples.Elementary.RealSignals.AssignClockToSquareWaveHold.pipe ; head -c 1048576 < Modelica_4.1.0_Modelica.Clocked.Examples.Elementary.RealSignals.AssignClockToSquareWaveHold.pipe >> ../files/Modelica_4.1.0_Modelica.Clocked.Examples.Elementary.RealSignals.AssignClockToSquareWaveHold.sim & ./Modelica_4.1.0_Modelica.Clocked.Examples.Elementary.RealSignals.AssignClockToSquareWaveHold -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Modelica_4.1.0_Modelica.Clocked.Examples.Elementary.RealSignals.AssignClockToSquareWaveHold.pipe 2>&1) [Timeout 480] diffSimulationResults("Modelica_4.1.0_Modelica.Clocked.Examples.Elementary.RealSignals.AssignClockToSquareWaveHold_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.1.0/Modelica/Clocked/Examples/Elementary/RealSignals/AssignClockToSquareWaveHold/AssignClockToSquareWaveHold.csv","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_4.1.0_Modelica.Clocked.Examples.Elementary.RealSignals.AssignClockToSquareWaveHold.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) [Timeout 660] "" [Timeout remaining time 660] Reference file matches [Calling sys.exit(0), Time elapsed: 4.755704287439585]