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.00148/0.00148, allocations: 85.91 kB / 22.22 MB, free: 2.281 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.001668/0.001668, allocations: 158.4 kB / 25.61 MB, free: 8.914 MB / 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.9657/0.9657, allocations: 177 MB / 205.9 MB, free: 4.465 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 1.663e-06/1.663e-06, allocations: 0 / 274.1 MB, free: 4.289 MB / 250.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 1.502e-05/1.668e-05, allocations: 4 kB / 274.1 MB, free: 4.285 MB / 250.7 MB Notification: Performance of NFInst.instantiate(Modelica.Clocked.Examples.Elementary.RealSignals.AssignClockToSquareWaveHold): time 0.002091/0.002108, allocations: 1.655 MB / 275.8 MB, free: 2.629 MB / 250.7 MB Notification: Performance of NFInst.instExpressions: time 0.0007372/0.002845, allocations: 0.5481 MB / 276.3 MB, free: 2.078 MB / 250.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 7.04e-05/0.002915, allocations: 3.938 kB / 276.3 MB, free: 2.074 MB / 250.7 MB Notification: Performance of NFTyping.typeComponents: time 3.602e-05/0.002951, allocations: 7.938 kB / 276.3 MB, free: 2.066 MB / 250.7 MB Notification: Performance of NFTyping.typeBindings: time 9.899e-05/0.00305, allocations: 12.8 kB / 276.3 MB, free: 2.055 MB / 250.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002233/0.003274, allocations: 59.75 kB / 276.4 MB, free: 1.996 MB / 250.7 MB Notification: Performance of NFFlatten.flatten: time 8.391e-05/0.003358, allocations: 56.41 kB / 276.5 MB, free: 1.941 MB / 250.7 MB Notification: Performance of NFFlatten.resolveConnections: time 7.077e-05/0.003428, allocations: 11.86 kB / 276.5 MB, free: 1.93 MB / 250.7 MB Notification: Performance of NFEvalConstants.evaluate: time 9.809e-05/0.003526, allocations: 37.58 kB / 276.5 MB, free: 1.895 MB / 250.7 MB Notification: Performance of NFSimplifyModel.simplify: time 3.877e-05/0.003565, allocations: 19.97 kB / 276.5 MB, free: 1.875 MB / 250.7 MB Notification: Performance of NFPackage.collectConstants: time 1.205e-05/0.003577, allocations: 7.938 kB / 276.5 MB, free: 1.867 MB / 250.7 MB Notification: Performance of NFFlatten.collectFunctions: time 2.875e-05/0.003606, allocations: 4 kB / 276.5 MB, free: 1.863 MB / 250.7 MB Notification: Performance of NFScalarize.scalarize: time 3.243e-05/0.003638, allocations: 16.64 kB / 276.6 MB, free: 1.848 MB / 250.7 MB Notification: Performance of NFVerifyModel.verify: time 2.032e-05/0.003659, allocations: 19.92 kB / 276.6 MB, free: 1.828 MB / 250.7 MB Notification: Performance of NFConvertDAE.convert: time 9.899e-05/0.003758, allocations: 53.23 kB / 276.6 MB, free: 1.777 MB / 250.7 MB Notification: Performance of FrontEnd - DAE generated: time 1.503e-06/0.003759, allocations: 0 / 276.6 MB, free: 1.777 MB / 250.7 MB Notification: Performance of FrontEnd: time 6.21e-07/0.00376, allocations: 0 / 276.6 MB, free: 1.777 MB / 250.7 MB Notification: Performance of Transformations before backend: time 3.086e-06/0.003763, allocations: 0 / 276.6 MB, free: 1.777 MB / 250.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.0003499/0.004113, allocations: 417.1 kB / 277 MB, free: 1.336 MB / 250.7 MB Notification: Performance of prepare preOptimizeDAE: time 2.84e-05/0.004141, allocations: 8.031 kB / 277 MB, free: 1.328 MB / 250.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 9.487e-05/0.004236, allocations: 24.89 kB / 277.1 MB, free: 1.305 MB / 250.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001319/0.004368, allocations: 150.8 kB / 277.2 MB, free: 1.133 MB / 250.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 7.795e-06/0.004376, allocations: 4.375 kB / 277.2 MB, free: 1.129 MB / 250.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 7.835e-06/0.004384, allocations: 4.375 kB / 277.2 MB, free: 1.125 MB / 250.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.000153/0.004537, allocations: 143.6 kB / 277.4 MB, free: 0.957 MB / 250.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 6.131e-06/0.004543, allocations: 192 / 277.4 MB, free: 0.957 MB / 250.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 5.41e-06/0.004548, allocations: 4.375 kB / 277.4 MB, free: 0.9531 MB / 250.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.999e-06/0.004553, allocations: 3.938 kB / 277.4 MB, free: 0.9492 MB / 250.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 1.928e-05/0.004573, allocations: 11.94 kB / 277.4 MB, free: 0.9375 MB / 250.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001956/0.004768, allocations: 259.8 kB / 277.6 MB, free: 0.6484 MB / 250.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0001124/0.004881, allocations: 89.17 kB / 277.7 MB, free: 0.5234 MB / 250.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 2.892e-05/0.004909, allocations: 43.16 kB / 277.8 MB, free: 480 kB / 250.7 MB Notification: Performance of preOpt evalFunc (simulation): time 1.382e-05/0.004923, allocations: 4 kB / 277.8 MB, free: 476 kB / 250.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.556e-05/0.004939, allocations: 37.33 kB / 277.8 MB, free: 428 kB / 250.7 MB Notification: Performance of pre-optimization done (n=6): time 1.814e-06/0.004941, allocations: 4 kB / 277.8 MB, free: 424 kB / 250.7 MB Notification: Performance of matching and sorting (n=6): time 0.0001157/0.005056, allocations: 77.45 kB / 277.9 MB, free: 340 kB / 250.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.77e-05/0.005104, allocations: 114.8 kB / 278 MB, free: 200 kB / 250.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 8.886e-05/0.005193, allocations: 201.8 kB / 278.2 MB, free: 15.98 MB / 266.7 MB Notification: Performance of collectPreVariables (initialization): time 9.128e-06/0.005202, allocations: 25.7 kB / 278.2 MB, free: 15.95 MB / 266.7 MB Notification: Performance of collectInitialEqns (initialization): time 3.838e-05/0.00524, allocations: 130.9 kB / 278.3 MB, free: 15.82 MB / 266.7 MB Notification: Performance of collectInitialBindings (initialization): time 1.438e-05/0.005255, allocations: 11.95 kB / 278.4 MB, free: 15.8 MB / 266.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.496e-05/0.00528, allocations: 23.36 kB / 278.4 MB, free: 15.77 MB / 266.7 MB Notification: Performance of setup shared object (initialization): time 0.0001151/0.005395, allocations: 496.1 kB / 278.9 MB, free: 15.28 MB / 266.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 9.037e-06/0.005404, allocations: 4 kB / 278.9 MB, free: 15.27 MB / 266.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 1.765e-05/0.005421, allocations: 27.61 kB / 278.9 MB, free: 15.24 MB / 266.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 2.958e-05/0.005451, allocations: 27.36 kB / 278.9 MB, free: 15.2 MB / 266.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.032e-06/0.005452, allocations: 4 kB / 278.9 MB, free: 15.2 MB / 266.7 MB Notification: Performance of matching and sorting (n=4) (initialization): time 5.46e-05/0.005507, allocations: 49.58 kB / 279 MB, free: 15.14 MB / 266.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.051e-05/0.005517, allocations: 11.94 kB / 279 MB, free: 15.13 MB / 266.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.856e-06/0.00552, allocations: 0 / 279 MB, free: 15.13 MB / 266.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 6.893e-06/0.005527, allocations: 0 / 279 MB, free: 15.13 MB / 266.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 3.353e-05/0.00556, allocations: 8 kB / 279 MB, free: 15.12 MB / 266.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 3.096e-06/0.005564, allocations: 0 / 279 MB, free: 15.12 MB / 266.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 1.83e-05/0.005582, allocations: 4.031 kB / 279 MB, free: 15.12 MB / 266.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.731e-06/0.005588, allocations: 4 kB / 279 MB, free: 15.12 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 6.558e-05/0.005653, allocations: 160.5 kB / 279.2 MB, free: 14.95 MB / 266.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.345e-05/0.005697, allocations: 49.66 kB / 279.2 MB, free: 14.89 MB / 266.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.507e-05/0.005732, allocations: 20.27 kB / 279.2 MB, free: 14.87 MB / 266.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.743e-06/0.005733, allocations: 0 / 279.2 MB, free: 14.87 MB / 266.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.807e-06/0.005737, allocations: 4 kB / 279.2 MB, free: 14.87 MB / 266.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.717e-06/0.005741, allocations: 4 kB / 279.2 MB, free: 14.86 MB / 266.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001012/0.005842, allocations: 105.2 kB / 279.3 MB, free: 14.73 MB / 266.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 9.11e-07/0.005843, allocations: 0 / 279.3 MB, free: 14.73 MB / 266.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 2.494e-05/0.005868, allocations: 12 kB / 279.4 MB, free: 14.72 MB / 266.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.102e-06/0.005869, allocations: 4 kB / 279.4 MB, free: 14.72 MB / 266.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.133e-06/0.005876, allocations: 8.359 kB / 279.4 MB, free: 14.71 MB / 266.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.042e-06/0.005877, allocations: 3.938 kB / 279.4 MB, free: 14.71 MB / 266.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.833e-06/0.005879, allocations: 3.938 kB / 279.4 MB, free: 14.7 MB / 266.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 9.901e-05/0.005978, allocations: 203.3 kB / 279.6 MB, free: 14.48 MB / 266.7 MB Notification: Performance of postOpt removeConstants (simulation): time 2.881e-05/0.006007, allocations: 27.83 kB / 279.6 MB, free: 14.45 MB / 266.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.463e-05/0.006022, allocations: 3.984 kB / 279.6 MB, free: 14.45 MB / 266.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 3.283e-05/0.006054, allocations: 4 kB / 279.6 MB, free: 14.44 MB / 266.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 1.874e-05/0.006073, allocations: 7.938 kB / 279.6 MB, free: 14.43 MB / 266.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.406e-06/0.006077, allocations: 7.938 kB / 279.6 MB, free: 14.43 MB / 266.7 MB Notification: Performance of sorting global known variables: time 4.669e-05/0.006123, allocations: 149.1 kB / 279.8 MB, free: 14.28 MB / 266.7 MB Notification: Performance of sort global known variables: time 5e-08/0.006123, allocations: 0 / 279.8 MB, free: 14.28 MB / 266.7 MB Notification: Performance of remove unused functions: time 0.0001389/0.006262, allocations: 11.94 kB / 279.8 MB, free: 14.27 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.196e-05/0.006324, allocations: 99.25 kB / 279.9 MB, free: 14.16 MB / 266.7 MB Notification: Performance of simCode: created initialization part: time 5.386e-05/0.006378, allocations: 23.67 kB / 279.9 MB, free: 14.13 MB / 266.7 MB Notification: Performance of simCode: created event and clocks part: time 7.71e-07/0.006379, allocations: 0 / 279.9 MB, free: 14.13 MB / 266.7 MB Notification: Performance of simCode: created simulation system equations: time 1.378e-05/0.006393, allocations: 15.62 kB / 279.9 MB, free: 14.11 MB / 266.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001989/0.006591, allocations: 25.11 kB / 279.9 MB, free: 14.09 MB / 266.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0003289/0.00692, allocations: 211.6 kB / 280.1 MB, free: 13.85 MB / 266.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 3.533e-05/0.006956, allocations: 63.34 kB / 280.2 MB, free: 13.77 MB / 266.7 MB Notification: Performance of simCode: alias equations: time 1.955e-05/0.006975, allocations: 3.984 kB / 280.2 MB, free: 13.76 MB / 266.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.619e-05/0.007021, allocations: 74.2 kB / 280.3 MB, free: 13.69 MB / 266.7 MB Notification: Performance of SimCode: time 4.61e-07/0.007022, allocations: 0 / 280.3 MB, free: 13.69 MB / 266.7 MB Notification: Performance of Templates: time 0.002184/0.009206, allocations: 0.7419 MB / 281 MB, free: 12.97 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.8135871659033]