Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.RealSignals.AssignClockToSquareWaveHold.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.00169/0.00169, allocations: 104 kB / 21.18 MB, free: 0.6719 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.002279/0.002279, allocations: 194.4 kB / 24.46 MB, free: 4.016 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.489/1.489, allocations: 225.7 MB / 253.3 MB, free: 12.81 MB / 206.1 MB " [Timeout remaining time 178] 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.AssignClockToSquareWaveHold,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5010,variableFilter="time|sample1.y|clockToSquareWave.y",fileNamePrefix="Modelica_4.0.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.0.0_Modelica.Clocked.Examples.Elementary.RealSignals.AssignClockToSquareWaveHold") [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 0.001643/0.001643, allocations: 55.98 kB / 371.6 MB, free: 9.207 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2423/0.2439, allocations: 52.18 MB / 423.8 MB, free: 14.5 MB / 334.1 MB Notification: Performance of NFInst.instantiate(Modelica.Clocked.Examples.Elementary.RealSignals.AssignClockToSquareWaveHold): time 0.002984/0.2469, allocations: 1.596 MB / 425.4 MB, free: 12.9 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.0009235/0.2478, allocations: 462.9 kB / 425.9 MB, free: 12.44 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 8.133e-05/0.2479, allocations: 11.88 kB / 425.9 MB, free: 12.43 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 4.502e-05/0.248, allocations: 11.92 kB / 425.9 MB, free: 12.42 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001248/0.2481, allocations: 7.875 kB / 425.9 MB, free: 12.41 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002989/0.2484, allocations: 55.77 kB / 426 MB, free: 12.36 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.0001179/0.2485, allocations: 51.89 kB / 426 MB, free: 12.3 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 9.58e-05/0.2486, allocations: 8.188 kB / 426 MB, free: 12.3 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 7.293e-05/0.2487, allocations: 27.8 kB / 426 MB, free: 12.27 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 5.662e-05/0.2487, allocations: 23.91 kB / 426.1 MB, free: 12.25 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 2.254e-05/0.2488, allocations: 4 kB / 426.1 MB, free: 12.24 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 1.389e-05/0.2488, allocations: 4 kB / 426.1 MB, free: 12.24 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 4.803e-05/0.2488, allocations: 15.92 kB / 426.1 MB, free: 12.22 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 4.103e-05/0.2489, allocations: 27.8 kB / 426.1 MB, free: 12.2 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0001242/0.249, allocations: 58.41 kB / 426.2 MB, free: 12.14 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.118e-06/0.249, allocations: 3.938 kB / 426.2 MB, free: 12.14 MB / 334.1 MB Notification: Performance of FrontEnd: time 4.488e-06/0.249, allocations: 4 kB / 426.2 MB, free: 12.14 MB / 334.1 MB Notification: Performance of Transformations before backend: time 4.759e-06/0.249, allocations: 0 / 426.2 MB, free: 12.14 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.0004895/0.2495, allocations: 309.9 kB / 426.5 MB, free: 11.8 MB / 334.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.478e-05/0.2495, allocations: 8.031 kB / 426.5 MB, free: 11.8 MB / 334.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.365e-05/0.2496, allocations: 8.891 kB / 426.5 MB, free: 11.79 MB / 334.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002502/0.2498, allocations: 134.4 kB / 426.6 MB, free: 11.63 MB / 334.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.351e-05/0.2498, allocations: 8.375 kB / 426.6 MB, free: 11.62 MB / 334.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.621e-05/0.2498, allocations: 4.375 kB / 426.6 MB, free: 11.62 MB / 334.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003018/0.2501, allocations: 145.9 kB / 426.8 MB, free: 11.46 MB / 334.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 9.167e-06/0.2501, allocations: 0 / 426.8 MB, free: 11.46 MB / 334.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.102e-05/0.2502, allocations: 4 kB / 426.8 MB, free: 11.45 MB / 334.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.957e-06/0.2502, allocations: 0 / 426.8 MB, free: 11.45 MB / 334.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 9.597e-05/0.2503, allocations: 31.92 kB / 426.8 MB, free: 11.42 MB / 334.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0003273/0.2506, allocations: 218.3 kB / 427 MB, free: 11.17 MB / 334.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.000202/0.2508, allocations: 87.59 kB / 427.1 MB, free: 11.06 MB / 334.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 9.622e-05/0.2509, allocations: 42.56 kB / 427.2 MB, free: 11.01 MB / 334.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.91e-05/0.2509, allocations: 4 kB / 427.2 MB, free: 11 MB / 334.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.905e-05/0.2509, allocations: 34.56 kB / 427.2 MB, free: 10.96 MB / 334.1 MB Notification: Performance of pre-optimization done (n=6): time 1.393e-06/0.2509, allocations: 0 / 427.2 MB, free: 10.96 MB / 334.1 MB Notification: Performance of matching and sorting (n=6): time 0.0002823/0.2512, allocations: 101.7 kB / 427.3 MB, free: 10.86 MB / 334.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.78e-05/0.2513, allocations: 110.8 kB / 427.4 MB, free: 10.72 MB / 334.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001388/0.2514, allocations: 138.1 kB / 427.5 MB, free: 10.57 MB / 334.1 MB Notification: Performance of collectPreVariables (initialization): time 1.839e-05/0.2514, allocations: 33.7 kB / 427.6 MB, free: 10.54 MB / 334.1 MB Notification: Performance of collectInitialEqns (initialization): time 5.638e-05/0.2515, allocations: 84.14 kB / 427.7 MB, free: 10.45 MB / 334.1 MB Notification: Performance of collectInitialBindings (initialization): time 1.778e-05/0.2515, allocations: 7.953 kB / 427.7 MB, free: 10.44 MB / 334.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 4.379e-05/0.2516, allocations: 25.66 kB / 427.7 MB, free: 10.41 MB / 334.1 MB Notification: Performance of setup shared object (initialization): time 0.0001506/0.2517, allocations: 318.8 kB / 428 MB, free: 10.09 MB / 334.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 5.068e-05/0.2518, allocations: 15.98 kB / 428 MB, free: 10.07 MB / 334.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 7.783e-05/0.2518, allocations: 48.28 kB / 428.1 MB, free: 10.01 MB / 334.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001183/0.252, allocations: 68.22 kB / 428.1 MB, free: 9.93 MB / 334.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.713e-06/0.252, allocations: 0 / 428.1 MB, free: 9.93 MB / 334.1 MB Notification: Performance of matching and sorting (n=7) (initialization): time 0.000173/0.2521, allocations: 89.5 kB / 428.2 MB, free: 9.836 MB / 334.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.295e-05/0.2521, allocations: 4 kB / 428.2 MB, free: 9.832 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.832e-06/0.2522, allocations: 8.125 kB / 428.2 MB, free: 9.824 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.44e-05/0.2522, allocations: 0 / 428.2 MB, free: 9.824 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 7.396e-05/0.2522, allocations: 11.98 kB / 428.2 MB, free: 9.812 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.21e-06/0.2522, allocations: 0 / 428.2 MB, free: 9.812 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 4.702e-05/0.2523, allocations: 4 kB / 428.3 MB, free: 9.809 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.005e-05/0.2523, allocations: 4 kB / 428.3 MB, free: 9.805 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.0001115/0.2524, allocations: 129.7 kB / 428.4 MB, free: 9.668 MB / 334.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 8.493e-05/0.2525, allocations: 53.64 kB / 428.4 MB, free: 9.609 MB / 334.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.837e-05/0.2525, allocations: 12.34 kB / 428.4 MB, free: 9.59 MB / 334.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.944e-06/0.2525, allocations: 0 / 428.4 MB, free: 9.59 MB / 334.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.998e-06/0.2525, allocations: 4 kB / 428.4 MB, free: 9.586 MB / 334.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.324e-06/0.2525, allocations: 4 kB / 428.5 MB, free: 9.582 MB / 334.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001685/0.2527, allocations: 125.2 kB / 428.6 MB, free: 9.43 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.212e-06/0.2527, allocations: 0 / 428.6 MB, free: 9.43 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 5.554e-05/0.2528, allocations: 8 kB / 428.6 MB, free: 9.422 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 6.312e-06/0.2528, allocations: 3.984 kB / 428.6 MB, free: 9.418 MB / 334.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.072e-05/0.2528, allocations: 4 kB / 428.6 MB, free: 9.414 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.713e-06/0.2528, allocations: 3.938 kB / 428.6 MB, free: 9.41 MB / 334.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.062e-06/0.2528, allocations: 3.938 kB / 428.6 MB, free: 9.406 MB / 334.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002264/0.253, allocations: 189.1 kB / 428.8 MB, free: 9.199 MB / 334.1 MB Notification: Performance of postOpt removeConstants (simulation): time 4.776e-05/0.2531, allocations: 23.88 kB / 428.8 MB, free: 9.176 MB / 334.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.651e-05/0.2531, allocations: 4 kB / 428.8 MB, free: 9.172 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 7.553e-05/0.2532, allocations: 8 kB / 428.8 MB, free: 9.164 MB / 334.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 2.784e-05/0.2532, allocations: 0 / 428.8 MB, free: 9.164 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 9.057e-06/0.2532, allocations: 7.984 kB / 428.8 MB, free: 9.156 MB / 334.1 MB Notification: Performance of sorting global known variables: time 8.913e-05/0.2533, allocations: 106.2 kB / 428.9 MB, free: 9.055 MB / 334.1 MB Notification: Performance of sort global known variables: time 8.1e-08/0.2533, allocations: 0 / 428.9 MB, free: 9.055 MB / 334.1 MB Notification: Performance of remove unused functions: time 0.0002368/0.2535, allocations: 11.94 kB / 428.9 MB, free: 9.043 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.0001053/0.2536, allocations: 107.6 kB / 429 MB, free: 8.93 MB / 334.1 MB Notification: Performance of simCode: created initialization part: time 0.0001698/0.2538, allocations: 51.91 kB / 429.1 MB, free: 8.879 MB / 334.1 MB Notification: Performance of simCode: created event and clocks part: time 1.763e-06/0.2538, allocations: 0 / 429.1 MB, free: 8.879 MB / 334.1 MB Notification: Performance of simCode: created simulation system equations: time 4.447e-05/0.2538, allocations: 11.98 kB / 429.1 MB, free: 8.867 MB / 334.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003397/0.2542, allocations: 35.89 kB / 429.1 MB, free: 8.832 MB / 334.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.000405/0.2546, allocations: 203 kB / 429.3 MB, free: 8.594 MB / 334.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 8.911e-05/0.2547, allocations: 87.55 kB / 429.4 MB, free: 8.488 MB / 334.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.358e-05/0.2547, allocations: 15.44 kB / 429.4 MB, free: 8.473 MB / 334.1 MB Notification: Performance of SimCode: time 3.1e-07/0.2547, allocations: 0 / 429.4 MB, free: 8.473 MB / 334.1 MB Notification: Performance of Templates: time 0.002534/0.2572, allocations: 0.8825 MB / 430.3 MB, free: 7.598 MB / 334.1 MB " [Timeout remaining time 660] make -j1 -f Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.RealSignals.AssignClockToSquareWaveHold.makefile [Timeout 660] (rm -f Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.RealSignals.AssignClockToSquareWaveHold.pipe ; mkfifo Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.RealSignals.AssignClockToSquareWaveHold.pipe ; head -c 1048576 < Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.RealSignals.AssignClockToSquareWaveHold.pipe >> ../files/Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.RealSignals.AssignClockToSquareWaveHold.sim & ./Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.RealSignals.AssignClockToSquareWaveHold -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.RealSignals.AssignClockToSquareWaveHold.pipe 2>&1) [Timeout 480] diffSimulationResults("Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.RealSignals.AssignClockToSquareWaveHold_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Clocked/Examples/Elementary/RealSignals/AssignClockToSquareWaveHold/AssignClockToSquareWaveHold.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_4.0.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: 6.859918379690498]