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.001434/0.001434, allocations: 105.5 kB / 20.43 MB, free: 1.473 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.001487/0.001487, allocations: 188.2 kB / 23.72 MB, free: 4.711 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.537/1.537, allocations: 225.6 MB / 252.5 MB, free: 13.03 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.001612/0.001612, allocations: 48.02 kB / 370.9 MB, free: 9.348 MB / 302.1 MB
Notification: Performance of FrontEnd - Absyn->SCode: time 0.3002/0.3018, allocations: 52.18 MB / 423.1 MB, free: 14.83 MB / 334.1 MB
Notification: Performance of NFInst.instantiate(Modelica.Clocked.Examples.Elementary.RealSignals.AssignClockToSquareWaveHold): time 0.003942/0.3057, allocations: 1.619 MB / 424.7 MB, free: 13.21 MB / 334.1 MB
Notification: Performance of NFInst.instExpressions: time 0.00116/0.3069, allocations: 0.4908 MB / 425.2 MB, free: 12.71 MB / 334.1 MB
Notification: Performance of NFInst.updateImplicitVariability: time 0.000107/0.307, allocations: 4 kB / 425.2 MB, free: 12.71 MB / 334.1 MB
Notification: Performance of NFTyping.typeComponents: time 5.977e-05/0.3071, allocations: 7.875 kB / 425.2 MB, free: 12.7 MB / 334.1 MB
Notification: Performance of NFTyping.typeBindings: time 0.0001697/0.3072, allocations: 19.91 kB / 425.3 MB, free: 12.68 MB / 334.1 MB
Notification: Performance of NFTyping.typeClassSections: time 0.0003353/0.3076, allocations: 51.83 kB / 425.3 MB, free: 12.63 MB / 334.1 MB
Notification: Performance of NFFlatten.flatten: time 0.0001382/0.3077, allocations: 51.78 kB / 425.4 MB, free: 12.58 MB / 334.1 MB
Notification: Performance of NFFlatten.resolveConnections: time 0.0001136/0.3078, allocations: 8.188 kB / 425.4 MB, free: 12.57 MB / 334.1 MB
Notification: Performance of NFEvalConstants.evaluate: time 8.655e-05/0.3079, allocations: 23.91 kB / 425.4 MB, free: 12.55 MB / 334.1 MB
Notification: Performance of NFSimplifyModel.simplify: time 7.347e-05/0.308, allocations: 27.86 kB / 425.4 MB, free: 12.52 MB / 334.1 MB
Notification: Performance of NFPackage.collectConstants: time 2.03e-05/0.308, allocations: 4 kB / 425.4 MB, free: 12.52 MB / 334.1 MB
Notification: Performance of NFFlatten.collectFunctions: time 1.574e-05/0.308, allocations: 4 kB / 425.4 MB, free: 12.51 MB / 334.1 MB
Notification: Performance of NFScalarize.scalarize: time 6.029e-05/0.3081, allocations: 15.92 kB / 425.4 MB, free: 12.5 MB / 334.1 MB
Notification: Performance of NFVerifyModel.verify: time 6.018e-05/0.3081, allocations: 23.81 kB / 425.5 MB, free: 12.47 MB / 334.1 MB
Notification: Performance of NFConvertDAE.convert: time 0.0001505/0.3083, allocations: 73.14 kB / 425.5 MB, free: 12.4 MB / 334.1 MB
Notification: Performance of FrontEnd - DAE generated: time 4.138e-06/0.3083, allocations: 0 / 425.5 MB, free: 12.4 MB / 334.1 MB
Notification: Performance of FrontEnd: time 1.703e-06/0.3083, allocations: 0 / 425.5 MB, free: 12.4 MB / 334.1 MB
Notification: Performance of Transformations before backend: time 5.29e-06/0.3083, allocations: 0 / 425.5 MB, free: 12.4 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.0005412/0.3088, allocations: 306 kB / 425.8 MB, free: 12.07 MB / 334.1 MB
Notification: Performance of prepare preOptimizeDAE: time 4.799e-05/0.3089, allocations: 12.03 kB / 425.9 MB, free: 12.06 MB / 334.1 MB
Notification: Performance of preOpt normalInlineFunction (simulation): time 4.605e-05/0.3089, allocations: 8.891 kB / 425.9 MB, free: 12.05 MB / 334.1 MB
Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002795/0.3092, allocations: 138.4 kB / 426 MB, free: 11.89 MB / 334.1 MB
Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.517e-05/0.3092, allocations: 8.359 kB / 426 MB, free: 11.89 MB / 334.1 MB
Notification: Performance of preOpt expandDerOperator (simulation): time 1.684e-05/0.3092, allocations: 8.375 kB / 426 MB, free: 11.88 MB / 334.1 MB
Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003479/0.3096, allocations: 141.8 kB / 426.2 MB, free: 11.72 MB / 334.1 MB
Notification: Performance of preOpt findStateOrder (simulation): time 1.265e-05/0.3096, allocations: 0 / 426.2 MB, free: 11.72 MB / 334.1 MB
Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.412e-05/0.3096, allocations: 8 kB / 426.2 MB, free: 11.71 MB / 334.1 MB
Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.36e-06/0.3096, allocations: 0 / 426.2 MB, free: 11.71 MB / 334.1 MB
Notification: Performance of preOpt removeEqualRHS (simulation): time 9.628e-05/0.3097, allocations: 27.92 kB / 426.2 MB, free: 11.68 MB / 334.1 MB
Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0004606/0.3102, allocations: 253.6 kB / 426.4 MB, free: 11.39 MB / 334.1 MB
Notification: Performance of preOpt comSubExp (simulation): time 0.0002462/0.3104, allocations: 79.72 kB / 426.5 MB, free: 11.28 MB / 334.1 MB
Notification: Performance of preOpt resolveLoops (simulation): time 9.149e-05/0.3105, allocations: 38.69 kB / 426.5 MB, free: 11.23 MB / 334.1 MB
Notification: Performance of preOpt evalFunc (simulation): time 2.524e-05/0.3105, allocations: 4 kB / 426.6 MB, free: 11.23 MB / 334.1 MB
Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.63e-05/0.3106, allocations: 38.5 kB / 426.6 MB, free: 11.18 MB / 334.1 MB
Notification: Performance of pre-optimization done (n=6): time 1.212e-06/0.3106, allocations: 0 / 426.6 MB, free: 11.18 MB / 334.1 MB
Notification: Performance of matching and sorting (n=6): time 0.0003383/0.3109, allocations: 93.55 kB / 426.7 MB, free: 11.09 MB / 334.1 MB
Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001099/0.311, allocations: 110.8 kB / 426.8 MB, free: 10.95 MB / 334.1 MB
Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001941/0.3112, allocations: 140.7 kB / 426.9 MB, free: 10.8 MB / 334.1 MB
Notification: Performance of collectPreVariables (initialization): time 2.251e-05/0.3112, allocations: 25.7 kB / 427 MB, free: 10.77 MB / 334.1 MB
Notification: Performance of collectInitialEqns (initialization): time 7.243e-05/0.3113, allocations: 92.39 kB / 427 MB, free: 10.68 MB / 334.1 MB
Notification: Performance of collectInitialBindings (initialization): time 2.924e-05/0.3113, allocations: 11.94 kB / 427.1 MB, free: 10.67 MB / 334.1 MB
Notification: Performance of simplifyInitialFunctions (initialization): time 4.865e-05/0.3114, allocations: 29.66 kB / 427.1 MB, free: 10.63 MB / 334.1 MB
Notification: Performance of setup shared object (initialization): time 0.0001862/0.3116, allocations: 322.7 kB / 427.4 MB, free: 10.31 MB / 334.1 MB
Notification: Performance of preBalanceInitialSystem (initialization): time 5.54e-05/0.3116, allocations: 11.98 kB / 427.4 MB, free: 10.3 MB / 334.1 MB
Notification: Performance of partitionIndependentBlocks (initialization): time 7.479e-05/0.3117, allocations: 52.22 kB / 427.5 MB, free: 10.23 MB / 334.1 MB
Notification: Performance of analyzeInitialSystem (initialization): time 0.0001304/0.3118, allocations: 64.22 kB / 427.5 MB, free: 10.15 MB / 334.1 MB
Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.57e-05/0.3119, allocations: 4 kB / 427.5 MB, free: 10.15 MB / 334.1 MB
Notification: Performance of matching and sorting (n=7) (initialization): time 0.0001851/0.312, allocations: 81.64 kB / 427.6 MB, free: 10.06 MB / 334.1 MB
Notification: Performance of prepare postOptimizeDAE: time 1.929e-05/0.3121, allocations: 4 kB / 427.6 MB, free: 10.06 MB / 334.1 MB
Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.977e-06/0.3121, allocations: 4 kB / 427.6 MB, free: 10.05 MB / 334.1 MB
Notification: Performance of postOpt tearingSystem (initialization): time 1.655e-05/0.3121, allocations: 0 / 427.6 MB, free: 10.05 MB / 334.1 MB
Notification: Performance of postOpt solveSimpleEquations (initialization): time 8.573e-05/0.3122, allocations: 15.92 kB / 427.6 MB, free: 10.04 MB / 334.1 MB
Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.634e-06/0.3122, allocations: 0 / 427.6 MB, free: 10.04 MB / 334.1 MB
Notification: Performance of postOpt simplifyAllExpressions (initialization): time 5.591e-05/0.3122, allocations: 15.89 kB / 427.6 MB, free: 10.02 MB / 334.1 MB
Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.232e-05/0.3122, allocations: 4 kB / 427.7 MB, free: 10.02 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.0001256/0.3124, allocations: 122 kB / 427.8 MB, free: 9.891 MB / 334.1 MB
Notification: Performance of postOpt lateInlineFunction (simulation): time 9.696e-05/0.3125, allocations: 65.66 kB / 427.8 MB, free: 9.82 MB / 334.1 MB
Notification: Performance of postOpt wrapFunctionCalls (simulation): time 4.484e-05/0.3125, allocations: 12.34 kB / 427.8 MB, free: 9.801 MB / 334.1 MB
Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.074e-06/0.3125, allocations: 0 / 427.8 MB, free: 9.801 MB / 334.1 MB
Notification: Performance of postOpt constantLinearSystem (simulation): time 8.366e-06/0.3125, allocations: 4 kB / 427.9 MB, free: 9.797 MB / 334.1 MB
Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.557e-06/0.3125, allocations: 0 / 427.9 MB, free: 9.797 MB / 334.1 MB
Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002124/0.3127, allocations: 152.7 kB / 428 MB, free: 9.605 MB / 334.1 MB
Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.172e-06/0.3127, allocations: 0 / 428 MB, free: 9.605 MB / 334.1 MB
Notification: Performance of postOpt solveSimpleEquations (simulation): time 6.343e-05/0.3128, allocations: 11.98 kB / 428 MB, free: 9.594 MB / 334.1 MB
Notification: Performance of postOpt tearingSystem (simulation): time 1.783e-06/0.3128, allocations: 0 / 428 MB, free: 9.594 MB / 334.1 MB
Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.068e-05/0.3128, allocations: 4 kB / 428 MB, free: 9.59 MB / 334.1 MB
Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.463e-06/0.3128, allocations: 4 kB / 428 MB, free: 9.586 MB / 334.1 MB
Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.032e-06/0.3128, allocations: 0 / 428 MB, free: 9.586 MB / 334.1 MB
Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002367/0.3131, allocations: 189.1 kB / 428.2 MB, free: 9.379 MB / 334.1 MB
Notification: Performance of postOpt removeConstants (simulation): time 4.723e-05/0.3131, allocations: 19.88 kB / 428.2 MB, free: 9.359 MB / 334.1 MB
Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.195e-05/0.3131, allocations: 4 kB / 428.2 MB, free: 9.355 MB / 334.1 MB
Notification: Performance of postOpt simplifyAllExpressions (simulation): time 7.703e-05/0.3132, allocations: 8 kB / 428.2 MB, free: 9.348 MB / 334.1 MB
Notification: Performance of postOpt findZeroCrossings (simulation): time 3.831e-05/0.3132, allocations: 7.984 kB / 428.2 MB, free: 9.34 MB / 334.1 MB
Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.879e-06/0.3132, allocations: 0 / 428.2 MB, free: 9.34 MB / 334.1 MB
Notification: Performance of sorting global known variables: time 9.435e-05/0.3133, allocations: 103.3 kB / 428.3 MB, free: 9.238 MB / 334.1 MB
Notification: Performance of sort global known variables: time 7.1e-08/0.3133, allocations: 0 / 428.3 MB, free: 9.238 MB / 334.1 MB
Notification: Performance of remove unused functions: time 0.0002504/0.3136, allocations: 8 kB / 428.4 MB, free: 9.23 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.0001316/0.3137, allocations: 111.2 kB / 428.5 MB, free: 9.113 MB / 334.1 MB
Notification: Performance of simCode: created initialization part: time 0.0001866/0.3139, allocations: 47.98 kB / 428.5 MB, free: 9.066 MB / 334.1 MB
Notification: Performance of simCode: created event and clocks part: time 2.104e-06/0.3139, allocations: 0 / 428.5 MB, free: 9.066 MB / 334.1 MB
Notification: Performance of simCode: created simulation system equations: time 4.653e-05/0.314, allocations: 19.86 kB / 428.5 MB, free: 9.047 MB / 334.1 MB
Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003581/0.3143, allocations: 34.28 kB / 428.6 MB, free: 9.02 MB / 334.1 MB
Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0004239/0.3147, allocations: 181.2 kB / 428.7 MB, free: 8.809 MB / 334.1 MB
Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003935/0.3151, allocations: 0.7042 MB / 429.4 MB, free: 8.078 MB / 334.1 MB
Notification: Performance of simCode: alias equations: time 3.967e-05/0.3152, allocations: 4 kB / 429.4 MB, free: 8.074 MB / 334.1 MB
Notification: Performance of simCode: all other stuff during SimCode phase: time 3.608e-05/0.3152, allocations: 11.44 kB / 429.5 MB, free: 8.062 MB / 334.1 MB
Notification: Performance of SimCode: time 3e-07/0.3152, allocations: 0 / 429.5 MB, free: 8.062 MB / 334.1 MB
Notification: Performance of Templates: time 0.003724/0.3189, allocations: 0.6655 MB / 430.1 MB, free: 7.406 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.854777669534087]