Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_Synchronous_Modelica_Synchronous.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 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica_Synchronous 0.93.0-master/package.mo", uses=false) Using package Modelica_Synchronous with version 0.93.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica_Synchronous 0.93.0-master/package.mo) Using package Modelica with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+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_Synchronous.Examples.Elementary.IntegerSignals.TickBasedStep,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="Time|assignClock1.y",fileNamePrefix="Modelica_Synchronous_Modelica_Synchronous.Examples.Elementary.IntegerSignals.TickBasedStep") translateModel(Modelica_Synchronous.Examples.Elementary.IntegerSignals.TickBasedStep,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="Time|assignClock1.y",fileNamePrefix="Modelica_Synchronous_Modelica_Synchronous.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.006248/0.006248, allocations: 88.92 kB / 15.91 MB, free: 6.301 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.001149/0.001149, allocations: 199 kB / 16.83 MB, free: 6.234 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.827/1.827, allocations: 205.1 MB / 222.7 MB, free: 4.699 MB / 174.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica_Synchronous 0.93.0-master/package.mo): time 0.09/0.09, allocations: 12.6 MB / 282.6 MB, free: 8.766 MB / 238.1 MB Notification: Modelica requested package Complex of version 3.2.3. Complex 4.0.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Modelica requested package ModelicaServices of version 3.2.3. ModelicaServices 4.0.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Modelica_Synchronous requested package ModelicaServices of version 3.2.3. ModelicaServices 4.0.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Performance of FrontEnd - loaded program: time 0.001663/0.001663, allocations: 79.89 kB / 342.8 MB, free: 21.19 MB / 254.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1255/0.1272, allocations: 49.39 MB / 392.2 MB, free: 3.711 MB / 286.1 MB Notification: Performance of NFInst.instantiate(Modelica_Synchronous.Examples.Elementary.IntegerSignals.TickBasedStep): time 0.003302/0.1305, allocations: 1.48 MB / 393.7 MB, free: 2.215 MB / 286.1 MB Notification: Performance of NFInst.instExpressions: time 0.0002007/0.1307, allocations: 35.91 kB / 393.7 MB, free: 2.18 MB / 286.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 7.608e-05/0.1308, allocations: 3.938 kB / 393.7 MB, free: 2.176 MB / 286.1 MB Notification: Performance of NFTyping.typeComponents: time 3.708e-05/0.1309, allocations: 0 / 393.7 MB, free: 2.176 MB / 286.1 MB Notification: Performance of NFTyping.typeBindings: time 4.143e-05/0.1309, allocations: 0 / 393.7 MB, free: 2.176 MB / 286.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002908/0.1312, allocations: 23.97 kB / 393.7 MB, free: 2.152 MB / 286.1 MB Notification: Performance of NFFlatten.flatten: time 9.7e-05/0.1313, allocations: 23.94 kB / 393.8 MB, free: 2.129 MB / 286.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001363/0.1315, allocations: 15.98 kB / 393.8 MB, free: 2.113 MB / 286.1 MB Notification: Performance of NFEvalConstants.evaluate: time 4.336e-05/0.1315, allocations: 7.938 kB / 393.8 MB, free: 2.105 MB / 286.1 MB Notification: Performance of NFSimplifyModel.simplify: time 5.762e-05/0.1316, allocations: 15.92 kB / 393.8 MB, free: 2.09 MB / 286.1 MB Notification: Performance of NFPackage.collectConstants: time 1.993e-05/0.1316, allocations: 0 / 393.8 MB, free: 2.09 MB / 286.1 MB Notification: Performance of NFFlatten.collectFunctions: time 1.384e-05/0.1316, allocations: 4 kB / 393.8 MB, free: 2.086 MB / 286.1 MB Notification: Performance of NFScalarize.scalarize: time 2.622e-05/0.1317, allocations: 7.922 kB / 393.8 MB, free: 2.078 MB / 286.1 MB Notification: Performance of NFVerifyModel.verify: time 3.627e-05/0.1317, allocations: 15.92 kB / 393.8 MB, free: 2.062 MB / 286.1 MB Notification: Performance of NFConvertDAE.convert: time 9.764e-05/0.1318, allocations: 27.91 kB / 393.8 MB, free: 2.035 MB / 286.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.907e-06/0.1318, allocations: 0 / 393.8 MB, free: 2.035 MB / 286.1 MB Notification: Performance of FrontEnd: time 2.274e-06/0.1318, allocations: 0 / 393.8 MB, free: 2.035 MB / 286.1 MB Notification: Performance of Transformations before backend: time 7.364e-06/0.1318, allocations: 3.938 kB / 393.8 MB, free: 2.031 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.0005419/0.1324, allocations: 351.5 kB / 394.2 MB, free: 1.637 MB / 286.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.691e-05/0.1324, allocations: 8.031 kB / 394.2 MB, free: 1.629 MB / 286.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.742e-05/0.1325, allocations: 0.9375 kB / 394.2 MB, free: 1.629 MB / 286.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002545/0.1327, allocations: 180.3 kB / 394.4 MB, free: 1.414 MB / 286.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.146e-05/0.1328, allocations: 384 / 394.4 MB, free: 1.414 MB / 286.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.34e-05/0.1328, allocations: 8.312 kB / 394.4 MB, free: 1.406 MB / 286.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003965/0.1332, allocations: 119.8 kB / 394.5 MB, free: 1.277 MB / 286.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 9.468e-06/0.1332, allocations: 192 / 394.5 MB, free: 1.277 MB / 286.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.516e-05/0.1332, allocations: 3.938 kB / 394.5 MB, free: 1.273 MB / 286.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.55e-06/0.1332, allocations: 7.938 kB / 394.5 MB, free: 1.266 MB / 286.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001235/0.1334, allocations: 27.91 kB / 394.5 MB, free: 1.238 MB / 286.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0002607/0.1336, allocations: 157.7 kB / 394.7 MB, free: 1.035 MB / 286.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0001618/0.1338, allocations: 54.55 kB / 394.7 MB, free: 0.9727 MB / 286.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 8.118e-05/0.1339, allocations: 32.92 kB / 394.8 MB, free: 0.9375 MB / 286.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.173e-05/0.1339, allocations: 3.984 kB / 394.8 MB, free: 0.9336 MB / 286.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.083e-05/0.1339, allocations: 30.56 kB / 394.8 MB, free: 0.8945 MB / 286.1 MB Notification: Performance of pre-optimization done (n=4): time 1.022e-06/0.1339, allocations: 0 / 394.8 MB, free: 0.8945 MB / 286.1 MB Notification: Performance of matching and sorting (n=4): time 0.0002957/0.1342, allocations: 85.53 kB / 394.9 MB, free: 0.8047 MB / 286.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.076e-05/0.1343, allocations: 55.41 kB / 395 MB, free: 0.7383 MB / 286.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 9.675e-05/0.1344, allocations: 109.8 kB / 395.1 MB, free: 0.6211 MB / 286.1 MB Notification: Performance of collectPreVariables (initialization): time 1.413e-05/0.1344, allocations: 25.7 kB / 395.1 MB, free: 0.5898 MB / 286.1 MB Notification: Performance of collectInitialEqns (initialization): time 5.239e-05/0.1345, allocations: 92.14 kB / 395.2 MB, free: 0.4961 MB / 286.1 MB Notification: Performance of collectInitialBindings (initialization): time 1.852e-05/0.1345, allocations: 3.906 kB / 395.2 MB, free: 0.4922 MB / 286.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.548e-05/0.1346, allocations: 21.7 kB / 395.2 MB, free: 476 kB / 286.1 MB Notification: Performance of setup shared object (initialization): time 0.0001329/0.1347, allocations: 310.8 kB / 395.5 MB, free: 156 kB / 286.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 1.589e-05/0.1347, allocations: 8 kB / 395.5 MB, free: 148 kB / 286.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 3.088e-05/0.1348, allocations: 27.42 kB / 395.5 MB, free: 108 kB / 286.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 4.541e-05/0.1348, allocations: 39.38 kB / 395.6 MB, free: 56 kB / 286.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.084e-06/0.1348, allocations: 0 / 395.6 MB, free: 56 kB / 286.1 MB Notification: Performance of matching and sorting (n=5) (initialization): time 0.0001011/0.1349, allocations: 65.56 kB / 395.6 MB, free: 15.98 MB / 302.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.604e-05/0.135, allocations: 4 kB / 395.6 MB, free: 15.98 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.045e-06/0.135, allocations: 12.06 kB / 395.7 MB, free: 15.97 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.27e-05/0.135, allocations: 0 / 395.7 MB, free: 15.97 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 6.946e-05/0.1351, allocations: 8 kB / 395.7 MB, free: 15.96 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.272e-06/0.1351, allocations: 0 / 395.7 MB, free: 15.96 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 2.018e-05/0.1351, allocations: 4 kB / 395.7 MB, free: 15.96 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.637e-06/0.1351, allocations: 0 / 395.7 MB, free: 15.96 MB / 302.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 9.299e-05/0.1352, allocations: 117.8 kB / 395.8 MB, free: 15.83 MB / 302.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001576/0.1354, allocations: 73.5 kB / 395.9 MB, free: 15.75 MB / 302.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.117e-05/0.1354, allocations: 15.78 kB / 395.9 MB, free: 15.73 MB / 302.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.543e-06/0.1354, allocations: 4 kB / 395.9 MB, free: 15.73 MB / 302.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.322e-06/0.1354, allocations: 0 / 395.9 MB, free: 15.73 MB / 302.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.286e-06/0.1354, allocations: 0 / 395.9 MB, free: 15.73 MB / 302.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001177/0.1356, allocations: 161.6 kB / 396 MB, free: 15.52 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 8.71e-07/0.1356, allocations: 0 / 396 MB, free: 15.52 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 5.825e-05/0.1356, allocations: 8 kB / 396 MB, free: 15.52 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.492e-06/0.1356, allocations: 0 / 396 MB, free: 15.52 MB / 302.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.015e-05/0.1357, allocations: 3.938 kB / 396 MB, free: 15.51 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.212e-06/0.1357, allocations: 4 kB / 396 MB, free: 15.51 MB / 302.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.51e-07/0.1357, allocations: 0 / 396 MB, free: 15.51 MB / 302.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001785/0.1359, allocations: 97.03 kB / 396.1 MB, free: 15.39 MB / 302.1 MB Notification: Performance of postOpt removeConstants (simulation): time 4.018e-05/0.1359, allocations: 81.02 kB / 396.2 MB, free: 15.3 MB / 302.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.023e-05/0.1359, allocations: 7.938 kB / 396.2 MB, free: 15.29 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 3.273e-05/0.136, allocations: 4 kB / 396.2 MB, free: 15.29 MB / 302.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.448e-06/0.136, allocations: 3.984 kB / 396.2 MB, free: 15.28 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.963e-06/0.136, allocations: 4.375 kB / 396.2 MB, free: 15.28 MB / 302.1 MB Notification: Performance of sorting global known variables: time 5.162e-05/0.136, allocations: 87.28 kB / 396.3 MB, free: 15.19 MB / 302.1 MB Notification: Performance of sort global known variables: time 1.31e-07/0.136, allocations: 0 / 396.3 MB, free: 15.19 MB / 302.1 MB Notification: Performance of remove unused functions: time 0.0001856/0.1362, allocations: 8 kB / 396.3 MB, free: 15.18 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.0001018/0.1363, allocations: 95.23 kB / 396.4 MB, free: 15.08 MB / 302.1 MB Notification: Performance of simCode: created initialization part: time 0.0001366/0.1365, allocations: 35.91 kB / 396.5 MB, free: 15.05 MB / 302.1 MB Notification: Performance of simCode: created event and clocks part: time 2.255e-06/0.1365, allocations: 0 / 396.5 MB, free: 15.05 MB / 302.1 MB Notification: Performance of simCode: created simulation system equations: time 4.61e-07/0.1365, allocations: 0 / 396.5 MB, free: 15.05 MB / 302.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003408/0.1369, allocations: 31.95 kB / 396.5 MB, free: 15.02 MB / 302.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0003186/0.1372, allocations: 123.9 kB / 396.6 MB, free: 14.87 MB / 302.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003838/0.1376, allocations: 0.6809 MB / 397.3 MB, free: 14.16 MB / 302.1 MB Notification: Performance of simCode: alias equations: time 2.585e-05/0.1376, allocations: 7.984 kB / 397.3 MB, free: 14.15 MB / 302.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 2.785e-05/0.1376, allocations: 7.438 kB / 397.3 MB, free: 14.14 MB / 302.1 MB Notification: Performance of SimCode: time 3.31e-07/0.1376, allocations: 0 / 397.3 MB, free: 14.14 MB / 302.1 MB Notification: Performance of Templates: time 0.002458/0.1401, allocations: 423.6 kB / 397.7 MB, free: 13.73 MB / 302.1 MB make -j1 -f Modelica_Synchronous_Modelica_Synchronous.Examples.Elementary.IntegerSignals.TickBasedStep.makefile (rm -f Modelica_Synchronous_Modelica_Synchronous.Examples.Elementary.IntegerSignals.TickBasedStep.pipe ; mkfifo Modelica_Synchronous_Modelica_Synchronous.Examples.Elementary.IntegerSignals.TickBasedStep.pipe ; head -c 1048576 < Modelica_Synchronous_Modelica_Synchronous.Examples.Elementary.IntegerSignals.TickBasedStep.pipe >> ../files/Modelica_Synchronous_Modelica_Synchronous.Examples.Elementary.IntegerSignals.TickBasedStep.sim & ./Modelica_Synchronous_Modelica_Synchronous.Examples.Elementary.IntegerSignals.TickBasedStep -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Modelica_Synchronous_Modelica_Synchronous.Examples.Elementary.IntegerSignals.TickBasedStep.pipe 2>&1) diffSimulationResults("Modelica_Synchronous_Modelica_Synchronous.Examples.Elementary.IntegerSignals.TickBasedStep_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/testsuite/ReferenceFiles/Modelica_Synchronous/Modelica_Synchronous.Examples.Elementary.IntegerSignals.TickBasedStep.mat","../files/Modelica_Synchronous_Modelica_Synchronous.Examples.Elementary.IntegerSignals.TickBasedStep.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches