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.001027/0.001027, allocations: 82.64 kB / 21.42 MB, free: 3.078 MB / 18.57 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.0009653/0.0009653, allocations: 169.6 kB / 24.82 MB, free: 8.328 MB / 18.57 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/1, allocations: 177.1 MB / 205.3 MB, free: 5.531 MB / 186.7 MB " [Timeout remaining time 179] 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 1.603e-06/1.603e-06, allocations: 0 / 273.4 MB, free: 1.32 MB / 250.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 1.192e-05/1.353e-05, allocations: 6.25 kB / 273.4 MB, free: 1.312 MB / 250.7 MB Notification: Performance of NFInst.instantiate(Modelica.Clocked.Examples.Elementary.RealSignals.AssignClockToSquareWaveHold): time 0.002306/0.00232, allocations: 1.646 MB / 275 MB, free: 15.66 MB / 266.7 MB Notification: Performance of NFInst.instExpressions: time 0.0007834/0.003103, allocations: 0.5414 MB / 275.6 MB, free: 15.11 MB / 266.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 8.059e-05/0.003184, allocations: 7.938 kB / 275.6 MB, free: 15.1 MB / 266.7 MB Notification: Performance of NFTyping.typeComponents: time 4.029e-05/0.003224, allocations: 3.938 kB / 275.6 MB, free: 15.1 MB / 266.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0001156/0.00334, allocations: 7.875 kB / 275.6 MB, free: 15.09 MB / 266.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002948/0.003635, allocations: 75.73 kB / 275.7 MB, free: 15.02 MB / 266.7 MB Notification: Performance of NFFlatten.flatten: time 9.906e-05/0.003734, allocations: 51.78 kB / 275.7 MB, free: 14.96 MB / 266.7 MB Notification: Performance of NFFlatten.resolveConnections: time 7.241e-05/0.003806, allocations: 11.98 kB / 275.7 MB, free: 14.95 MB / 266.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001076/0.003914, allocations: 39.84 kB / 275.8 MB, free: 14.91 MB / 266.7 MB Notification: Performance of NFSimplifyModel.simplify: time 4.19e-05/0.003956, allocations: 15.97 kB / 275.8 MB, free: 14.9 MB / 266.7 MB Notification: Performance of NFPackage.collectConstants: time 1.426e-05/0.00397, allocations: 4 kB / 275.8 MB, free: 14.89 MB / 266.7 MB Notification: Performance of NFFlatten.collectFunctions: time 3.638e-05/0.004006, allocations: 11.98 kB / 275.8 MB, free: 14.88 MB / 266.7 MB Notification: Performance of NFScalarize.scalarize: time 3.665e-05/0.004043, allocations: 11.94 kB / 275.8 MB, free: 14.87 MB / 266.7 MB Notification: Performance of NFVerifyModel.verify: time 2.42e-05/0.004067, allocations: 19.91 kB / 275.8 MB, free: 14.85 MB / 266.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0001015/0.004168, allocations: 47.77 kB / 275.9 MB, free: 14.8 MB / 266.7 MB Notification: Performance of FrontEnd - DAE generated: time 1.372e-06/0.00417, allocations: 4 kB / 275.9 MB, free: 14.8 MB / 266.7 MB Notification: Performance of FrontEnd: time 4.11e-07/0.00417, allocations: 0 / 275.9 MB, free: 14.8 MB / 266.7 MB Notification: Performance of Transformations before backend: time 2.955e-06/0.004173, allocations: 0 / 275.9 MB, free: 14.8 MB / 266.7 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.0003504/0.004524, allocations: 416.2 kB / 276.3 MB, free: 14.36 MB / 266.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.213e-05/0.004556, allocations: 12.03 kB / 276.3 MB, free: 14.35 MB / 266.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 9.365e-05/0.004649, allocations: 16.89 kB / 276.3 MB, free: 14.33 MB / 266.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001329/0.004782, allocations: 159.6 kB / 276.5 MB, free: 14.15 MB / 266.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 7.615e-06/0.00479, allocations: 4.375 kB / 276.5 MB, free: 14.15 MB / 266.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 7.705e-06/0.004798, allocations: 8.375 kB / 276.5 MB, free: 14.14 MB / 266.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001707/0.004968, allocations: 145.2 kB / 276.6 MB, free: 13.97 MB / 266.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 7.775e-06/0.004976, allocations: 192 / 276.6 MB, free: 13.97 MB / 266.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 7.805e-06/0.004984, allocations: 384 / 276.6 MB, free: 13.97 MB / 266.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001528/0.005137, allocations: 7.938 kB / 276.6 MB, free: 13.96 MB / 266.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 2.321e-05/0.00516, allocations: 7.938 kB / 276.7 MB, free: 13.95 MB / 266.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0002067/0.005367, allocations: 259.7 kB / 276.9 MB, free: 13.66 MB / 266.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.000121/0.005488, allocations: 101.2 kB / 277 MB, free: 13.53 MB / 266.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 3.206e-05/0.00552, allocations: 39.08 kB / 277 MB, free: 13.48 MB / 266.7 MB Notification: Performance of preOpt evalFunc (simulation): time 1.903e-05/0.005539, allocations: 4 kB / 277 MB, free: 13.47 MB / 266.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.116e-05/0.00556, allocations: 41.39 kB / 277.1 MB, free: 13.42 MB / 266.7 MB Notification: Performance of pre-optimization done (n=6): time 1.102e-06/0.005561, allocations: 3.938 kB / 277.1 MB, free: 13.42 MB / 266.7 MB Notification: Performance of matching and sorting (n=6): time 0.0001372/0.005698, allocations: 73.45 kB / 277.2 MB, free: 13.34 MB / 266.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.083e-05/0.005759, allocations: 110.8 kB / 277.3 MB, free: 13.21 MB / 266.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 9.607e-05/0.005855, allocations: 190.1 kB / 277.5 MB, free: 13 MB / 266.7 MB Notification: Performance of collectPreVariables (initialization): time 1.033e-05/0.005865, allocations: 29.7 kB / 277.5 MB, free: 12.97 MB / 266.7 MB Notification: Performance of collectInitialEqns (initialization): time 4.129e-05/0.005907, allocations: 142.8 kB / 277.6 MB, free: 12.82 MB / 266.7 MB Notification: Performance of collectInitialBindings (initialization): time 1.636e-05/0.005923, allocations: 3.953 kB / 277.6 MB, free: 12.82 MB / 266.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.143e-05/0.005954, allocations: 27.33 kB / 277.7 MB, free: 12.79 MB / 266.7 MB Notification: Performance of setup shared object (initialization): time 0.000116/0.00607, allocations: 0.4923 MB / 278.2 MB, free: 12.28 MB / 266.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 8.716e-06/0.006079, allocations: 0 / 278.2 MB, free: 12.28 MB / 266.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 1.729e-05/0.006096, allocations: 19.38 kB / 278.2 MB, free: 12.25 MB / 266.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 3.405e-05/0.006131, allocations: 31.3 kB / 278.2 MB, free: 12.21 MB / 266.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.483e-06/0.006132, allocations: 0 / 278.2 MB, free: 12.21 MB / 266.7 MB Notification: Performance of matching and sorting (n=4) (initialization): time 5.624e-05/0.006188, allocations: 53.69 kB / 278.3 MB, free: 12.16 MB / 266.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.136e-05/0.0062, allocations: 7.938 kB / 278.3 MB, free: 12.15 MB / 266.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.548e-06/0.006204, allocations: 0 / 278.3 MB, free: 12.15 MB / 266.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 9.308e-06/0.006213, allocations: 0 / 278.3 MB, free: 12.15 MB / 266.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 4.175e-05/0.006255, allocations: 7.938 kB / 278.3 MB, free: 12.14 MB / 266.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 2.826e-06/0.006258, allocations: 0 / 278.3 MB, free: 12.14 MB / 266.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 1.914e-05/0.006277, allocations: 4 kB / 278.3 MB, free: 12.14 MB / 266.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.739e-06/0.006282, allocations: 0 / 278.3 MB, free: 12.14 MB / 266.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 2 * 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 (4): * Single equations (assignments): 4 * 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 7.93e-05/0.006361, allocations: 168.5 kB / 278.4 MB, free: 11.96 MB / 266.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.314e-05/0.006404, allocations: 45.66 kB / 278.5 MB, free: 11.91 MB / 266.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.754e-05/0.006442, allocations: 20.27 kB / 278.5 MB, free: 11.89 MB / 266.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.994e-06/0.006444, allocations: 4.406 kB / 278.5 MB, free: 11.89 MB / 266.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.388e-06/0.006448, allocations: 4 kB / 278.5 MB, free: 11.88 MB / 266.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.337e-06/0.006452, allocations: 0 / 278.5 MB, free: 11.88 MB / 266.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001318/0.006583, allocations: 109.2 kB / 278.6 MB, free: 11.75 MB / 266.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.272e-06/0.006585, allocations: 0 / 278.6 MB, free: 11.75 MB / 266.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 3.262e-05/0.006617, allocations: 15.92 kB / 278.6 MB, free: 11.73 MB / 266.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.454e-06/0.00662, allocations: 4 kB / 278.6 MB, free: 11.73 MB / 266.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.28e-06/0.006625, allocations: 3.984 kB / 278.6 MB, free: 11.73 MB / 266.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.262e-06/0.006626, allocations: 0 / 278.6 MB, free: 11.73 MB / 266.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.385e-06/0.006629, allocations: 3.938 kB / 278.6 MB, free: 11.72 MB / 266.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 9.613e-05/0.006725, allocations: 215.3 kB / 278.9 MB, free: 11.48 MB / 266.7 MB Notification: Performance of postOpt removeConstants (simulation): time 2.795e-05/0.006753, allocations: 23.83 kB / 278.9 MB, free: 11.46 MB / 266.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.527e-05/0.006768, allocations: 7.938 kB / 278.9 MB, free: 11.45 MB / 266.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 3.423e-05/0.006802, allocations: 3.984 kB / 278.9 MB, free: 11.45 MB / 266.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 2.226e-05/0.006825, allocations: 7.938 kB / 278.9 MB, free: 11.44 MB / 266.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.707e-06/0.006828, allocations: 0 / 278.9 MB, free: 11.44 MB / 266.7 MB Notification: Performance of sorting global known variables: time 4.332e-05/0.006872, allocations: 150.1 kB / 279 MB, free: 11.3 MB / 266.7 MB Notification: Performance of sort global known variables: time 6e-08/0.006872, allocations: 0 / 279 MB, free: 11.3 MB / 266.7 MB Notification: Performance of remove unused functions: time 0.0001383/0.00701, allocations: 8 kB / 279.1 MB, free: 11.29 MB / 266.7 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 6.919e-05/0.007079, allocations: 99.28 kB / 279.1 MB, free: 11.18 MB / 266.7 MB Notification: Performance of simCode: created initialization part: time 6.835e-05/0.007147, allocations: 31.61 kB / 279.2 MB, free: 11.14 MB / 266.7 MB Notification: Performance of simCode: created event and clocks part: time 1.343e-06/0.007149, allocations: 0 / 279.2 MB, free: 11.14 MB / 266.7 MB Notification: Performance of simCode: created simulation system equations: time 1.369e-05/0.007162, allocations: 11.69 kB / 279.2 MB, free: 11.13 MB / 266.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002207/0.007383, allocations: 31.55 kB / 279.2 MB, free: 11.1 MB / 266.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0003522/0.007735, allocations: 198 kB / 279.4 MB, free: 10.88 MB / 266.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 3.461e-05/0.00777, allocations: 63.53 kB / 279.5 MB, free: 10.79 MB / 266.7 MB Notification: Performance of simCode: alias equations: time 2.029e-05/0.00779, allocations: 11.98 kB / 279.5 MB, free: 10.78 MB / 266.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 5.242e-05/0.007843, allocations: 74.2 kB / 279.6 MB, free: 10.71 MB / 266.7 MB Notification: Performance of SimCode: time 5.71e-07/0.007843, allocations: 0 / 279.6 MB, free: 10.71 MB / 266.7 MB Notification: Performance of Templates: time 0.002211/0.01005, allocations: 0.7294 MB / 280.3 MB, free: 10 MB / 266.7 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=240 -emit_protected -lv LOG_STATS > Modelica_4.1.0_Modelica.Clocked.Examples.Elementary.RealSignals.AssignClockToSquareWaveHold.pipe 2>&1) [Timeout 240] 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","",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) [Timeout 660] "" [Timeout remaining time 660] Reference file matches [Calling sys.exit(0), Time elapsed: 2.661988244857639]