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.001764/0.001764, allocations: 107.6 kB / 21.19 MB, free: 0.6484 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.002363/0.002363, allocations: 214.8 kB / 24.48 MB, free: 3.957 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.481/1.481, allocations: 230.6 MB / 258.2 MB, free: 7.785 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.001567/0.001567, allocations: 52.05 kB / 379 MB, free: 2.535 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.355/0.3566, allocations: 53.36 MB / 432.3 MB, free: 6.73 MB / 334.1 MB Notification: Performance of NFInst.instantiate(Modelica.Clocked.Examples.Elementary.RealSignals.AssignClockToSquareWaveHold): time 0.003855/0.3605, allocations: 1.602 MB / 433.9 MB, free: 5.125 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.001257/0.3617, allocations: 0.5337 MB / 434.5 MB, free: 4.586 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001165/0.3618, allocations: 4 kB / 434.5 MB, free: 4.582 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 6.098e-05/0.3619, allocations: 7.875 kB / 434.5 MB, free: 4.574 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001597/0.3621, allocations: 7.922 kB / 434.5 MB, free: 4.566 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0004371/0.3625, allocations: 59.81 kB / 434.6 MB, free: 4.508 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.0002515/0.3627, allocations: 51.78 kB / 434.6 MB, free: 4.457 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001191/0.3629, allocations: 15.98 kB / 434.6 MB, free: 4.441 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001447/0.363, allocations: 35.86 kB / 434.7 MB, free: 4.406 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 7.503e-05/0.3631, allocations: 23.84 kB / 434.7 MB, free: 4.383 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 1.967e-05/0.3631, allocations: 4 kB / 434.7 MB, free: 4.379 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 5.153e-05/0.3631, allocations: 8 kB / 434.7 MB, free: 4.371 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 5.742e-05/0.3632, allocations: 19.92 kB / 434.7 MB, free: 4.352 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 4.926e-05/0.3633, allocations: 19.81 kB / 434.7 MB, free: 4.332 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0002031/0.3635, allocations: 69.34 kB / 434.8 MB, free: 4.27 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.877e-06/0.3635, allocations: 0 / 434.8 MB, free: 4.27 MB / 334.1 MB Notification: Performance of FrontEnd: time 1.483e-06/0.3635, allocations: 0 / 434.8 MB, free: 4.27 MB / 334.1 MB Notification: Performance of Transformations before backend: time 5.61e-06/0.3635, allocations: 0 / 434.8 MB, free: 4.27 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.0006004/0.3641, allocations: 317.9 kB / 435.1 MB, free: 3.93 MB / 334.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.134e-05/0.3641, allocations: 8.031 kB / 435.1 MB, free: 3.922 MB / 334.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.000167/0.3643, allocations: 12.89 kB / 435.1 MB, free: 3.91 MB / 334.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003287/0.3646, allocations: 152.3 kB / 435.3 MB, free: 3.738 MB / 334.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.292e-05/0.3646, allocations: 4.375 kB / 435.3 MB, free: 3.734 MB / 334.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.317e-05/0.3646, allocations: 4.375 kB / 435.3 MB, free: 3.73 MB / 334.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003387/0.365, allocations: 146.1 kB / 435.4 MB, free: 3.566 MB / 334.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.13e-05/0.365, allocations: 0 / 435.4 MB, free: 3.566 MB / 334.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.299e-05/0.365, allocations: 3.938 kB / 435.4 MB, free: 3.562 MB / 334.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.526e-06/0.365, allocations: 4 kB / 435.4 MB, free: 3.559 MB / 334.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 9.648e-05/0.3651, allocations: 23.92 kB / 435.5 MB, free: 3.535 MB / 334.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0003823/0.3655, allocations: 222.3 kB / 435.7 MB, free: 3.281 MB / 334.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002236/0.3657, allocations: 83.72 kB / 435.8 MB, free: 3.172 MB / 334.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 8.206e-05/0.3658, allocations: 42.56 kB / 435.8 MB, free: 3.121 MB / 334.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.9e-05/0.3658, allocations: 4 kB / 435.8 MB, free: 3.117 MB / 334.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 7.292e-05/0.3659, allocations: 38.5 kB / 435.8 MB, free: 3.07 MB / 334.1 MB Notification: Performance of pre-optimization done (n=6): time 1.322e-06/0.3659, allocations: 0 / 435.8 MB, free: 3.07 MB / 334.1 MB Notification: Performance of matching and sorting (n=6): time 0.0003059/0.3662, allocations: 93.55 kB / 435.9 MB, free: 2.973 MB / 334.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 9.299e-05/0.3663, allocations: 110.8 kB / 436 MB, free: 2.84 MB / 334.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001581/0.3665, allocations: 145.1 kB / 436.2 MB, free: 2.691 MB / 334.1 MB Notification: Performance of collectPreVariables (initialization): time 2.117e-05/0.3665, allocations: 29.7 kB / 436.2 MB, free: 2.656 MB / 334.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001007/0.3666, allocations: 88.39 kB / 436.3 MB, free: 2.566 MB / 334.1 MB Notification: Performance of collectInitialBindings (initialization): time 2.3e-05/0.3666, allocations: 11.95 kB / 436.3 MB, free: 2.555 MB / 334.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 4.216e-05/0.3666, allocations: 21.7 kB / 436.3 MB, free: 2.527 MB / 334.1 MB Notification: Performance of setup shared object (initialization): time 0.0001894/0.3668, allocations: 314.8 kB / 436.6 MB, free: 2.211 MB / 334.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 5.001e-05/0.3669, allocations: 15.98 kB / 436.7 MB, free: 2.195 MB / 334.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 7.282e-05/0.3669, allocations: 44.28 kB / 436.7 MB, free: 2.137 MB / 334.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.000133/0.3671, allocations: 72.22 kB / 436.8 MB, free: 2.051 MB / 334.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.817e-06/0.3671, allocations: 3.938 kB / 436.8 MB, free: 2.047 MB / 334.1 MB Notification: Performance of matching and sorting (n=7) (initialization): time 0.00017/0.3673, allocations: 85.5 kB / 436.9 MB, free: 1.957 MB / 334.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.549e-05/0.3673, allocations: 4 kB / 436.9 MB, free: 1.953 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.995e-06/0.3673, allocations: 4.234 kB / 436.9 MB, free: 1.949 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.497e-05/0.3673, allocations: 0 / 436.9 MB, free: 1.949 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 9.262e-05/0.3674, allocations: 11.98 kB / 436.9 MB, free: 1.938 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.821e-06/0.3674, allocations: 0 / 436.9 MB, free: 1.938 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 5.006e-05/0.3674, allocations: 16.02 kB / 436.9 MB, free: 1.922 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.51e-05/0.3675, allocations: 11.98 kB / 436.9 MB, free: 1.91 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.0001497/0.3676, allocations: 129.7 kB / 437 MB, free: 1.773 MB / 334.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 8.504e-05/0.3677, allocations: 49.64 kB / 437.1 MB, free: 1.719 MB / 334.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 4.205e-05/0.3677, allocations: 12.34 kB / 437.1 MB, free: 1.699 MB / 334.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.258e-06/0.3677, allocations: 4 kB / 437.1 MB, free: 1.695 MB / 334.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.538e-06/0.3677, allocations: 0 / 437.1 MB, free: 1.695 MB / 334.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.615e-06/0.3677, allocations: 0 / 437.1 MB, free: 1.695 MB / 334.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001827/0.3679, allocations: 129.2 kB / 437.2 MB, free: 1.539 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.242e-06/0.3679, allocations: 3.938 kB / 437.2 MB, free: 1.535 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 5.666e-05/0.368, allocations: 15.92 kB / 437.2 MB, free: 1.52 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.094e-06/0.368, allocations: 4 kB / 437.2 MB, free: 1.516 MB / 334.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 9.758e-06/0.368, allocations: 4 kB / 437.2 MB, free: 1.512 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.643e-06/0.368, allocations: 0 / 437.2 MB, free: 1.512 MB / 334.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.122e-06/0.368, allocations: 0 / 437.2 MB, free: 1.512 MB / 334.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002261/0.3682, allocations: 189.1 kB / 437.4 MB, free: 1.305 MB / 334.1 MB Notification: Performance of postOpt removeConstants (simulation): time 4.741e-05/0.3683, allocations: 19.94 kB / 437.4 MB, free: 1.285 MB / 334.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.675e-05/0.3683, allocations: 0 / 437.4 MB, free: 1.285 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 7.153e-05/0.3684, allocations: 7.938 kB / 437.5 MB, free: 1.277 MB / 334.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.061e-05/0.3684, allocations: 0 / 437.5 MB, free: 1.277 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.029e-05/0.3684, allocations: 11.98 kB / 437.5 MB, free: 1.266 MB / 334.1 MB Notification: Performance of sorting global known variables: time 8.687e-05/0.3685, allocations: 107.2 kB / 437.6 MB, free: 1.16 MB / 334.1 MB Notification: Performance of sort global known variables: time 7.1e-08/0.3685, allocations: 0 / 437.6 MB, free: 1.16 MB / 334.1 MB Notification: Performance of remove unused functions: time 0.0002337/0.3687, allocations: 12 kB / 437.6 MB, free: 1.148 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.0001189/0.3688, allocations: 102 kB / 437.7 MB, free: 1.043 MB / 334.1 MB Notification: Performance of simCode: created initialization part: time 0.0001733/0.369, allocations: 47.92 kB / 437.7 MB, free: 0.9961 MB / 334.1 MB Notification: Performance of simCode: created event and clocks part: time 2.705e-06/0.369, allocations: 0 / 437.7 MB, free: 0.9961 MB / 334.1 MB Notification: Performance of simCode: created simulation system equations: time 4.507e-05/0.3691, allocations: 16.3 kB / 437.7 MB, free: 0.9805 MB / 334.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004035/0.3695, allocations: 42.56 kB / 437.8 MB, free: 0.9414 MB / 334.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0004484/0.3699, allocations: 218.9 kB / 438 MB, free: 0.6875 MB / 334.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001016/0.37, allocations: 87.38 kB / 438.1 MB, free: 0.5781 MB / 334.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.341e-05/0.3701, allocations: 11.44 kB / 438.1 MB, free: 0.5664 MB / 334.1 MB Notification: Performance of SimCode: time 2.9e-07/0.3701, allocations: 0 / 438.1 MB, free: 0.5664 MB / 334.1 MB Notification: Performance of Templates: time 0.002853/0.3729, allocations: 0.902 MB / 439 MB, free: 15.67 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/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.1.0/Modelica/Clocked/Examples/Elementary/RealSignals/AssignClockToSquareWaveHold/AssignClockToSquareWaveHold.csv","/var/lib/jenkins1/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: 6.929011119005736]