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.002122/0.002122, allocations: 91.5 kB / 21.19 MB, free: 3.398 MB / 18.57 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.001523/0.001523, allocations: 160.5 kB / 24.56 MB, free: 40 kB / 18.57 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 0.9739/0.9739, allocations: 177 MB / 204.8 MB, free: 5.559 MB / 186.7 MB " [Timeout remaining time 179] 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 2.084e-06/2.084e-06, allocations: 0 / 272.9 MB, free: 1.422 MB / 250.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 3.178e-05/3.386e-05, allocations: 5.125 kB / 272.9 MB, free: 1.418 MB / 250.7 MB Notification: Performance of NFInst.instantiate(Modelica.Clocked.Examples.Elementary.RealSignals.AssignClockToSquareWaveHold): time 0.003782/0.003816, allocations: 1.654 MB / 274.6 MB, free: 15.75 MB / 266.7 MB Notification: Performance of NFInst.instExpressions: time 0.001275/0.005091, allocations: 0.5491 MB / 275.1 MB, free: 15.2 MB / 266.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 7.078e-05/0.005162, allocations: 3.938 kB / 275.1 MB, free: 15.19 MB / 266.7 MB Notification: Performance of NFTyping.typeComponents: time 3.738e-05/0.005199, allocations: 3.938 kB / 275.1 MB, free: 15.19 MB / 266.7 MB Notification: Performance of NFTyping.typeBindings: time 9.505e-05/0.005294, allocations: 19.86 kB / 275.2 MB, free: 15.17 MB / 266.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002453/0.00554, allocations: 67.73 kB / 275.2 MB, free: 15.1 MB / 266.7 MB Notification: Performance of NFFlatten.flatten: time 7.288e-05/0.005612, allocations: 55.77 kB / 275.3 MB, free: 15.05 MB / 266.7 MB Notification: Performance of NFFlatten.resolveConnections: time 5.773e-05/0.00567, allocations: 8 kB / 275.3 MB, free: 15.04 MB / 266.7 MB Notification: Performance of NFEvalConstants.evaluate: time 8.691e-05/0.005757, allocations: 39.89 kB / 275.3 MB, free: 15 MB / 266.7 MB Notification: Performance of NFSimplifyModel.simplify: time 3.504e-05/0.005792, allocations: 19.92 kB / 275.3 MB, free: 14.98 MB / 266.7 MB Notification: Performance of NFPackage.collectConstants: time 1.266e-05/0.005805, allocations: 4 kB / 275.4 MB, free: 14.98 MB / 266.7 MB Notification: Performance of NFFlatten.collectFunctions: time 2.563e-05/0.00583, allocations: 4 kB / 275.4 MB, free: 14.97 MB / 266.7 MB Notification: Performance of NFScalarize.scalarize: time 3.076e-05/0.005861, allocations: 19.86 kB / 275.4 MB, free: 14.95 MB / 266.7 MB Notification: Performance of NFVerifyModel.verify: time 2.575e-05/0.005887, allocations: 23.91 kB / 275.4 MB, free: 14.93 MB / 266.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0001073/0.005994, allocations: 51.77 kB / 275.4 MB, free: 14.88 MB / 266.7 MB Notification: Performance of FrontEnd - DAE generated: time 1.512e-06/0.005996, allocations: 0 / 275.4 MB, free: 14.88 MB / 266.7 MB Notification: Performance of FrontEnd: time 1.122e-06/0.005997, allocations: 0 / 275.4 MB, free: 14.88 MB / 266.7 MB Notification: Performance of Transformations before backend: time 3.827e-06/0.006001, allocations: 0 / 275.4 MB, free: 14.88 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.0003133/0.006314, allocations: 412.2 kB / 275.9 MB, free: 14.44 MB / 266.7 MB Notification: Performance of prepare preOptimizeDAE: time 2.67e-05/0.006341, allocations: 11.98 kB / 275.9 MB, free: 14.43 MB / 266.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 9.522e-05/0.006436, allocations: 16.89 kB / 275.9 MB, free: 14.41 MB / 266.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001369/0.006573, allocations: 152.4 kB / 276 MB, free: 14.24 MB / 266.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 9.568e-06/0.006582, allocations: 8.375 kB / 276 MB, free: 14.23 MB / 266.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 7.835e-06/0.00659, allocations: 4.375 kB / 276 MB, free: 14.23 MB / 266.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001836/0.006774, allocations: 149.2 kB / 276.2 MB, free: 14.05 MB / 266.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 7.173e-06/0.006781, allocations: 192 / 276.2 MB, free: 14.05 MB / 266.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 7.183e-06/0.006788, allocations: 384 / 276.2 MB, free: 14.05 MB / 266.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.291e-06/0.006794, allocations: 7.938 kB / 276.2 MB, free: 14.04 MB / 266.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 2.268e-05/0.006817, allocations: 7.938 kB / 276.2 MB, free: 14.04 MB / 266.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0002244/0.007042, allocations: 283.2 kB / 276.5 MB, free: 13.71 MB / 266.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0001169/0.007158, allocations: 101.2 kB / 276.6 MB, free: 13.58 MB / 266.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 3.488e-05/0.007193, allocations: 35.11 kB / 276.6 MB, free: 13.53 MB / 266.7 MB Notification: Performance of preOpt evalFunc (simulation): time 1.476e-05/0.007208, allocations: 0 / 276.6 MB, free: 13.53 MB / 266.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.302e-05/0.007231, allocations: 49.27 kB / 276.7 MB, free: 13.47 MB / 266.7 MB Notification: Performance of pre-optimization done (n=6): time 6.51e-07/0.007232, allocations: 0 / 276.7 MB, free: 13.47 MB / 266.7 MB Notification: Performance of matching and sorting (n=6): time 0.0001308/0.007363, allocations: 69.56 kB / 276.7 MB, free: 13.4 MB / 266.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.566e-05/0.007408, allocations: 110.8 kB / 276.8 MB, free: 13.27 MB / 266.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 8.683e-05/0.007495, allocations: 205.3 kB / 277 MB, free: 13.05 MB / 266.7 MB Notification: Performance of collectPreVariables (initialization): time 8.456e-06/0.007503, allocations: 29.7 kB / 277.1 MB, free: 13.02 MB / 266.7 MB Notification: Performance of collectInitialEqns (initialization): time 4.02e-05/0.007544, allocations: 134.9 kB / 277.2 MB, free: 12.88 MB / 266.7 MB Notification: Performance of collectInitialBindings (initialization): time 1.431e-05/0.007558, allocations: 7.953 kB / 277.2 MB, free: 12.87 MB / 266.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.785e-05/0.007586, allocations: 27.31 kB / 277.2 MB, free: 12.84 MB / 266.7 MB Notification: Performance of setup shared object (initialization): time 0.0001055/0.007691, allocations: 0.4884 MB / 277.7 MB, free: 12.34 MB / 266.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 1.13e-05/0.007703, allocations: 0 / 277.7 MB, free: 12.34 MB / 266.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 2.232e-05/0.007725, allocations: 27.36 kB / 277.7 MB, free: 12.3 MB / 266.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 3.253e-05/0.007757, allocations: 23.38 kB / 277.8 MB, free: 12.27 MB / 266.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.282e-06/0.007759, allocations: 0 / 277.8 MB, free: 12.27 MB / 266.7 MB Notification: Performance of matching and sorting (n=4) (initialization): time 6.055e-05/0.007819, allocations: 57.88 kB / 277.8 MB, free: 12.21 MB / 266.7 MB Notification: Performance of prepare postOptimizeDAE: time 8.155e-06/0.007827, allocations: 8 kB / 277.8 MB, free: 12.2 MB / 266.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.895e-06/0.00783, allocations: 4.047 kB / 277.8 MB, free: 12.2 MB / 266.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.09e-05/0.007841, allocations: 3.984 kB / 277.8 MB, free: 12.19 MB / 266.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 4.742e-05/0.007889, allocations: 7.984 kB / 277.8 MB, free: 12.18 MB / 266.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 4.248e-06/0.007893, allocations: 0 / 277.8 MB, free: 12.18 MB / 266.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 1.581e-05/0.007909, allocations: 0 / 277.8 MB, free: 12.18 MB / 266.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.103e-06/0.007916, allocations: 8 kB / 277.9 MB, free: 12.18 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 5.986e-05/0.007976, allocations: 156.5 kB / 278 MB, free: 12.01 MB / 266.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.678e-05/0.008022, allocations: 57.58 kB / 278.1 MB, free: 11.95 MB / 266.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 2.596e-05/0.008048, allocations: 12.34 kB / 278.1 MB, free: 11.94 MB / 266.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.573e-06/0.00805, allocations: 4 kB / 278.1 MB, free: 11.93 MB / 266.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.986e-06/0.008053, allocations: 3.938 kB / 278.1 MB, free: 11.93 MB / 266.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.524e-06/0.008056, allocations: 4 kB / 278.1 MB, free: 11.93 MB / 266.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001017/0.008157, allocations: 136.6 kB / 278.2 MB, free: 11.76 MB / 266.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 8.81e-07/0.008158, allocations: 0 / 278.2 MB, free: 11.76 MB / 266.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 2.478e-05/0.008183, allocations: 11.98 kB / 278.2 MB, free: 11.75 MB / 266.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.154e-06/0.008185, allocations: 4 kB / 278.2 MB, free: 11.74 MB / 266.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.911e-06/0.008191, allocations: 3.938 kB / 278.2 MB, free: 11.74 MB / 266.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.543e-06/0.008193, allocations: 3.938 kB / 278.2 MB, free: 11.73 MB / 266.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.11e-07/0.008193, allocations: 4 kB / 278.3 MB, free: 11.73 MB / 266.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001066/0.0083, allocations: 231.3 kB / 278.5 MB, free: 11.48 MB / 266.7 MB Notification: Performance of postOpt removeConstants (simulation): time 2.593e-05/0.008326, allocations: 15.88 kB / 278.5 MB, free: 11.46 MB / 266.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.615e-05/0.008342, allocations: 11.94 kB / 278.5 MB, free: 11.45 MB / 266.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 3.138e-05/0.008373, allocations: 0 / 278.5 MB, free: 11.45 MB / 266.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 2.207e-05/0.008395, allocations: 7.984 kB / 278.5 MB, free: 11.44 MB / 266.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.905e-06/0.008398, allocations: 0 / 278.5 MB, free: 11.44 MB / 266.7 MB Notification: Performance of sorting global known variables: time 5.262e-05/0.008451, allocations: 143.2 kB / 278.7 MB, free: 11.3 MB / 266.7 MB Notification: Performance of sort global known variables: time 5e-08/0.008451, allocations: 0 / 278.7 MB, free: 11.3 MB / 266.7 MB Notification: Performance of remove unused functions: time 0.0001349/0.008586, allocations: 12 kB / 278.7 MB, free: 11.29 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 6.227e-05/0.008648, allocations: 99.19 kB / 278.8 MB, free: 11.18 MB / 266.7 MB Notification: Performance of simCode: created initialization part: time 7.278e-05/0.008721, allocations: 31.67 kB / 278.8 MB, free: 11.14 MB / 266.7 MB Notification: Performance of simCode: created event and clocks part: time 9.62e-07/0.008722, allocations: 0 / 278.8 MB, free: 11.14 MB / 266.7 MB Notification: Performance of simCode: created simulation system equations: time 1.65e-05/0.008738, allocations: 19.61 kB / 278.8 MB, free: 11.12 MB / 266.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002186/0.008957, allocations: 28.62 kB / 278.8 MB, free: 11.09 MB / 266.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0003837/0.009341, allocations: 199.7 kB / 279 MB, free: 10.86 MB / 266.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 3.705e-05/0.009378, allocations: 63.34 kB / 279.1 MB, free: 10.78 MB / 266.7 MB Notification: Performance of simCode: alias equations: time 1.686e-05/0.009395, allocations: 4.188 kB / 279.1 MB, free: 10.78 MB / 266.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 2.402e-05/0.009419, allocations: 16.48 kB / 279.1 MB, free: 10.76 MB / 266.7 MB Notification: Performance of SimCode: time 6.01e-07/0.009419, allocations: 0 / 279.1 MB, free: 10.76 MB / 266.7 MB Notification: Performance of Templates: time 0.002687/0.01211, allocations: 0.6709 MB / 279.8 MB, free: 10.1 MB / 266.7 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=240 -emit_protected -lv LOG_STATS > Modelica_trunk_Modelica.Clocked.Examples.Elementary.RealSignals.AssignClockToSquareWaveHold.pipe 2>&1) [Timeout 240] 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","",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.8187229712493718]