Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_trunk_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.002603/0.002603, allocations: 105.1 kB / 21.23 MB, free: 0.6562 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.003127/0.003127, allocations: 213.9 kB / 24.54 MB, free: 4.016 MB / 14.72 MB
"
[Timeout remaining time 180]
loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo", uses=false) [Timeout 180]
"Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.652/1.652, allocations: 230.3 MB / 258 MB, free: 8.262 MB / 206.1 MB
"
[Timeout remaining time 178]
Using package Modelica with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/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_trunk_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_trunk_Modelica.Clocked.Examples.Elementary.RealSignals.AssignClockToSquareWaveHold") [Timeout 660]
"Notification: Performance of FrontEnd - loaded program: time 0.001996/0.001996, allocations: 63.88 kB / 378.8 MB, free: 2.797 MB / 302.1 MB
Notification: Performance of FrontEnd - Absyn->SCode: time 0.3298/0.3318, allocations: 53.36 MB / 432.1 MB, free: 7.09 MB / 334.1 MB
Notification: Performance of NFInst.instantiate(Modelica.Clocked.Examples.Elementary.RealSignals.AssignClockToSquareWaveHold): time 0.003327/0.3352, allocations: 1.62 MB / 433.7 MB, free: 5.469 MB / 334.1 MB
Notification: Performance of NFInst.instExpressions: time 0.001112/0.3363, allocations: 0.5687 MB / 434.3 MB, free: 4.895 MB / 334.1 MB
Notification: Performance of NFInst.updateImplicitVariability: time 9.585e-05/0.3364, allocations: 7.938 kB / 434.3 MB, free: 4.887 MB / 334.1 MB
Notification: Performance of NFTyping.typeComponents: time 6.449e-05/0.3364, allocations: 7.922 kB / 434.3 MB, free: 4.879 MB / 334.1 MB
Notification: Performance of NFTyping.typeBindings: time 0.0001452/0.3366, allocations: 3.938 kB / 434.3 MB, free: 4.875 MB / 334.1 MB
Notification: Performance of NFTyping.typeClassSections: time 0.0003744/0.3369, allocations: 71.69 kB / 434.4 MB, free: 4.805 MB / 334.1 MB
Notification: Performance of NFFlatten.flatten: time 0.0001121/0.3371, allocations: 47.91 kB / 434.5 MB, free: 4.758 MB / 334.1 MB
Notification: Performance of NFFlatten.resolveConnections: time 9.976e-05/0.3372, allocations: 15.92 kB / 434.5 MB, free: 4.742 MB / 334.1 MB
Notification: Performance of NFEvalConstants.evaluate: time 0.0001268/0.3373, allocations: 27.86 kB / 434.5 MB, free: 4.715 MB / 334.1 MB
Notification: Performance of NFSimplifyModel.simplify: time 6.475e-05/0.3373, allocations: 23.92 kB / 434.5 MB, free: 4.691 MB / 334.1 MB
Notification: Performance of NFPackage.collectConstants: time 1.537e-05/0.3374, allocations: 7.938 kB / 434.5 MB, free: 4.684 MB / 334.1 MB
Notification: Performance of NFFlatten.collectFunctions: time 5.028e-05/0.3374, allocations: 11.98 kB / 434.5 MB, free: 4.672 MB / 334.1 MB
Notification: Performance of NFScalarize.scalarize: time 7.106e-05/0.3375, allocations: 11.98 kB / 434.5 MB, free: 4.66 MB / 334.1 MB
Notification: Performance of NFVerifyModel.verify: time 6.407e-05/0.3375, allocations: 35.73 kB / 434.6 MB, free: 4.625 MB / 334.1 MB
Notification: Performance of NFConvertDAE.convert: time 0.0001828/0.3377, allocations: 65.36 kB / 434.6 MB, free: 4.566 MB / 334.1 MB
Notification: Performance of FrontEnd - DAE generated: time 4.869e-06/0.3377, allocations: 0 / 434.6 MB, free: 4.566 MB / 334.1 MB
Notification: Performance of FrontEnd: time 1.343e-06/0.3377, allocations: 3.938 kB / 434.7 MB, free: 4.562 MB / 334.1 MB
Notification: Performance of Transformations before backend: time 6.842e-06/0.3377, allocations: 0 / 434.7 MB, free: 4.562 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.0005562/0.3383, allocations: 309.9 kB / 435 MB, free: 4.23 MB / 334.1 MB
Notification: Performance of prepare preOptimizeDAE: time 3.87e-05/0.3383, allocations: 16.03 kB / 435 MB, free: 4.215 MB / 334.1 MB
Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001921/0.3385, allocations: 20.88 kB / 435 MB, free: 4.195 MB / 334.1 MB
Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002938/0.3388, allocations: 145.1 kB / 435.1 MB, free: 4.031 MB / 334.1 MB
Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.21e-05/0.3388, allocations: 4.312 kB / 435.1 MB, free: 4.027 MB / 334.1 MB
Notification: Performance of preOpt expandDerOperator (simulation): time 1.333e-05/0.3389, allocations: 4.375 kB / 435.1 MB, free: 4.023 MB / 334.1 MB
Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003491/0.3392, allocations: 146.1 kB / 435.3 MB, free: 3.859 MB / 334.1 MB
Notification: Performance of preOpt findStateOrder (simulation): time 9.928e-06/0.3392, allocations: 3.938 kB / 435.3 MB, free: 3.855 MB / 334.1 MB
Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.011e-05/0.3392, allocations: 0 / 435.3 MB, free: 3.855 MB / 334.1 MB
Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.957e-06/0.3392, allocations: 0 / 435.3 MB, free: 3.855 MB / 334.1 MB
Notification: Performance of preOpt removeEqualRHS (simulation): time 9.477e-05/0.3393, allocations: 23.98 kB / 435.3 MB, free: 3.832 MB / 334.1 MB
Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0004209/0.3397, allocations: 257.6 kB / 435.6 MB, free: 3.531 MB / 334.1 MB
Notification: Performance of preOpt comSubExp (simulation): time 0.0002141/0.34, allocations: 83.7 kB / 435.6 MB, free: 3.422 MB / 334.1 MB
Notification: Performance of preOpt resolveLoops (simulation): time 8.467e-05/0.34, allocations: 42.69 kB / 435.7 MB, free: 3.371 MB / 334.1 MB
Notification: Performance of preOpt evalFunc (simulation): time 2.106e-05/0.3401, allocations: 0 / 435.7 MB, free: 3.371 MB / 334.1 MB
Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.236e-05/0.3401, allocations: 38.55 kB / 435.7 MB, free: 3.324 MB / 334.1 MB
Notification: Performance of pre-optimization done (n=6): time 9.32e-07/0.3401, allocations: 0 / 435.7 MB, free: 3.324 MB / 334.1 MB
Notification: Performance of matching and sorting (n=6): time 0.000303/0.3404, allocations: 93.5 kB / 435.8 MB, free: 3.227 MB / 334.1 MB
Notification: Performance of inlineWhenForInitialization (initialization): time 8.933e-05/0.3405, allocations: 111.1 kB / 435.9 MB, free: 3.094 MB / 334.1 MB
Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001682/0.3407, allocations: 141.8 kB / 436.1 MB, free: 2.945 MB / 334.1 MB
Notification: Performance of collectPreVariables (initialization): time 2.244e-05/0.3407, allocations: 25.7 kB / 436.1 MB, free: 2.914 MB / 334.1 MB
Notification: Performance of collectInitialEqns (initialization): time 6.236e-05/0.3407, allocations: 88.14 kB / 436.2 MB, free: 2.824 MB / 334.1 MB
Notification: Performance of collectInitialBindings (initialization): time 2.508e-05/0.3408, allocations: 11.94 kB / 436.2 MB, free: 2.812 MB / 334.1 MB
Notification: Performance of simplifyInitialFunctions (initialization): time 4.619e-05/0.3408, allocations: 21.72 kB / 436.2 MB, free: 2.785 MB / 334.1 MB
Notification: Performance of setup shared object (initialization): time 0.0001638/0.341, allocations: 322.8 kB / 436.5 MB, free: 2.461 MB / 334.1 MB
Notification: Performance of preBalanceInitialSystem (initialization): time 5.279e-05/0.341, allocations: 12 kB / 436.5 MB, free: 2.449 MB / 334.1 MB
Notification: Performance of partitionIndependentBlocks (initialization): time 7.58e-05/0.3411, allocations: 48.28 kB / 436.6 MB, free: 2.387 MB / 334.1 MB
Notification: Performance of analyzeInitialSystem (initialization): time 0.0001273/0.3412, allocations: 68.2 kB / 436.6 MB, free: 2.305 MB / 334.1 MB
Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.154e-06/0.3412, allocations: 0 / 436.6 MB, free: 2.305 MB / 334.1 MB
Notification: Performance of matching and sorting (n=7) (initialization): time 0.0001734/0.3414, allocations: 85.5 kB / 436.7 MB, free: 2.215 MB / 334.1 MB
Notification: Performance of prepare postOptimizeDAE: time 1.549e-05/0.3414, allocations: 4 kB / 436.7 MB, free: 2.211 MB / 334.1 MB
Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.971e-06/0.3414, allocations: 4.156 kB / 436.7 MB, free: 2.207 MB / 334.1 MB
Notification: Performance of postOpt tearingSystem (initialization): time 1.535e-05/0.3414, allocations: 0 / 436.7 MB, free: 2.207 MB / 334.1 MB
Notification: Performance of postOpt solveSimpleEquations (initialization): time 7.992e-05/0.3415, allocations: 11.94 kB / 436.7 MB, free: 2.195 MB / 334.1 MB
Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.543e-05/0.3415, allocations: 16.09 kB / 436.8 MB, free: 2.18 MB / 334.1 MB
Notification: Performance of postOpt simplifyAllExpressions (initialization): time 5.354e-05/0.3416, allocations: 11.89 kB / 436.8 MB, free: 2.168 MB / 334.1 MB
Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.091e-05/0.3416, allocations: 4 kB / 436.8 MB, free: 2.164 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.0001163/0.3417, allocations: 121.8 kB / 436.9 MB, free: 2.035 MB / 334.1 MB
Notification: Performance of postOpt lateInlineFunction (simulation): time 9.34e-05/0.3418, allocations: 49.64 kB / 436.9 MB, free: 1.98 MB / 334.1 MB
Notification: Performance of postOpt wrapFunctionCalls (simulation): time 5.023e-05/0.3419, allocations: 16.33 kB / 437 MB, free: 1.957 MB / 334.1 MB
Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.809e-06/0.3419, allocations: 4 kB / 437 MB, free: 1.953 MB / 334.1 MB
Notification: Performance of postOpt constantLinearSystem (simulation): time 4.668e-06/0.3419, allocations: 0 / 437 MB, free: 1.953 MB / 334.1 MB
Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.697e-06/0.3419, allocations: 7.875 kB / 437 MB, free: 1.945 MB / 334.1 MB
Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002131/0.3421, allocations: 160.6 kB / 437.1 MB, free: 1.746 MB / 334.1 MB
Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.362e-06/0.3421, allocations: 0 / 437.1 MB, free: 1.746 MB / 334.1 MB
Notification: Performance of postOpt solveSimpleEquations (simulation): time 5.613e-05/0.3421, allocations: 11.98 kB / 437.1 MB, free: 1.734 MB / 334.1 MB
Notification: Performance of postOpt tearingSystem (simulation): time 4.679e-06/0.3421, allocations: 4 kB / 437.1 MB, free: 1.73 MB / 334.1 MB
Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.995e-06/0.3422, allocations: 0 / 437.1 MB, free: 1.73 MB / 334.1 MB
Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.713e-06/0.3422, allocations: 0 / 437.1 MB, free: 1.73 MB / 334.1 MB
Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.859e-06/0.3422, allocations: 8.281 kB / 437.2 MB, free: 1.723 MB / 334.1 MB
Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002342/0.3424, allocations: 193.1 kB / 437.3 MB, free: 1.512 MB / 334.1 MB
Notification: Performance of postOpt removeConstants (simulation): time 4.538e-05/0.3424, allocations: 19.92 kB / 437.4 MB, free: 1.492 MB / 334.1 MB
Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.432e-05/0.3425, allocations: 4 kB / 437.4 MB, free: 1.488 MB / 334.1 MB
Notification: Performance of postOpt simplifyAllExpressions (simulation): time 7.719e-05/0.3425, allocations: 7.984 kB / 437.4 MB, free: 1.48 MB / 334.1 MB
Notification: Performance of postOpt findZeroCrossings (simulation): time 2.976e-05/0.3426, allocations: 0 / 437.4 MB, free: 1.48 MB / 334.1 MB
Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.756e-06/0.3426, allocations: 4 kB / 437.4 MB, free: 1.477 MB / 334.1 MB
Notification: Performance of sorting global known variables: time 9.819e-05/0.3427, allocations: 110 kB / 437.5 MB, free: 1.371 MB / 334.1 MB
Notification: Performance of sort global known variables: time 8e-08/0.3427, allocations: 0 / 437.5 MB, free: 1.371 MB / 334.1 MB
Notification: Performance of remove unused functions: time 0.0002498/0.3429, allocations: 16 kB / 437.5 MB, free: 1.355 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.0001093/0.343, allocations: 95.25 kB / 437.6 MB, free: 1.254 MB / 334.1 MB
Notification: Performance of simCode: created initialization part: time 0.0001948/0.3432, allocations: 51.84 kB / 437.6 MB, free: 1.203 MB / 334.1 MB
Notification: Performance of simCode: created event and clocks part: time 1.943e-06/0.3432, allocations: 0 / 437.6 MB, free: 1.203 MB / 334.1 MB
Notification: Performance of simCode: created simulation system equations: time 5.047e-05/0.3433, allocations: 15.92 kB / 437.7 MB, free: 1.188 MB / 334.1 MB
Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003555/0.3436, allocations: 32.39 kB / 437.7 MB, free: 1.156 MB / 334.1 MB
Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0004071/0.3441, allocations: 193.2 kB / 437.9 MB, free: 0.9336 MB / 334.1 MB
Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003419/0.3444, allocations: 0.6962 MB / 438.6 MB, free: 216 kB / 334.1 MB
Notification: Performance of simCode: alias equations: time 3.796e-05/0.3444, allocations: 11.77 kB / 438.6 MB, free: 204 kB / 334.1 MB
Notification: Performance of simCode: all other stuff during SimCode phase: time 3.637e-05/0.3445, allocations: 11.44 kB / 438.6 MB, free: 192 kB / 334.1 MB
Notification: Performance of SimCode: time 3.51e-07/0.3445, allocations: 4 kB / 438.6 MB, free: 188 kB / 334.1 MB
Notification: Performance of Templates: time 0.003554/0.348, allocations: 0.6677 MB / 439.3 MB, free: 15.53 MB / 350.1 MB
"
[Timeout remaining time 660]
make -j1 -f Modelica_trunk_Modelica.Clocked.Examples.Elementary.RealSignals.AssignClockToSquareWaveHold.makefile [Timeout 660]
(rm -f Modelica_trunk_Modelica.Clocked.Examples.Elementary.RealSignals.AssignClockToSquareWaveHold.pipe ; mkfifo Modelica_trunk_Modelica.Clocked.Examples.Elementary.RealSignals.AssignClockToSquareWaveHold.pipe ; head -c 1048576 < Modelica_trunk_Modelica.Clocked.Examples.Elementary.RealSignals.AssignClockToSquareWaveHold.pipe >> ../files/Modelica_trunk_Modelica.Clocked.Examples.Elementary.RealSignals.AssignClockToSquareWaveHold.sim & ./Modelica_trunk_Modelica.Clocked.Examples.Elementary.RealSignals.AssignClockToSquareWaveHold  -abortSlowSimulation -alarm=480  -emit_protected -lv LOG_STATS > Modelica_trunk_Modelica.Clocked.Examples.Elementary.RealSignals.AssignClockToSquareWaveHold.pipe 2>&1) [Timeout 480]
diffSimulationResults("Modelica_trunk_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_trunk_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.317584111355245]