Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.1.0-beta.om_Modelica.Clocked.Examples.Elementary.RealSignals.AssignClockToSquareWaveHold.conf.json
loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo", uses=false) [Timeout 180]
"Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.001376/0.001376, allocations: 106.5 kB / 21.22 MB, free: 0.6797 MB / 14.72 MB
"
[Timeout remaining time 180]
loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo", uses=false) [Timeout 180]
"Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001511/0.001511, allocations: 209.3 kB / 24.54 MB, free: 4.055 MB / 14.72 MB
"
[Timeout remaining time 180]
loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0-beta.om/package.mo", uses=false) [Timeout 180]
"Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0-beta.om/package.mo): time 1.559/1.559, allocations: 230.6 MB / 258.3 MB, free: 8.086 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-beta.om/package.mo)
Using package Complex with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo)
Using package ModelicaServices with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/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-beta.om_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-beta.om_Modelica.Clocked.Examples.Elementary.RealSignals.AssignClockToSquareWaveHold") [Timeout 660]
"Warning: Requested package Modelica of version trunk, but this package was already loaded with version 4.1.0. OpenModelica cannot reason about compatibility between the two packages since they are not semantic versions.
Warning: Requested package Complex of version 4.1.0, but this package was already loaded with version trunk. OpenModelica cannot reason about compatibility between the two packages since they are not semantic versions.
Warning: Requested package ModelicaServices of version 4.1.0, but this package was already loaded with version trunk. OpenModelica cannot reason about compatibility between the two packages since they are not semantic versions.
Notification: Performance of FrontEnd - loaded program: time 0.002061/0.002061, allocations: 64.77 kB / 379 MB, free: 2.664 MB / 302.1 MB
Notification: Performance of FrontEnd - Absyn->SCode: time 0.3615/0.3635, allocations: 53.37 MB / 432.4 MB, free: 6.98 MB / 334.1 MB
Notification: Performance of NFInst.instantiate(Modelica.Clocked.Examples.Elementary.RealSignals.AssignClockToSquareWaveHold): time 0.003511/0.367, allocations: 1.625 MB / 434 MB, free: 5.352 MB / 334.1 MB
Notification: Performance of NFInst.instExpressions: time 0.00119/0.3682, allocations: 0.5648 MB / 434.6 MB, free: 4.781 MB / 334.1 MB
Notification: Performance of NFInst.updateImplicitVariability: time 9.312e-05/0.3683, allocations: 0 / 434.6 MB, free: 4.781 MB / 334.1 MB
Notification: Performance of NFTyping.typeComponents: time 5.969e-05/0.3684, allocations: 7.922 kB / 434.6 MB, free: 4.773 MB / 334.1 MB
Notification: Performance of NFTyping.typeBindings: time 0.0001449/0.3685, allocations: 15.88 kB / 434.6 MB, free: 4.758 MB / 334.1 MB
Notification: Performance of NFTyping.typeClassSections: time 0.0003585/0.3689, allocations: 71.73 kB / 434.7 MB, free: 4.688 MB / 334.1 MB
Notification: Performance of NFFlatten.flatten: time 0.0001453/0.369, allocations: 55.72 kB / 434.8 MB, free: 4.633 MB / 334.1 MB
Notification: Performance of NFFlatten.resolveConnections: time 0.000124/0.3691, allocations: 8 kB / 434.8 MB, free: 4.625 MB / 334.1 MB
Notification: Performance of NFEvalConstants.evaluate: time 0.0001494/0.3693, allocations: 39.78 kB / 434.8 MB, free: 4.586 MB / 334.1 MB
Notification: Performance of NFSimplifyModel.simplify: time 6.724e-05/0.3694, allocations: 19.92 kB / 434.8 MB, free: 4.566 MB / 334.1 MB
Notification: Performance of NFPackage.collectConstants: time 1.626e-05/0.3694, allocations: 4 kB / 434.8 MB, free: 4.562 MB / 334.1 MB
Notification: Performance of NFFlatten.collectFunctions: time 4.581e-05/0.3694, allocations: 11.94 kB / 434.8 MB, free: 4.551 MB / 334.1 MB
Notification: Performance of NFScalarize.scalarize: time 5.084e-05/0.3695, allocations: 11.98 kB / 434.8 MB, free: 4.539 MB / 334.1 MB
Notification: Performance of NFVerifyModel.verify: time 5.248e-05/0.3695, allocations: 35.73 kB / 434.9 MB, free: 4.504 MB / 334.1 MB
Notification: Performance of NFConvertDAE.convert: time 0.0001663/0.3697, allocations: 65.36 kB / 434.9 MB, free: 4.445 MB / 334.1 MB
Notification: Performance of FrontEnd - DAE generated: time 1.025e-05/0.3697, allocations: 4 kB / 434.9 MB, free: 4.441 MB / 334.1 MB
Notification: Performance of FrontEnd: time 1.773e-06/0.3697, allocations: 0 / 434.9 MB, free: 4.441 MB / 334.1 MB
Notification: Performance of Transformations before backend: time 5.48e-06/0.3697, allocations: 4 kB / 435 MB, free: 4.438 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.0005567/0.3703, allocations: 309.9 kB / 435.3 MB, free: 4.105 MB / 334.1 MB
Notification: Performance of prepare preOptimizeDAE: time 4.051e-05/0.3703, allocations: 8.031 kB / 435.3 MB, free: 4.098 MB / 334.1 MB
Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001567/0.3705, allocations: 20.88 kB / 435.3 MB, free: 4.078 MB / 334.1 MB
Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002954/0.3708, allocations: 142.3 kB / 435.4 MB, free: 3.914 MB / 334.1 MB
Notification: Performance of preOpt simplifyIfEquations (simulation): time 9.438e-06/0.3708, allocations: 4.375 kB / 435.4 MB, free: 3.91 MB / 334.1 MB
Notification: Performance of preOpt expandDerOperator (simulation): time 1.635e-05/0.3708, allocations: 4.375 kB / 435.4 MB, free: 3.906 MB / 334.1 MB
Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003505/0.3711, allocations: 134.2 kB / 435.6 MB, free: 3.754 MB / 334.1 MB
Notification: Performance of preOpt findStateOrder (simulation): time 1.53e-05/0.3712, allocations: 4 kB / 435.6 MB, free: 3.75 MB / 334.1 MB
Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.149e-05/0.3712, allocations: 3.938 kB / 435.6 MB, free: 3.746 MB / 334.1 MB
Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.009e-05/0.3712, allocations: 4 kB / 435.6 MB, free: 3.742 MB / 334.1 MB
Notification: Performance of preOpt removeEqualRHS (simulation): time 9.654e-05/0.3713, allocations: 23.92 kB / 435.6 MB, free: 3.719 MB / 334.1 MB
Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0004572/0.3717, allocations: 253.7 kB / 435.8 MB, free: 3.422 MB / 334.1 MB
Notification: Performance of preOpt comSubExp (simulation): time 0.0002085/0.3719, allocations: 83.7 kB / 435.9 MB, free: 3.312 MB / 334.1 MB
Notification: Performance of preOpt resolveLoops (simulation): time 0.0001043/0.372, allocations: 38.62 kB / 436 MB, free: 3.266 MB / 334.1 MB
Notification: Performance of preOpt evalFunc (simulation): time 2.673e-05/0.3721, allocations: 4 kB / 436 MB, free: 3.262 MB / 334.1 MB
Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.489e-05/0.3721, allocations: 46.53 kB / 436 MB, free: 3.207 MB / 334.1 MB
Notification: Performance of pre-optimization done (n=6): time 1.253e-06/0.3721, allocations: 0 / 436 MB, free: 3.207 MB / 334.1 MB
Notification: Performance of matching and sorting (n=6): time 0.0003014/0.3724, allocations: 89.56 kB / 436.1 MB, free: 3.113 MB / 334.1 MB
Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001075/0.3725, allocations: 110.8 kB / 436.2 MB, free: 2.98 MB / 334.1 MB
Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001469/0.3727, allocations: 144.4 kB / 436.4 MB, free: 2.832 MB / 334.1 MB
Notification: Performance of collectPreVariables (initialization): time 1.995e-05/0.3727, allocations: 29.95 kB / 436.4 MB, free: 2.797 MB / 334.1 MB
Notification: Performance of collectInitialEqns (initialization): time 6.616e-05/0.3728, allocations: 88.14 kB / 436.5 MB, free: 2.707 MB / 334.1 MB
Notification: Performance of collectInitialBindings (initialization): time 2.561e-05/0.3728, allocations: 11.94 kB / 436.5 MB, free: 2.695 MB / 334.1 MB
Notification: Performance of simplifyInitialFunctions (initialization): time 3.823e-05/0.3728, allocations: 17.72 kB / 436.5 MB, free: 2.672 MB / 334.1 MB
Notification: Performance of setup shared object (initialization): time 0.0002319/0.3731, allocations: 326.8 kB / 436.8 MB, free: 2.344 MB / 334.1 MB
Notification: Performance of preBalanceInitialSystem (initialization): time 5.081e-05/0.3731, allocations: 12 kB / 436.8 MB, free: 2.332 MB / 334.1 MB
Notification: Performance of partitionIndependentBlocks (initialization): time 7.406e-05/0.3732, allocations: 44.28 kB / 436.9 MB, free: 2.273 MB / 334.1 MB
Notification: Performance of analyzeInitialSystem (initialization): time 0.0001228/0.3733, allocations: 60.22 kB / 436.9 MB, free: 2.199 MB / 334.1 MB
Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.449e-06/0.3733, allocations: 3.984 kB / 436.9 MB, free: 2.195 MB / 334.1 MB
Notification: Performance of matching and sorting (n=7) (initialization): time 0.0001712/0.3735, allocations: 97.44 kB / 437 MB, free: 2.094 MB / 334.1 MB
Notification: Performance of prepare postOptimizeDAE: time 2.405e-05/0.3735, allocations: 8 kB / 437 MB, free: 2.086 MB / 334.1 MB
Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.48e-06/0.3735, allocations: 0 / 437 MB, free: 2.086 MB / 334.1 MB
Notification: Performance of postOpt tearingSystem (initialization): time 2.229e-05/0.3735, allocations: 0 / 437 MB, free: 2.086 MB / 334.1 MB
Notification: Performance of postOpt solveSimpleEquations (initialization): time 7.375e-05/0.3736, allocations: 8 kB / 437 MB, free: 2.078 MB / 334.1 MB
Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 9.017e-06/0.3736, allocations: 7.984 kB / 437.1 MB, free: 2.07 MB / 334.1 MB
Notification: Performance of postOpt simplifyAllExpressions (initialization): time 5.036e-05/0.3737, allocations: 11.89 kB / 437.1 MB, free: 2.059 MB / 334.1 MB
Notification: Performance of postOpt collapseArrayExpressions (initialization): time 9.087e-06/0.3737, allocations: 0 / 437.1 MB, free: 2.059 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.000118/0.3738, allocations: 133.8 kB / 437.2 MB, free: 1.918 MB / 334.1 MB
Notification: Performance of postOpt lateInlineFunction (simulation): time 9.131e-05/0.3739, allocations: 53.64 kB / 437.2 MB, free: 1.859 MB / 334.1 MB
Notification: Performance of postOpt wrapFunctionCalls (simulation): time 4.498e-05/0.3739, allocations: 16.33 kB / 437.3 MB, free: 1.836 MB / 334.1 MB
Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.024e-06/0.3739, allocations: 0 / 437.3 MB, free: 1.836 MB / 334.1 MB
Notification: Performance of postOpt constantLinearSystem (simulation): time 4.469e-06/0.3739, allocations: 0 / 437.3 MB, free: 1.836 MB / 334.1 MB
Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.487e-06/0.3739, allocations: 0 / 437.3 MB, free: 1.836 MB / 334.1 MB
Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002073/0.3741, allocations: 144.7 kB / 437.4 MB, free: 1.652 MB / 334.1 MB
Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.573e-06/0.3741, allocations: 7.938 kB / 437.4 MB, free: 1.645 MB / 334.1 MB
Notification: Performance of postOpt solveSimpleEquations (simulation): time 5.669e-05/0.3742, allocations: 11.98 kB / 437.4 MB, free: 1.633 MB / 334.1 MB
Notification: Performance of postOpt tearingSystem (simulation): time 3.005e-06/0.3742, allocations: 288 / 437.4 MB, free: 1.633 MB / 334.1 MB
Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.048e-05/0.3742, allocations: 8 kB / 437.4 MB, free: 1.625 MB / 334.1 MB
Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 6.101e-06/0.3742, allocations: 11.94 kB / 437.4 MB, free: 1.613 MB / 334.1 MB
Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 9.02e-07/0.3742, allocations: 0 / 437.4 MB, free: 1.613 MB / 334.1 MB
Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002247/0.3744, allocations: 185.1 kB / 437.6 MB, free: 1.41 MB / 334.1 MB
Notification: Performance of postOpt removeConstants (simulation): time 4.35e-05/0.3745, allocations: 19.94 kB / 437.6 MB, free: 1.391 MB / 334.1 MB
Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.757e-05/0.3745, allocations: 0 / 437.6 MB, free: 1.391 MB / 334.1 MB
Notification: Performance of postOpt simplifyAllExpressions (simulation): time 7.48e-05/0.3746, allocations: 11.98 kB / 437.7 MB, free: 1.379 MB / 334.1 MB
Notification: Performance of postOpt findZeroCrossings (simulation): time 3.254e-05/0.3746, allocations: 0 / 437.7 MB, free: 1.379 MB / 334.1 MB
Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.767e-06/0.3746, allocations: 8 kB / 437.7 MB, free: 1.371 MB / 334.1 MB
Notification: Performance of sorting global known variables: time 8.92e-05/0.3747, allocations: 107.2 kB / 437.8 MB, free: 1.266 MB / 334.1 MB
Notification: Performance of sort global known variables: time 6e-08/0.3747, allocations: 0 / 437.8 MB, free: 1.266 MB / 334.1 MB
Notification: Performance of remove unused functions: time 0.0002328/0.3749, allocations: 11.94 kB / 437.8 MB, free: 1.254 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.3751, allocations: 99.19 kB / 437.9 MB, free: 1.148 MB / 334.1 MB
Notification: Performance of simCode: created initialization part: time 0.0002001/0.3753, allocations: 59.84 kB / 437.9 MB, free: 1.09 MB / 334.1 MB
Notification: Performance of simCode: created event and clocks part: time 2.043e-06/0.3753, allocations: 0 / 437.9 MB, free: 1.09 MB / 334.1 MB
Notification: Performance of simCode: created simulation system equations: time 4.626e-05/0.3753, allocations: 12 kB / 437.9 MB, free: 1.078 MB / 334.1 MB
Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004032/0.3757, allocations: 37.38 kB / 438 MB, free: 1.043 MB / 334.1 MB
Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0004397/0.3762, allocations: 193.6 kB / 438.2 MB, free: 0.8203 MB / 334.1 MB
Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004637/0.3766, allocations: 0.7002 MB / 438.9 MB, free: 96 kB / 334.1 MB
Notification: Performance of simCode: alias equations: time 4.182e-05/0.3767, allocations: 7.766 kB / 438.9 MB, free: 88 kB / 334.1 MB
Notification: Performance of simCode: all other stuff during SimCode phase: time 3.843e-05/0.3767, allocations: 11.44 kB / 438.9 MB, free: 76 kB / 334.1 MB
Notification: Performance of SimCode: time 4.8e-07/0.3767, allocations: 0 / 438.9 MB, free: 76 kB / 334.1 MB
Notification: Performance of Templates: time 0.004277/0.381, allocations: 0.682 MB / 439.6 MB, free: 15.43 MB / 350.1 MB
"
[Timeout remaining time 660]
make -j1 -f Modelica_4.1.0-beta.om_Modelica.Clocked.Examples.Elementary.RealSignals.AssignClockToSquareWaveHold.makefile [Timeout 660]
(rm -f Modelica_4.1.0-beta.om_Modelica.Clocked.Examples.Elementary.RealSignals.AssignClockToSquareWaveHold.pipe ; mkfifo Modelica_4.1.0-beta.om_Modelica.Clocked.Examples.Elementary.RealSignals.AssignClockToSquareWaveHold.pipe ; head -c 1048576 < Modelica_4.1.0-beta.om_Modelica.Clocked.Examples.Elementary.RealSignals.AssignClockToSquareWaveHold.pipe >> ../files/Modelica_4.1.0-beta.om_Modelica.Clocked.Examples.Elementary.RealSignals.AssignClockToSquareWaveHold.sim & ./Modelica_4.1.0-beta.om_Modelica.Clocked.Examples.Elementary.RealSignals.AssignClockToSquareWaveHold  -abortSlowSimulation -alarm=480  -emit_protected -lv LOG_STATS > Modelica_4.1.0-beta.om_Modelica.Clocked.Examples.Elementary.RealSignals.AssignClockToSquareWaveHold.pipe 2>&1) [Timeout 480]
diffSimulationResults("Modelica_4.1.0-beta.om_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-beta.om_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.9286825731396675]