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.002157/0.002157, allocations: 115.6 kB / 20.43 MB, free: 1.449 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.002012/0.002012, allocations: 213.4 kB / 23.74 MB, free: 4.656 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.666/1.666, allocations: 230.6 MB / 257.5 MB, free: 8.039 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.002066/0.002066, allocations: 43.94 kB / 378.3 MB, free: 2.656 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3382/0.3403, allocations: 53.37 MB / 431.6 MB, free: 6.938 MB / 334.1 MB Notification: Performance of NFInst.instantiate(Modelica.Clocked.Examples.Elementary.RealSignals.AssignClockToSquareWaveHold): time 0.003554/0.3439, allocations: 1.629 MB / 433.3 MB, free: 5.305 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.001326/0.3452, allocations: 0.561 MB / 433.8 MB, free: 4.738 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001285/0.3453, allocations: 3.938 kB / 433.8 MB, free: 4.734 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 5.44e-05/0.3454, allocations: 3.938 kB / 433.8 MB, free: 4.73 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001683/0.3455, allocations: 15.86 kB / 433.8 MB, free: 4.715 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0004439/0.346, allocations: 71.31 kB / 433.9 MB, free: 4.648 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.0001596/0.3461, allocations: 55.84 kB / 434 MB, free: 4.594 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.000127/0.3463, allocations: 11.98 kB / 434 MB, free: 4.582 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001561/0.3464, allocations: 35.78 kB / 434 MB, free: 4.547 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 7.988e-05/0.3465, allocations: 27.86 kB / 434 MB, free: 4.52 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 2.301e-05/0.3465, allocations: 7.938 kB / 434 MB, free: 4.512 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 4.916e-05/0.3466, allocations: 4 kB / 434.1 MB, free: 4.508 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 5.897e-05/0.3466, allocations: 11.98 kB / 434.1 MB, free: 4.496 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 5.921e-05/0.3467, allocations: 35.73 kB / 434.1 MB, free: 4.461 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0002125/0.3469, allocations: 67.38 kB / 434.2 MB, free: 4.398 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.097e-06/0.3469, allocations: 0 / 434.2 MB, free: 4.398 MB / 334.1 MB Notification: Performance of FrontEnd: time 1.793e-06/0.3469, allocations: 4 kB / 434.2 MB, free: 4.395 MB / 334.1 MB Notification: Performance of Transformations before backend: time 1.324e-05/0.3469, allocations: 4 kB / 434.2 MB, free: 4.391 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.0006332/0.3476, allocations: 307.5 kB / 434.5 MB, free: 4.062 MB / 334.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.627e-05/0.3476, allocations: 8.031 kB / 434.5 MB, free: 4.055 MB / 334.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001967/0.3478, allocations: 20.88 kB / 434.5 MB, free: 4.035 MB / 334.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003302/0.3481, allocations: 145.4 kB / 434.6 MB, free: 3.871 MB / 334.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.134e-05/0.3481, allocations: 384 / 434.6 MB, free: 3.871 MB / 334.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.583e-05/0.3482, allocations: 8.375 kB / 434.7 MB, free: 3.863 MB / 334.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003599/0.3485, allocations: 138.2 kB / 434.8 MB, free: 3.707 MB / 334.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 9.838e-06/0.3485, allocations: 3.938 kB / 434.8 MB, free: 3.703 MB / 334.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.105e-05/0.3485, allocations: 0 / 434.8 MB, free: 3.703 MB / 334.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.134e-06/0.3485, allocations: 8 kB / 434.8 MB, free: 3.695 MB / 334.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 9.43e-05/0.3486, allocations: 23.92 kB / 434.8 MB, free: 3.672 MB / 334.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0004519/0.3491, allocations: 253.7 kB / 435.1 MB, free: 3.375 MB / 334.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002385/0.3493, allocations: 79.72 kB / 435.1 MB, free: 3.27 MB / 334.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 8.345e-05/0.3494, allocations: 34.69 kB / 435.2 MB, free: 3.227 MB / 334.1 MB Notification: Performance of preOpt evalFunc (simulation): time 3.115e-05/0.3494, allocations: 11.98 kB / 435.2 MB, free: 3.215 MB / 334.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.269e-05/0.3495, allocations: 34.5 kB / 435.2 MB, free: 3.172 MB / 334.1 MB Notification: Performance of pre-optimization done (n=6): time 1.453e-06/0.3495, allocations: 4 kB / 435.2 MB, free: 3.168 MB / 334.1 MB Notification: Performance of matching and sorting (n=6): time 0.0003137/0.3498, allocations: 93.55 kB / 435.3 MB, free: 3.07 MB / 334.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 9.354e-05/0.3499, allocations: 106.8 kB / 435.4 MB, free: 2.941 MB / 334.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001599/0.35, allocations: 145.8 kB / 435.6 MB, free: 2.789 MB / 334.1 MB Notification: Performance of collectPreVariables (initialization): time 1.906e-05/0.3501, allocations: 25.7 kB / 435.6 MB, free: 2.758 MB / 334.1 MB Notification: Performance of collectInitialEqns (initialization): time 6.25e-05/0.3501, allocations: 84.14 kB / 435.7 MB, free: 2.672 MB / 334.1 MB Notification: Performance of collectInitialBindings (initialization): time 2.723e-05/0.3502, allocations: 20.14 kB / 435.7 MB, free: 2.652 MB / 334.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 4.451e-05/0.3502, allocations: 21.7 kB / 435.7 MB, free: 2.625 MB / 334.1 MB Notification: Performance of setup shared object (initialization): time 0.0001585/0.3504, allocations: 322.8 kB / 436 MB, free: 2.301 MB / 334.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 5.314e-05/0.3504, allocations: 11.98 kB / 436 MB, free: 2.289 MB / 334.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 6.992e-05/0.3505, allocations: 40.28 kB / 436.1 MB, free: 2.234 MB / 334.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001254/0.3506, allocations: 68.22 kB / 436.1 MB, free: 2.152 MB / 334.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.364e-06/0.3506, allocations: 0 / 436.1 MB, free: 2.152 MB / 334.1 MB Notification: Performance of matching and sorting (n=7) (initialization): time 0.000182/0.3508, allocations: 85.5 kB / 436.2 MB, free: 2.062 MB / 334.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.917e-05/0.3508, allocations: 12.12 kB / 436.2 MB, free: 2.051 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.552e-06/0.3508, allocations: 160 / 436.2 MB, free: 2.051 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.445e-05/0.3508, allocations: 7.938 kB / 436.3 MB, free: 2.043 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 8.218e-05/0.3509, allocations: 11.98 kB / 436.3 MB, free: 2.031 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 9.188e-06/0.3509, allocations: 3.984 kB / 436.3 MB, free: 2.027 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 5.7e-05/0.351, allocations: 15.89 kB / 436.3 MB, free: 2.012 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.042e-05/0.351, allocations: 4 kB / 436.3 MB, free: 2.008 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.0001153/0.3511, allocations: 129.7 kB / 436.4 MB, free: 1.871 MB / 334.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 9.845e-05/0.3512, allocations: 53.64 kB / 436.5 MB, free: 1.812 MB / 334.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 4.133e-05/0.3513, allocations: 16.34 kB / 436.5 MB, free: 1.789 MB / 334.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.823e-06/0.3513, allocations: 0 / 436.5 MB, free: 1.789 MB / 334.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.769e-06/0.3513, allocations: 0 / 436.5 MB, free: 1.789 MB / 334.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.336e-06/0.3513, allocations: 0 / 436.5 MB, free: 1.789 MB / 334.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002169/0.3515, allocations: 160.6 kB / 436.6 MB, free: 1.59 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.653e-06/0.3515, allocations: 0 / 436.6 MB, free: 1.59 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 5.883e-05/0.3515, allocations: 11.98 kB / 436.7 MB, free: 1.578 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.795e-06/0.3515, allocations: 0 / 436.7 MB, free: 1.578 MB / 334.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.696e-06/0.3516, allocations: 0 / 436.7 MB, free: 1.578 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 4.679e-06/0.3516, allocations: 4 kB / 436.7 MB, free: 1.574 MB / 334.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.677e-06/0.3516, allocations: 3.938 kB / 436.7 MB, free: 1.57 MB / 334.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002233/0.3518, allocations: 185.1 kB / 436.8 MB, free: 1.367 MB / 334.1 MB Notification: Performance of postOpt removeConstants (simulation): time 4.662e-05/0.3518, allocations: 19.94 kB / 436.9 MB, free: 1.348 MB / 334.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.884e-05/0.3518, allocations: 0 / 436.9 MB, free: 1.348 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 7.53e-05/0.3519, allocations: 8.281 kB / 436.9 MB, free: 1.34 MB / 334.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.474e-05/0.352, allocations: 7.984 kB / 436.9 MB, free: 1.332 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.602e-06/0.352, allocations: 4 kB / 436.9 MB, free: 1.328 MB / 334.1 MB Notification: Performance of sorting global known variables: time 8.209e-05/0.3521, allocations: 105.7 kB / 437 MB, free: 1.227 MB / 334.1 MB Notification: Performance of sort global known variables: time 8e-08/0.3521, allocations: 0 / 437 MB, free: 1.227 MB / 334.1 MB Notification: Performance of remove unused functions: time 0.0002457/0.3523, allocations: 8 kB / 437 MB, free: 1.219 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.000137/0.3524, allocations: 115.2 kB / 437.1 MB, free: 1.098 MB / 334.1 MB Notification: Performance of simCode: created initialization part: time 0.000189/0.3526, allocations: 48.05 kB / 437.1 MB, free: 1.051 MB / 334.1 MB Notification: Performance of simCode: created event and clocks part: time 2.294e-06/0.3526, allocations: 4.062 kB / 437.2 MB, free: 1.047 MB / 334.1 MB Notification: Performance of simCode: created simulation system equations: time 4.445e-05/0.3527, allocations: 11.98 kB / 437.2 MB, free: 1.035 MB / 334.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003747/0.353, allocations: 32 kB / 437.2 MB, free: 1.004 MB / 334.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0004891/0.3535, allocations: 197.2 kB / 437.4 MB, free: 0.7773 MB / 334.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003579/0.3539, allocations: 0.7003 MB / 438.1 MB, free: 52 kB / 334.1 MB Notification: Performance of simCode: alias equations: time 3.885e-05/0.3539, allocations: 7.719 kB / 438.1 MB, free: 44 kB / 334.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.365e-05/0.354, allocations: 11.44 kB / 438.1 MB, free: 32 kB / 334.1 MB Notification: Performance of SimCode: time 5.51e-07/0.354, allocations: 0 / 438.1 MB, free: 32 kB / 334.1 MB Notification: Performance of Templates: time 0.003724/0.3577, allocations: 0.6792 MB / 438.8 MB, free: 15.36 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: 5.158484726911411]