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.002522/0.002522, allocations: 95.86 kB / 20.96 MB, free: 3.465 MB / 18.57 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.002713/0.002713, allocations: 153.1 kB / 24.27 MB, free: 168 kB / 18.57 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.578/1.578, allocations: 173.3 MB / 200.8 MB, free: 9.297 MB / 186.7 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 2.044e-06/2.044e-06, allocations: 0 / 267.3 MB, free: 6.703 MB / 250.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 3.174e-05/3.378e-05, allocations: 2.312 kB / 267.3 MB, free: 6.699 MB / 250.7 MB Notification: Performance of NFInst.instantiate(Modelica.Clocked.Examples.Elementary.RealSignals.AssignClockToSquareWaveHold): time 0.00455/0.004584, allocations: 1.6 MB / 268.9 MB, free: 5.086 MB / 250.7 MB Notification: Performance of NFInst.instExpressions: time 0.001626/0.006209, allocations: 494.3 kB / 269.4 MB, free: 4.598 MB / 250.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 9.843e-05/0.006308, allocations: 7.938 kB / 269.4 MB, free: 4.59 MB / 250.7 MB Notification: Performance of NFTyping.typeComponents: time 6.653e-05/0.006374, allocations: 3.938 kB / 269.4 MB, free: 4.586 MB / 250.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0001665/0.006541, allocations: 7.922 kB / 269.4 MB, free: 4.578 MB / 250.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0004422/0.006983, allocations: 55.75 kB / 269.5 MB, free: 4.523 MB / 250.7 MB Notification: Performance of NFFlatten.flatten: time 0.0001808/0.007164, allocations: 47.86 kB / 269.5 MB, free: 4.477 MB / 250.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001156/0.007279, allocations: 12.17 kB / 269.5 MB, free: 4.465 MB / 250.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001465/0.007426, allocations: 39.83 kB / 269.6 MB, free: 4.426 MB / 250.7 MB Notification: Performance of NFSimplifyModel.simplify: time 7.517e-05/0.007501, allocations: 11.92 kB / 269.6 MB, free: 4.414 MB / 250.7 MB Notification: Performance of NFPackage.collectConstants: time 2.862e-05/0.00753, allocations: 8 kB / 269.6 MB, free: 4.406 MB / 250.7 MB Notification: Performance of NFFlatten.collectFunctions: time 2.152e-05/0.007551, allocations: 4 kB / 269.6 MB, free: 4.402 MB / 250.7 MB Notification: Performance of NFScalarize.scalarize: time 7.074e-05/0.007622, allocations: 15.92 kB / 269.6 MB, free: 4.387 MB / 250.7 MB Notification: Performance of NFVerifyModel.verify: time 5.99e-05/0.007682, allocations: 19.92 kB / 269.6 MB, free: 4.367 MB / 250.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0002119/0.007894, allocations: 59.78 kB / 269.7 MB, free: 4.309 MB / 250.7 MB Notification: Performance of FrontEnd - DAE generated: time 3.947e-06/0.007898, allocations: 0 / 269.7 MB, free: 4.309 MB / 250.7 MB Notification: Performance of FrontEnd: time 1.452e-06/0.007899, allocations: 0 / 269.7 MB, free: 4.309 MB / 250.7 MB Notification: Performance of Transformations before backend: time 6.543e-06/0.007906, allocations: 0 / 269.7 MB, free: 4.309 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.0007939/0.0087, allocations: 407.9 kB / 270.1 MB, free: 3.875 MB / 250.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.392e-05/0.008754, allocations: 12.92 kB / 270.1 MB, free: 3.863 MB / 250.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 8.846e-05/0.008842, allocations: 16.84 kB / 270.1 MB, free: 3.848 MB / 250.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003818/0.009224, allocations: 159.5 kB / 270.3 MB, free: 3.668 MB / 250.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.663e-05/0.00924, allocations: 384 / 270.3 MB, free: 3.668 MB / 250.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.235e-05/0.009263, allocations: 4.375 kB / 270.3 MB, free: 3.664 MB / 250.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0005547/0.009818, allocations: 148.5 kB / 270.4 MB, free: 3.492 MB / 250.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.85e-05/0.009836, allocations: 4.188 kB / 270.4 MB, free: 3.488 MB / 250.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.878e-05/0.009855, allocations: 4.125 kB / 270.4 MB, free: 3.484 MB / 250.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.363e-06/0.009862, allocations: 4 kB / 270.4 MB, free: 3.48 MB / 250.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001503/0.01001, allocations: 23.92 kB / 270.5 MB, free: 3.457 MB / 250.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0006297/0.01064, allocations: 291.2 kB / 270.8 MB, free: 3.129 MB / 250.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003902/0.01103, allocations: 101.2 kB / 270.9 MB, free: 2.992 MB / 250.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.00016/0.01119, allocations: 43.12 kB / 270.9 MB, free: 2.938 MB / 250.7 MB Notification: Performance of preOpt evalFunc (simulation): time 3.355e-05/0.01123, allocations: 7.984 kB / 270.9 MB, free: 2.93 MB / 250.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 6.083e-05/0.01129, allocations: 45.33 kB / 270.9 MB, free: 2.875 MB / 250.7 MB Notification: Performance of pre-optimization done (n=6): time 1.743e-06/0.01129, allocations: 0 / 270.9 MB, free: 2.875 MB / 250.7 MB Notification: Performance of matching and sorting (n=6): time 0.0005312/0.01182, allocations: 97.55 kB / 271 MB, free: 2.773 MB / 250.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001394/0.01196, allocations: 106.8 kB / 271.1 MB, free: 2.645 MB / 250.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003229/0.01228, allocations: 205.9 kB / 271.3 MB, free: 2.426 MB / 250.7 MB Notification: Performance of collectPreVariables (initialization): time 3.333e-05/0.01232, allocations: 25.7 kB / 271.4 MB, free: 2.395 MB / 250.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001402/0.01246, allocations: 138.9 kB / 271.5 MB, free: 2.254 MB / 250.7 MB Notification: Performance of collectInitialBindings (initialization): time 2.501e-05/0.01248, allocations: 3.953 kB / 271.5 MB, free: 2.25 MB / 250.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 8e-05/0.01256, allocations: 27.33 kB / 271.5 MB, free: 2.215 MB / 250.7 MB Notification: Performance of setup shared object (initialization): time 0.0004333/0.01299, allocations: 0.4923 MB / 272 MB, free: 1.711 MB / 250.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 7.918e-05/0.01307, allocations: 12 kB / 272 MB, free: 1.699 MB / 250.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 9.123e-05/0.01316, allocations: 35.61 kB / 272.1 MB, free: 1.656 MB / 250.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001587/0.01332, allocations: 39.3 kB / 272.1 MB, free: 1.609 MB / 250.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.595e-06/0.01333, allocations: 0 / 272.1 MB, free: 1.609 MB / 250.7 MB Notification: Performance of matching and sorting (n=4) (initialization): time 0.0002616/0.01359, allocations: 61.62 kB / 272.2 MB, free: 1.543 MB / 250.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.272e-05/0.01361, allocations: 8 kB / 272.2 MB, free: 1.535 MB / 250.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.861e-06/0.01362, allocations: 0 / 272.2 MB, free: 1.535 MB / 250.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.88e-05/0.01363, allocations: 0 / 272.2 MB, free: 1.535 MB / 250.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 9.142e-05/0.01373, allocations: 7.938 kB / 272.2 MB, free: 1.527 MB / 250.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.229e-05/0.01374, allocations: 3.984 kB / 272.2 MB, free: 1.523 MB / 250.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 6.962e-05/0.01381, allocations: 11.98 kB / 272.2 MB, free: 1.512 MB / 250.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.089e-05/0.01382, allocations: 0 / 272.2 MB, free: 1.512 MB / 250.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 0.0001935/0.01401, allocations: 160.6 kB / 272.4 MB, free: 1.344 MB / 250.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001751/0.01419, allocations: 57.58 kB / 272.4 MB, free: 1.281 MB / 250.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 6.848e-05/0.01426, allocations: 12.34 kB / 272.4 MB, free: 1.262 MB / 250.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.577e-06/0.01426, allocations: 3.938 kB / 272.4 MB, free: 1.258 MB / 250.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.029e-06/0.01426, allocations: 0 / 272.4 MB, free: 1.258 MB / 250.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 9.759e-06/0.01427, allocations: 4 kB / 272.4 MB, free: 1.254 MB / 250.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0003344/0.01461, allocations: 140.5 kB / 272.6 MB, free: 1.082 MB / 250.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.655e-06/0.01461, allocations: 0 / 272.6 MB, free: 1.082 MB / 250.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001007/0.01471, allocations: 15.94 kB / 272.6 MB, free: 1.066 MB / 250.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 7.081e-05/0.01478, allocations: 3.938 kB / 272.6 MB, free: 1.062 MB / 250.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.356e-05/0.01481, allocations: 11.98 kB / 272.6 MB, free: 1.051 MB / 250.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.976e-06/0.01481, allocations: 0 / 272.6 MB, free: 1.051 MB / 250.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.284e-06/0.01481, allocations: 0 / 272.6 MB, free: 1.051 MB / 250.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0004506/0.01526, allocations: 239.3 kB / 272.8 MB, free: 0.7891 MB / 250.7 MB Notification: Performance of postOpt removeConstants (simulation): time 7.889e-05/0.01534, allocations: 15.94 kB / 272.9 MB, free: 0.7734 MB / 250.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.629e-05/0.01538, allocations: 7.938 kB / 272.9 MB, free: 0.7656 MB / 250.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001293/0.01551, allocations: 8.312 kB / 272.9 MB, free: 0.7578 MB / 250.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.793e-05/0.01555, allocations: 3.984 kB / 272.9 MB, free: 0.7539 MB / 250.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.377e-05/0.01557, allocations: 8 kB / 272.9 MB, free: 0.7461 MB / 250.7 MB Notification: Performance of sorting global known variables: time 0.0001696/0.01574, allocations: 146.1 kB / 273 MB, free: 0.6055 MB / 250.7 MB Notification: Performance of sort global known variables: time 1.91e-07/0.01574, allocations: 0 / 273 MB, free: 0.6055 MB / 250.7 MB Notification: Performance of remove unused functions: time 0.0004109/0.01615, allocations: 8 kB / 273 MB, free: 0.5977 MB / 250.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.0001852/0.01633, allocations: 107.2 kB / 273.1 MB, free: 496 kB / 250.7 MB Notification: Performance of simCode: created initialization part: time 0.0002404/0.01657, allocations: 39.61 kB / 273.2 MB, free: 452 kB / 250.7 MB Notification: Performance of simCode: created event and clocks part: time 2.615e-06/0.01658, allocations: 0 / 273.2 MB, free: 452 kB / 250.7 MB Notification: Performance of simCode: created simulation system equations: time 8.415e-05/0.01666, allocations: 19.69 kB / 273.2 MB, free: 428 kB / 250.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005905/0.01725, allocations: 29.61 kB / 273.2 MB, free: 396 kB / 250.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0006345/0.01789, allocations: 199.7 kB / 273.4 MB, free: 160 kB / 250.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001425/0.01803, allocations: 79.31 kB / 273.5 MB, free: 60 kB / 250.7 MB Notification: Performance of simCode: alias equations: time 5.391e-05/0.01808, allocations: 4 kB / 273.5 MB, free: 56 kB / 250.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 6.506e-05/0.01815, allocations: 12.5 kB / 273.5 MB, free: 44 kB / 250.7 MB Notification: Performance of SimCode: time 1.002e-06/0.01815, allocations: 0 / 273.5 MB, free: 44 kB / 250.7 MB Notification: Performance of Templates: time 0.006157/0.02431, allocations: 0.6761 MB / 274.2 MB, free: 15.39 MB / 266.7 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=240 -emit_protected -lv LOG_STATS > Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.RealSignals.AssignClockToSquareWaveHold.pipe 2>&1) [Timeout 240] 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.310341518954374]