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.001374/0.001374, allocations: 103.6 kB / 20.43 MB, free: 1.211 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.001386/0.001386, allocations: 184.7 kB / 23.71 MB, free: 4.434 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 / 252.5 MB, free: 12.86 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.001621/0.001621, allocations: 47.92 kB / 370.9 MB, free: 9.172 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2757/0.2773, allocations: 52.19 MB / 423.1 MB, free: 14.45 MB / 334.1 MB Notification: Performance of NFInst.instantiate(Modelica.Clocked.Examples.Elementary.RealSignals.AssignClockToSquareWaveHold): time 0.00303/0.2803, allocations: 1.597 MB / 424.7 MB, free: 12.85 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.0009632/0.2813, allocations: 458.9 kB / 425.1 MB, free: 12.39 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 8.477e-05/0.2814, allocations: 3.938 kB / 425.1 MB, free: 12.39 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 5.437e-05/0.2814, allocations: 7.922 kB / 425.1 MB, free: 12.38 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001397/0.2815, allocations: 15.86 kB / 425.2 MB, free: 12.37 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002942/0.2818, allocations: 51.83 kB / 425.2 MB, free: 12.32 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.0001404/0.282, allocations: 55.78 kB / 425.3 MB, free: 12.26 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 9.484e-05/0.2821, allocations: 8.188 kB / 425.3 MB, free: 12.25 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 8.587e-05/0.2822, allocations: 31.84 kB / 425.3 MB, free: 12.22 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 5.962e-05/0.2822, allocations: 19.86 kB / 425.3 MB, free: 12.2 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 2.284e-05/0.2822, allocations: 4 kB / 425.3 MB, free: 12.2 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 1.452e-05/0.2823, allocations: 4 kB / 425.3 MB, free: 12.2 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 5.375e-05/0.2823, allocations: 15.92 kB / 425.3 MB, free: 12.18 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 5.202e-05/0.2824, allocations: 23.86 kB / 425.4 MB, free: 12.16 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0001356/0.2825, allocations: 61.92 kB / 425.4 MB, free: 12.1 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.89e-06/0.2825, allocations: 4 kB / 425.4 MB, free: 12.1 MB / 334.1 MB Notification: Performance of FrontEnd: time 1.182e-06/0.2825, allocations: 0 / 425.4 MB, free: 12.1 MB / 334.1 MB Notification: Performance of Transformations before backend: time 9.638e-06/0.2825, allocations: 0 / 425.4 MB, free: 12.1 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.0005146/0.283, allocations: 309.9 kB / 425.7 MB, free: 11.77 MB / 334.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.738e-05/0.2831, allocations: 8.031 kB / 425.7 MB, free: 11.76 MB / 334.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.749e-05/0.2831, allocations: 12.89 kB / 425.7 MB, free: 11.75 MB / 334.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002588/0.2834, allocations: 138.4 kB / 425.9 MB, free: 11.59 MB / 334.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.305e-05/0.2834, allocations: 4.312 kB / 425.9 MB, free: 11.58 MB / 334.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.015e-05/0.2834, allocations: 8.375 kB / 425.9 MB, free: 11.57 MB / 334.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.000349/0.2837, allocations: 141.9 kB / 426 MB, free: 11.41 MB / 334.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.089e-05/0.2838, allocations: 0 / 426 MB, free: 11.41 MB / 334.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.289e-05/0.2838, allocations: 4 kB / 426 MB, free: 11.41 MB / 334.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.167e-05/0.2838, allocations: 4 kB / 426 MB, free: 11.41 MB / 334.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 9.821e-05/0.2839, allocations: 23.92 kB / 426.1 MB, free: 11.38 MB / 334.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0003433/0.2842, allocations: 222.3 kB / 426.3 MB, free: 11.13 MB / 334.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002281/0.2844, allocations: 87.78 kB / 426.4 MB, free: 11.02 MB / 334.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 9.346e-05/0.2845, allocations: 34.56 kB / 426.4 MB, free: 10.97 MB / 334.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.696e-05/0.2846, allocations: 3.938 kB / 426.4 MB, free: 10.97 MB / 334.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.988e-05/0.2846, allocations: 38.56 kB / 426.4 MB, free: 10.92 MB / 334.1 MB Notification: Performance of pre-optimization done (n=6): time 1.172e-06/0.2846, allocations: 0 / 426.4 MB, free: 10.92 MB / 334.1 MB Notification: Performance of matching and sorting (n=6): time 0.0003004/0.2849, allocations: 97.53 kB / 426.5 MB, free: 10.82 MB / 334.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.000101/0.285, allocations: 110.8 kB / 426.6 MB, free: 10.69 MB / 334.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001605/0.2852, allocations: 145 kB / 426.8 MB, free: 10.54 MB / 334.1 MB Notification: Performance of collectPreVariables (initialization): time 2.846e-05/0.2852, allocations: 25.7 kB / 426.8 MB, free: 10.5 MB / 334.1 MB Notification: Performance of collectInitialEqns (initialization): time 6.129e-05/0.2853, allocations: 92.14 kB / 426.9 MB, free: 10.41 MB / 334.1 MB Notification: Performance of collectInitialBindings (initialization): time 1.852e-05/0.2853, allocations: 3.953 kB / 426.9 MB, free: 10.41 MB / 334.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 4.989e-05/0.2853, allocations: 29.66 kB / 426.9 MB, free: 10.37 MB / 334.1 MB Notification: Performance of setup shared object (initialization): time 0.0001501/0.2855, allocations: 314.8 kB / 427.2 MB, free: 10.05 MB / 334.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 6.263e-05/0.2855, allocations: 15.98 kB / 427.3 MB, free: 10.04 MB / 334.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 8.518e-05/0.2856, allocations: 44.28 kB / 427.3 MB, free: 9.98 MB / 334.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.00013/0.2857, allocations: 68.16 kB / 427.4 MB, free: 9.898 MB / 334.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.184e-06/0.2858, allocations: 0 / 427.4 MB, free: 9.898 MB / 334.1 MB Notification: Performance of matching and sorting (n=7) (initialization): time 0.0001814/0.2859, allocations: 93.44 kB / 427.5 MB, free: 9.801 MB / 334.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.764e-05/0.286, allocations: 8 kB / 427.5 MB, free: 9.793 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.509e-06/0.286, allocations: 0 / 427.5 MB, free: 9.793 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.498e-05/0.286, allocations: 0 / 427.5 MB, free: 9.793 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 7.624e-05/0.286, allocations: 16.05 kB / 427.5 MB, free: 9.777 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.57e-06/0.2861, allocations: 8 kB / 427.5 MB, free: 9.77 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 5.114e-05/0.2861, allocations: 4 kB / 427.5 MB, free: 9.766 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.814e-06/0.2861, allocations: 0 / 427.5 MB, free: 9.766 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.000106/0.2862, allocations: 129.7 kB / 427.6 MB, free: 9.629 MB / 334.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 9.244e-05/0.2863, allocations: 57.64 kB / 427.7 MB, free: 9.566 MB / 334.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 4.078e-05/0.2863, allocations: 12.34 kB / 427.7 MB, free: 9.547 MB / 334.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.783e-06/0.2864, allocations: 0 / 427.7 MB, free: 9.547 MB / 334.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.092e-06/0.2864, allocations: 4 kB / 427.7 MB, free: 9.543 MB / 334.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.906e-06/0.2864, allocations: 0 / 427.7 MB, free: 9.543 MB / 334.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001675/0.2865, allocations: 125.2 kB / 427.8 MB, free: 9.391 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.122e-06/0.2865, allocations: 4 kB / 427.8 MB, free: 9.387 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 6.017e-05/0.2866, allocations: 12 kB / 427.8 MB, free: 9.375 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 4.859e-06/0.2866, allocations: 4 kB / 427.8 MB, free: 9.371 MB / 334.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 9.608e-06/0.2866, allocations: 3.984 kB / 427.8 MB, free: 9.367 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.276e-06/0.2866, allocations: 3.938 kB / 427.8 MB, free: 9.363 MB / 334.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.965e-06/0.2866, allocations: 4 kB / 427.8 MB, free: 9.359 MB / 334.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002295/0.2868, allocations: 181.1 kB / 428 MB, free: 9.16 MB / 334.1 MB Notification: Performance of postOpt removeConstants (simulation): time 4.917e-05/0.2869, allocations: 23.88 kB / 428 MB, free: 9.137 MB / 334.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.844e-05/0.2869, allocations: 0 / 428 MB, free: 9.137 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 7.858e-05/0.287, allocations: 8 kB / 428.1 MB, free: 9.129 MB / 334.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.422e-05/0.287, allocations: 4 kB / 428.1 MB, free: 9.125 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.762e-06/0.287, allocations: 4 kB / 428.1 MB, free: 9.121 MB / 334.1 MB Notification: Performance of sorting global known variables: time 9.12e-05/0.2871, allocations: 110.7 kB / 428.2 MB, free: 9.016 MB / 334.1 MB Notification: Performance of sort global known variables: time 8e-08/0.2871, allocations: 0 / 428.2 MB, free: 9.016 MB / 334.1 MB Notification: Performance of remove unused functions: time 0.0002463/0.2874, allocations: 8 kB / 428.2 MB, free: 9.008 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.0001159/0.2875, allocations: 99.47 kB / 428.3 MB, free: 8.902 MB / 334.1 MB Notification: Performance of simCode: created initialization part: time 0.0001776/0.2877, allocations: 55.89 kB / 428.3 MB, free: 8.848 MB / 334.1 MB Notification: Performance of simCode: created event and clocks part: time 2.094e-06/0.2877, allocations: 4.25 kB / 428.3 MB, free: 8.844 MB / 334.1 MB Notification: Performance of simCode: created simulation system equations: time 4.817e-05/0.2877, allocations: 15.98 kB / 428.4 MB, free: 8.828 MB / 334.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003497/0.2881, allocations: 31.83 kB / 428.4 MB, free: 8.797 MB / 334.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0004001/0.2885, allocations: 181.2 kB / 428.6 MB, free: 8.586 MB / 334.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 8.974e-05/0.2885, allocations: 83.19 kB / 428.6 MB, free: 8.484 MB / 334.1 MB Notification: Performance of simCode: alias equations: time 3.776e-05/0.2886, allocations: 7.984 kB / 428.6 MB, free: 8.477 MB / 334.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.154e-05/0.2886, allocations: 11.56 kB / 428.7 MB, free: 8.465 MB / 334.1 MB Notification: Performance of SimCode: time 4.81e-07/0.2886, allocations: 3.938 kB / 428.7 MB, free: 8.461 MB / 334.1 MB Notification: Performance of Templates: time 0.003461/0.2921, allocations: 0.7127 MB / 429.4 MB, free: 7.77 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/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Clocked/Examples/Elementary/RealSignals/AssignClockToSquareWaveHold/AssignClockToSquareWaveHold.csv","/var/lib/jenkins/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: 4.569925567135215]