Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.IntegerSignals.TickBasedStep.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo", uses=false) 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.IntegerSignals.TickBasedStep,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|assignClock1.y",fileNamePrefix="Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.IntegerSignals.TickBasedStep") translateModel(Modelica.Clocked.Examples.Elementary.IntegerSignals.TickBasedStep,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|assignClock1.y",fileNamePrefix="Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.IntegerSignals.TickBasedStep") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001458/0.001458, allocations: 108.7 kB / 16.92 MB, free: 6.145 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.00127/0.00127, allocations: 187.4 kB / 17.85 MB, free: 5.285 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.543/1.543, allocations: 222.9 MB / 241.5 MB, free: 15.21 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001811/0.001811, allocations: 43.77 kB / 300.6 MB, free: 5.883 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1329/0.1347, allocations: 49.43 MB / 350 MB, free: 4.441 MB / 286.1 MB Notification: Performance of NFInst.instantiate(Modelica.Clocked.Examples.Elementary.IntegerSignals.TickBasedStep): time 0.003061/0.1379, allocations: 1.417 MB / 351.5 MB, free: 3.004 MB / 286.1 MB Notification: Performance of NFInst.instExpressions: time 0.0002386/0.1381, allocations: 31.84 kB / 351.5 MB, free: 2.973 MB / 286.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 7.711e-05/0.1382, allocations: 4 kB / 351.5 MB, free: 2.969 MB / 286.1 MB Notification: Performance of NFTyping.typeComponents: time 3.997e-05/0.1383, allocations: 7.938 kB / 351.5 MB, free: 2.961 MB / 286.1 MB Notification: Performance of NFTyping.typeBindings: time 4.664e-05/0.1384, allocations: 0 / 351.5 MB, free: 2.961 MB / 286.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003337/0.1387, allocations: 33.28 kB / 351.5 MB, free: 2.93 MB / 286.1 MB Notification: Performance of NFFlatten.flatten: time 9.094e-05/0.1388, allocations: 23.98 kB / 351.6 MB, free: 2.906 MB / 286.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001293/0.1389, allocations: 11.98 kB / 351.6 MB, free: 2.895 MB / 286.1 MB Notification: Performance of NFEvalConstants.evaluate: time 4.991e-05/0.139, allocations: 15.92 kB / 351.6 MB, free: 2.879 MB / 286.1 MB Notification: Performance of NFSimplifyModel.simplify: time 5.17e-05/0.1391, allocations: 7.938 kB / 351.6 MB, free: 2.871 MB / 286.1 MB Notification: Performance of NFPackage.collectConstants: time 1.842e-05/0.1391, allocations: 0 / 351.6 MB, free: 2.871 MB / 286.1 MB Notification: Performance of NFFlatten.collectFunctions: time 1.3e-05/0.1391, allocations: 4 kB / 351.6 MB, free: 2.867 MB / 286.1 MB Notification: Performance of NFScalarize.scalarize: time 2.433e-05/0.1391, allocations: 7.984 kB / 351.6 MB, free: 2.859 MB / 286.1 MB Notification: Performance of NFVerifyModel.verify: time 4.942e-05/0.1392, allocations: 19.88 kB / 351.6 MB, free: 2.84 MB / 286.1 MB Notification: Performance of NFConvertDAE.convert: time 0.000109/0.1393, allocations: 31.89 kB / 351.7 MB, free: 2.809 MB / 286.1 MB Notification: Performance of FrontEnd - DAE generated: time 6.532e-06/0.1393, allocations: 7.922 kB / 351.7 MB, free: 2.801 MB / 286.1 MB Notification: Performance of FrontEnd: time 1.392e-06/0.1393, allocations: 0 / 351.7 MB, free: 2.801 MB / 286.1 MB Notification: Performance of Transformations before backend: time 1.099e-05/0.1393, allocations: 0 / 351.7 MB, free: 2.801 MB / 286.1 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 7 * Number of variables: 7 Notification: Performance of Generate backend data structure: time 0.0004767/0.1398, allocations: 339.7 kB / 352 MB, free: 2.418 MB / 286.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.43e-05/0.1399, allocations: 15.88 kB / 352 MB, free: 2.402 MB / 286.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.31e-05/0.1399, allocations: 8.844 kB / 352 MB, free: 2.395 MB / 286.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000195/0.1401, allocations: 172.4 kB / 352.2 MB, free: 2.188 MB / 286.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.177e-05/0.1401, allocations: 4.375 kB / 352.2 MB, free: 2.184 MB / 286.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.624e-05/0.1402, allocations: 4.375 kB / 352.2 MB, free: 2.18 MB / 286.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003646/0.1405, allocations: 119.8 kB / 352.3 MB, free: 2.051 MB / 286.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 8.345e-06/0.1406, allocations: 192 / 352.3 MB, free: 2.051 MB / 286.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.193e-05/0.1406, allocations: 3.938 kB / 352.3 MB, free: 2.047 MB / 286.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.921e-06/0.1406, allocations: 0 / 352.3 MB, free: 2.047 MB / 286.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001207/0.1407, allocations: 31.91 kB / 352.4 MB, free: 2.016 MB / 286.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001533/0.1409, allocations: 169.5 kB / 352.5 MB, free: 1.801 MB / 286.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0001625/0.141, allocations: 50.58 kB / 352.6 MB, free: 1.742 MB / 286.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 8.248e-05/0.1411, allocations: 32.88 kB / 352.6 MB, free: 1.707 MB / 286.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.323e-05/0.1412, allocations: 7.938 kB / 352.6 MB, free: 1.699 MB / 286.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.258e-05/0.1412, allocations: 30.56 kB / 352.6 MB, free: 1.66 MB / 286.1 MB Notification: Performance of pre-optimization done (n=4): time 9.41e-07/0.1412, allocations: 0 / 352.6 MB, free: 1.66 MB / 286.1 MB Notification: Performance of matching and sorting (n=4): time 0.0002944/0.1415, allocations: 89.53 kB / 352.7 MB, free: 1.566 MB / 286.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.536e-05/0.1416, allocations: 51.41 kB / 352.8 MB, free: 1.504 MB / 286.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001315/0.1417, allocations: 109.8 kB / 352.9 MB, free: 1.387 MB / 286.1 MB Notification: Performance of collectPreVariables (initialization): time 1.638e-05/0.1417, allocations: 29.7 kB / 352.9 MB, free: 1.352 MB / 286.1 MB Notification: Performance of collectInitialEqns (initialization): time 3.993e-05/0.1418, allocations: 84.14 kB / 353 MB, free: 1.266 MB / 286.1 MB Notification: Performance of collectInitialBindings (initialization): time 1.427e-05/0.1418, allocations: 0 / 353 MB, free: 1.266 MB / 286.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.251e-05/0.1418, allocations: 17.72 kB / 353 MB, free: 1.242 MB / 286.1 MB Notification: Performance of setup shared object (initialization): time 0.0001068/0.1419, allocations: 314.8 kB / 353.3 MB, free: 0.9258 MB / 286.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 1.397e-05/0.142, allocations: 12 kB / 353.3 MB, free: 0.9141 MB / 286.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 3.118e-05/0.142, allocations: 31.44 kB / 353.4 MB, free: 0.8711 MB / 286.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 4.633e-05/0.1421, allocations: 35.36 kB / 353.4 MB, free: 0.8242 MB / 286.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.934e-06/0.1421, allocations: 8 kB / 353.4 MB, free: 0.8164 MB / 286.1 MB Notification: Performance of matching and sorting (n=5) (initialization): time 8.592e-05/0.1422, allocations: 61.47 kB / 353.5 MB, free: 0.75 MB / 286.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.405e-05/0.1422, allocations: 8 kB / 353.5 MB, free: 0.7422 MB / 286.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.141e-06/0.1422, allocations: 3.938 kB / 353.5 MB, free: 0.7383 MB / 286.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.394e-05/0.1422, allocations: 0 / 353.5 MB, free: 0.7383 MB / 286.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 6.44e-05/0.1423, allocations: 8 kB / 353.5 MB, free: 0.7305 MB / 286.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 4.799e-06/0.1423, allocations: 0 / 353.5 MB, free: 0.7305 MB / 286.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 2.357e-05/0.1423, allocations: 4 kB / 353.5 MB, free: 0.7266 MB / 286.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.471e-06/0.1423, allocations: 4.125 kB / 353.5 MB, free: 0.7227 MB / 286.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 4 * Number of states: 0 () * Number of discrete variables: 5 ($CLKPRE.step.counter,step.counter,step.y,assignClock1.y,assignClock1.u) * Number of discrete states: 0 () * Number of clocked states: 1 (step.counter) * Top-level inputs: 0 Notification: Strong component statistics for initialization (5): * Single equations (assignments): 5 * 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 7.104e-05/0.1424, allocations: 113.8 kB / 353.6 MB, free: 0.6016 MB / 286.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001446/0.1425, allocations: 69.61 kB / 353.7 MB, free: 0.5273 MB / 286.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.047e-05/0.1426, allocations: 11.83 kB / 353.7 MB, free: 0.5078 MB / 286.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.624e-06/0.1426, allocations: 0 / 353.7 MB, free: 0.5078 MB / 286.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.368e-06/0.1426, allocations: 0 / 353.7 MB, free: 0.5078 MB / 286.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.886e-06/0.1426, allocations: 0 / 353.7 MB, free: 0.5078 MB / 286.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001409/0.1428, allocations: 157.6 kB / 353.8 MB, free: 312 kB / 286.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.322e-06/0.1428, allocations: 3.938 kB / 353.8 MB, free: 308 kB / 286.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 5.78e-05/0.1428, allocations: 11.98 kB / 353.8 MB, free: 296 kB / 286.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 3.787e-06/0.1428, allocations: 8 kB / 353.9 MB, free: 288 kB / 286.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.026e-05/0.1429, allocations: 7.938 kB / 353.9 MB, free: 280 kB / 286.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.994e-06/0.1429, allocations: 0 / 353.9 MB, free: 280 kB / 286.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.102e-06/0.1429, allocations: 3.938 kB / 353.9 MB, free: 276 kB / 286.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002323/0.1431, allocations: 93.03 kB / 354 MB, free: 164 kB / 286.1 MB Notification: Performance of postOpt removeConstants (simulation): time 4.015e-05/0.1432, allocations: 77.11 kB / 354 MB, free: 68 kB / 286.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.845e-05/0.1432, allocations: 8.312 kB / 354 MB, free: 60 kB / 286.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 3.201e-05/0.1432, allocations: 4 kB / 354 MB, free: 56 kB / 286.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.627e-06/0.1432, allocations: 0 / 354 MB, free: 56 kB / 286.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.853e-06/0.1432, allocations: 11.98 kB / 354.1 MB, free: 44 kB / 286.1 MB Notification: Performance of sorting global known variables: time 6.242e-05/0.1433, allocations: 83.28 kB / 354.1 MB, free: 15.96 MB / 302.1 MB Notification: Performance of sort global known variables: time 4.11e-07/0.1433, allocations: 0 / 354.1 MB, free: 15.96 MB / 302.1 MB Notification: Performance of remove unused functions: time 0.0001858/0.1435, allocations: 4 kB / 354.1 MB, free: 15.96 MB / 302.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * Number of states: 0 () * Number of discrete variables: 4 (assignClock1.u,assignClock1.y,step.y,step.counter) * Number of discrete states: 0 () * Number of clocked states: 1 (step.counter) * Top-level inputs: 0 Notification: Strong component statistics for simulation (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 Backend phase and start with SimCode phase: time 0.0001064/0.1436, allocations: 99.19 kB / 354.2 MB, free: 15.85 MB / 302.1 MB Notification: Performance of simCode: created initialization part: time 0.0001429/0.1438, allocations: 40.09 kB / 354.3 MB, free: 15.81 MB / 302.1 MB Notification: Performance of simCode: created event and clocks part: time 2.765e-06/0.1438, allocations: 4.062 kB / 354.3 MB, free: 15.81 MB / 302.1 MB Notification: Performance of simCode: created simulation system equations: time 1.232e-06/0.1438, allocations: 0 / 354.3 MB, free: 15.81 MB / 302.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003108/0.1441, allocations: 34.78 kB / 354.3 MB, free: 15.78 MB / 302.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0003175/0.1444, allocations: 117.4 kB / 354.4 MB, free: 15.63 MB / 302.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002294/0.1447, allocations: 0.6808 MB / 355.1 MB, free: 14.93 MB / 302.1 MB Notification: Performance of simCode: alias equations: time 2.373e-05/0.1447, allocations: 7.984 kB / 355.1 MB, free: 14.92 MB / 302.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 2.884e-05/0.1447, allocations: 15.44 kB / 355.1 MB, free: 14.9 MB / 302.1 MB Notification: Performance of SimCode: time 2.31e-07/0.1447, allocations: 0 / 355.1 MB, free: 14.9 MB / 302.1 MB Notification: Performance of Templates: time 0.002779/0.1475, allocations: 437.1 kB / 355.6 MB, free: 14.48 MB / 302.1 MB make -j1 -f Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.IntegerSignals.TickBasedStep.makefile (rm -f Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.IntegerSignals.TickBasedStep.pipe ; mkfifo Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.IntegerSignals.TickBasedStep.pipe ; head -c 1048576 < Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.IntegerSignals.TickBasedStep.pipe >> ../files/Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.IntegerSignals.TickBasedStep.sim & ./Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.IntegerSignals.TickBasedStep -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.IntegerSignals.TickBasedStep.pipe 2>&1) diffSimulationResults("Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.IntegerSignals.TickBasedStep_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Clocked/Examples/Elementary/IntegerSignals/TickBasedStep/TickBasedStep.csv","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.IntegerSignals.TickBasedStep.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches