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.0011/0.0011, allocations: 71.77 kB / 21.69 MB, free: 2.855 MB / 18.57 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.001066/0.001066, allocations: 165.5 kB / 24.99 MB, free: 8.871 MB / 18.57 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 0.9839/0.9839, allocations: 177.1 MB / 205.3 MB, free: 5.633 MB / 186.7 MB " [Timeout remaining time 179] 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 2.584e-06/2.584e-06, allocations: 0 / 273.1 MB, free: 1.836 MB / 250.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 3.511e-05/3.769e-05, allocations: 2.312 kB / 273.1 MB, free: 1.832 MB / 250.7 MB Notification: Performance of NFInst.instantiate(Modelica.Clocked.Examples.Elementary.RealSignals.AssignClockToSquareWaveHold): time 0.003732/0.00377, allocations: 1.65 MB / 274.7 MB, free: 176 kB / 250.7 MB Notification: Performance of NFInst.instExpressions: time 0.001298/0.005068, allocations: 0.5491 MB / 275.3 MB, free: 15.62 MB / 266.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.000127/0.005195, allocations: 7.938 kB / 275.3 MB, free: 15.61 MB / 266.7 MB Notification: Performance of NFTyping.typeComponents: time 7.025e-05/0.005265, allocations: 7.922 kB / 275.3 MB, free: 15.6 MB / 266.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0001858/0.005451, allocations: 11.88 kB / 275.3 MB, free: 15.59 MB / 266.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0004724/0.005923, allocations: 67.73 kB / 275.4 MB, free: 15.52 MB / 266.7 MB Notification: Performance of NFFlatten.flatten: time 0.0001394/0.006063, allocations: 47.8 kB / 275.4 MB, free: 15.48 MB / 266.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001175/0.00618, allocations: 11.98 kB / 275.4 MB, free: 15.46 MB / 266.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001783/0.006358, allocations: 39.89 kB / 275.5 MB, free: 15.43 MB / 266.7 MB Notification: Performance of NFSimplifyModel.simplify: time 6.354e-05/0.006422, allocations: 15.92 kB / 275.5 MB, free: 15.41 MB / 266.7 MB Notification: Performance of NFPackage.collectConstants: time 2.206e-05/0.006444, allocations: 4 kB / 275.5 MB, free: 15.41 MB / 266.7 MB Notification: Performance of NFFlatten.collectFunctions: time 4.997e-05/0.006494, allocations: 12 kB / 275.5 MB, free: 15.39 MB / 266.7 MB Notification: Performance of NFScalarize.scalarize: time 6.348e-05/0.006557, allocations: 19.91 kB / 275.5 MB, free: 15.38 MB / 266.7 MB Notification: Performance of NFVerifyModel.verify: time 4.272e-05/0.0066, allocations: 15.94 kB / 275.5 MB, free: 15.36 MB / 266.7 MB Notification: Performance of NFConvertDAE.convert: time 0.00018/0.00678, allocations: 51.69 kB / 275.6 MB, free: 15.31 MB / 266.7 MB Notification: Performance of FrontEnd - DAE generated: time 5.039e-06/0.006785, allocations: 4 kB / 275.6 MB, free: 15.3 MB / 266.7 MB Notification: Performance of FrontEnd: time 1.342e-06/0.006786, allocations: 0 / 275.6 MB, free: 15.3 MB / 266.7 MB Notification: Performance of Transformations before backend: time 5.54e-06/0.006792, allocations: 0 / 275.6 MB, free: 15.3 MB / 266.7 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.0005279/0.00732, allocations: 408.2 kB / 276 MB, free: 14.87 MB / 266.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.561e-05/0.007366, allocations: 8.031 kB / 276 MB, free: 14.86 MB / 266.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001913/0.007557, allocations: 20.88 kB / 276 MB, free: 14.84 MB / 266.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002429/0.0078, allocations: 159.6 kB / 276.2 MB, free: 14.66 MB / 266.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.461e-05/0.007814, allocations: 4.375 kB / 276.2 MB, free: 14.66 MB / 266.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.281e-05/0.007827, allocations: 4.375 kB / 276.2 MB, free: 14.66 MB / 266.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003104/0.008137, allocations: 145.2 kB / 276.3 MB, free: 14.48 MB / 266.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 8.216e-06/0.008146, allocations: 192 / 276.3 MB, free: 14.48 MB / 266.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.053e-05/0.008156, allocations: 384 / 276.3 MB, free: 14.48 MB / 266.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.233e-05/0.008169, allocations: 11.94 kB / 276.3 MB, free: 14.47 MB / 266.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 3.982e-05/0.008208, allocations: 11.92 kB / 276.3 MB, free: 14.46 MB / 266.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.000384/0.008592, allocations: 279.2 kB / 276.6 MB, free: 14.14 MB / 266.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002074/0.0088, allocations: 101.2 kB / 276.7 MB, free: 14.01 MB / 266.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 5.545e-05/0.008855, allocations: 35.11 kB / 276.7 MB, free: 13.96 MB / 266.7 MB Notification: Performance of preOpt evalFunc (simulation): time 2.256e-05/0.008878, allocations: 0 / 276.7 MB, free: 13.96 MB / 266.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.83e-05/0.008916, allocations: 49.27 kB / 276.8 MB, free: 13.9 MB / 266.7 MB Notification: Performance of pre-optimization done (n=6): time 1.393e-06/0.008918, allocations: 0 / 276.8 MB, free: 13.9 MB / 266.7 MB Notification: Performance of matching and sorting (n=6): time 0.0002376/0.009155, allocations: 73.66 kB / 276.9 MB, free: 13.82 MB / 266.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.391e-05/0.009229, allocations: 110.8 kB / 277 MB, free: 13.69 MB / 266.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001317/0.009361, allocations: 193.9 kB / 277.2 MB, free: 13.48 MB / 266.7 MB Notification: Performance of collectPreVariables (initialization): time 1.531e-05/0.009376, allocations: 25.7 kB / 277.2 MB, free: 13.45 MB / 266.7 MB Notification: Performance of collectInitialEqns (initialization): time 6.235e-05/0.009438, allocations: 138.8 kB / 277.3 MB, free: 13.31 MB / 266.7 MB Notification: Performance of collectInitialBindings (initialization): time 2.35e-05/0.009462, allocations: 11.95 kB / 277.3 MB, free: 13.3 MB / 266.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 4.327e-05/0.009505, allocations: 23.33 kB / 277.4 MB, free: 13.27 MB / 266.7 MB Notification: Performance of setup shared object (initialization): time 0.0001381/0.009643, allocations: 0.4884 MB / 277.8 MB, free: 12.77 MB / 266.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 2.222e-05/0.009666, allocations: 4 kB / 277.8 MB, free: 12.77 MB / 266.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 2.896e-05/0.009694, allocations: 27.55 kB / 277.9 MB, free: 12.73 MB / 266.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 5.546e-05/0.00975, allocations: 31.52 kB / 277.9 MB, free: 12.69 MB / 266.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.665e-06/0.009753, allocations: 0 / 277.9 MB, free: 12.69 MB / 266.7 MB Notification: Performance of matching and sorting (n=4) (initialization): time 0.0001025/0.009855, allocations: 57.56 kB / 278 MB, free: 12.63 MB / 266.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.883e-05/0.009874, allocations: 4 kB / 278 MB, free: 12.62 MB / 266.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.873e-06/0.009881, allocations: 4 kB / 278 MB, free: 12.62 MB / 266.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.546e-05/0.009896, allocations: 4 kB / 278 MB, free: 12.62 MB / 266.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 6.747e-05/0.009964, allocations: 0 / 278 MB, free: 12.62 MB / 266.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 8.446e-06/0.009972, allocations: 7.984 kB / 278 MB, free: 12.61 MB / 266.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 2.845e-05/0.01, allocations: 0 / 278 MB, free: 12.61 MB / 266.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.033e-05/0.01001, allocations: 7.984 kB / 278 MB, free: 12.6 MB / 266.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 2 * 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 (4): * Single equations (assignments): 4 * 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 8.778e-05/0.0101, allocations: 164.5 kB / 278.1 MB, free: 12.43 MB / 266.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 8.68e-05/0.01019, allocations: 61.52 kB / 278.2 MB, free: 12.36 MB / 266.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 4.104e-05/0.01023, allocations: 12.34 kB / 278.2 MB, free: 12.35 MB / 266.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.797e-06/0.01023, allocations: 0 / 278.2 MB, free: 12.35 MB / 266.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.957e-06/0.01023, allocations: 0 / 278.2 MB, free: 12.35 MB / 266.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.11e-06/0.01024, allocations: 4 kB / 278.2 MB, free: 12.35 MB / 266.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001729/0.01041, allocations: 136.5 kB / 278.4 MB, free: 12.18 MB / 266.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.747e-06/0.01042, allocations: 4 kB / 278.4 MB, free: 12.18 MB / 266.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 4.74e-05/0.01046, allocations: 4 kB / 278.4 MB, free: 12.17 MB / 266.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 6.042e-06/0.01047, allocations: 4 kB / 278.4 MB, free: 12.17 MB / 266.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 9.168e-06/0.01048, allocations: 7.938 kB / 278.4 MB, free: 12.16 MB / 266.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.565e-06/0.01048, allocations: 0 / 278.4 MB, free: 12.16 MB / 266.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.559e-06/0.01049, allocations: 11.92 kB / 278.4 MB, free: 12.15 MB / 266.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001746/0.01066, allocations: 227.3 kB / 278.6 MB, free: 11.9 MB / 266.7 MB Notification: Performance of postOpt removeConstants (simulation): time 4.527e-05/0.01071, allocations: 15.88 kB / 278.6 MB, free: 11.88 MB / 266.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.942e-05/0.01074, allocations: 11.94 kB / 278.6 MB, free: 11.87 MB / 266.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 6.432e-05/0.0108, allocations: 0 / 278.6 MB, free: 11.87 MB / 266.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.565e-05/0.01084, allocations: 4 kB / 278.6 MB, free: 11.87 MB / 266.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.741e-06/0.01084, allocations: 0 / 278.6 MB, free: 11.87 MB / 266.7 MB Notification: Performance of sorting global known variables: time 7.469e-05/0.01092, allocations: 149.7 kB / 278.8 MB, free: 11.72 MB / 266.7 MB Notification: Performance of sort global known variables: time 8e-08/0.01092, allocations: 0 / 278.8 MB, free: 11.72 MB / 266.7 MB Notification: Performance of remove unused functions: time 0.0002508/0.01117, allocations: 12 kB / 278.8 MB, free: 11.71 MB / 266.7 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.0001246/0.01129, allocations: 106.6 kB / 278.9 MB, free: 11.6 MB / 266.7 MB Notification: Performance of simCode: created initialization part: time 0.0001153/0.01141, allocations: 27.86 kB / 278.9 MB, free: 11.57 MB / 266.7 MB Notification: Performance of simCode: created event and clocks part: time 2.404e-06/0.01141, allocations: 0 / 278.9 MB, free: 11.57 MB / 266.7 MB Notification: Performance of simCode: created simulation system equations: time 2.313e-05/0.01143, allocations: 15.62 kB / 278.9 MB, free: 11.55 MB / 266.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003839/0.01182, allocations: 21.66 kB / 279 MB, free: 11.52 MB / 266.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0006601/0.01248, allocations: 211.9 kB / 279.2 MB, free: 11.28 MB / 266.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 5.123e-05/0.01253, allocations: 63.34 kB / 279.2 MB, free: 11.2 MB / 266.7 MB Notification: Performance of simCode: alias equations: time 3.53e-05/0.01256, allocations: 8 kB / 279.2 MB, free: 11.19 MB / 266.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.758e-05/0.0126, allocations: 8.5 kB / 279.3 MB, free: 11.18 MB / 266.7 MB Notification: Performance of SimCode: time 1.202e-06/0.0126, allocations: 0 / 279.3 MB, free: 11.18 MB / 266.7 MB Notification: Performance of Templates: time 0.003314/0.01592, allocations: 0.6806 MB / 279.9 MB, free: 10.52 MB / 266.7 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=240 -emit_protected -lv LOG_STATS > Modelica_4.1.0_Modelica.Clocked.Examples.Elementary.RealSignals.AssignClockToSquareWaveHold.pipe 2>&1) [Timeout 240] 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","",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) [Timeout 660] "" [Timeout remaining time 660] Reference file matches [Calling sys.exit(0), Time elapsed: 2.870134006952867]