Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_Synchronous_Modelica_Synchronous.Examples.Elementary.IntegerSignals.TimeBasedStep.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.TimeBasedStep,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="Time|assignClock1.y|step.y",fileNamePrefix="Modelica_Synchronous_Modelica_Synchronous.Examples.Elementary.IntegerSignals.TimeBasedStep") translateModel(Modelica_Synchronous.Examples.Elementary.IntegerSignals.TimeBasedStep,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="Time|assignClock1.y|step.y",fileNamePrefix="Modelica_Synchronous_Modelica_Synchronous.Examples.Elementary.IntegerSignals.TimeBasedStep") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.008371/0.008371, allocations: 93.66 kB / 15.91 MB, free: 6.273 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.001558/0.001558, allocations: 200.2 kB / 16.84 MB, free: 6.188 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.77/1.77, allocations: 205.1 MB / 222.7 MB, free: 4.746 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.08522/0.08522, allocations: 12.59 MB / 282.6 MB, free: 8.852 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.0016/0.0016, allocations: 79.89 kB / 342.8 MB, free: 21.2 MB / 254.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1282/0.1298, allocations: 49.4 MB / 392.2 MB, free: 3.715 MB / 286.1 MB Notification: Performance of NFInst.instantiate(Modelica_Synchronous.Examples.Elementary.IntegerSignals.TimeBasedStep): time 0.003063/0.133, allocations: 1.495 MB / 393.7 MB, free: 2.203 MB / 286.1 MB Notification: Performance of NFInst.instExpressions: time 0.0003158/0.1333, allocations: 95.75 kB / 393.8 MB, free: 2.109 MB / 286.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 8.51e-05/0.1334, allocations: 0 / 393.8 MB, free: 2.109 MB / 286.1 MB Notification: Performance of NFTyping.typeComponents: time 4.269e-05/0.1335, allocations: 0 / 393.8 MB, free: 2.109 MB / 286.1 MB Notification: Performance of NFTyping.typeBindings: time 5.274e-05/0.1335, allocations: 7.922 kB / 393.8 MB, free: 2.102 MB / 286.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003289/0.1339, allocations: 15.98 kB / 393.8 MB, free: 2.086 MB / 286.1 MB Notification: Performance of NFFlatten.flatten: time 0.0001305/0.134, allocations: 35.86 kB / 393.8 MB, free: 2.051 MB / 286.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001519/0.1342, allocations: 8 kB / 393.8 MB, free: 2.043 MB / 286.1 MB Notification: Performance of NFEvalConstants.evaluate: time 3.861e-05/0.1342, allocations: 4 kB / 393.8 MB, free: 2.039 MB / 286.1 MB Notification: Performance of NFSimplifyModel.simplify: time 7.187e-05/0.1343, allocations: 19.86 kB / 393.9 MB, free: 2.02 MB / 286.1 MB Notification: Performance of NFPackage.collectConstants: time 2.086e-05/0.1343, allocations: 0 / 393.9 MB, free: 2.02 MB / 286.1 MB Notification: Performance of NFFlatten.collectFunctions: time 1.37e-05/0.1343, allocations: 0 / 393.9 MB, free: 2.02 MB / 286.1 MB Notification: Performance of NFScalarize.scalarize: time 2.718e-05/0.1344, allocations: 7.984 kB / 393.9 MB, free: 2.012 MB / 286.1 MB Notification: Performance of NFVerifyModel.verify: time 4.588e-05/0.1344, allocations: 11.94 kB / 393.9 MB, free: 2 MB / 286.1 MB Notification: Performance of NFConvertDAE.convert: time 0.000116/0.1345, allocations: 23.91 kB / 393.9 MB, free: 1.977 MB / 286.1 MB Notification: Performance of FrontEnd - DAE generated: time 7.614e-06/0.1346, allocations: 0 / 393.9 MB, free: 1.977 MB / 286.1 MB Notification: Performance of FrontEnd: time 1.412e-06/0.1346, allocations: 4 kB / 393.9 MB, free: 1.973 MB / 286.1 MB Notification: Performance of Transformations before backend: time 7.554e-06/0.1346, allocations: 0 / 393.9 MB, free: 1.973 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.0005824/0.1352, allocations: 351.6 kB / 394.3 MB, free: 1.578 MB / 286.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.966e-05/0.1352, allocations: 8.031 kB / 394.3 MB, free: 1.57 MB / 286.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.931e-05/0.1353, allocations: 4.875 kB / 394.3 MB, free: 1.566 MB / 286.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002035/0.1355, allocations: 180.2 kB / 394.4 MB, free: 1.352 MB / 286.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.158e-05/0.1355, allocations: 4.375 kB / 394.4 MB, free: 1.348 MB / 286.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.099e-05/0.1355, allocations: 384 / 394.5 MB, free: 1.348 MB / 286.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003256/0.1358, allocations: 107.9 kB / 394.6 MB, free: 1.23 MB / 286.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 7.935e-06/0.1359, allocations: 192 / 394.6 MB, free: 1.23 MB / 286.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.63e-05/0.1359, allocations: 7.938 kB / 394.6 MB, free: 1.223 MB / 286.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.051e-06/0.1359, allocations: 0 / 394.6 MB, free: 1.223 MB / 286.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 7.34e-05/0.136, allocations: 15.98 kB / 394.6 MB, free: 1.207 MB / 286.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001646/0.1361, allocations: 165.6 kB / 394.7 MB, free: 0.9961 MB / 286.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0001669/0.1363, allocations: 62.47 kB / 394.8 MB, free: 0.9258 MB / 286.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 6.646e-05/0.1364, allocations: 20.89 kB / 394.8 MB, free: 0.9023 MB / 286.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.384e-05/0.1364, allocations: 4.031 kB / 394.8 MB, free: 0.8984 MB / 286.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.469e-05/0.1364, allocations: 30.56 kB / 394.9 MB, free: 0.8594 MB / 286.1 MB Notification: Performance of pre-optimization done (n=4): time 9.11e-07/0.1365, allocations: 7.938 kB / 394.9 MB, free: 0.8516 MB / 286.1 MB Notification: Performance of matching and sorting (n=4): time 0.0002373/0.1367, allocations: 73.55 kB / 394.9 MB, free: 0.7734 MB / 286.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.914e-05/0.1368, allocations: 59.41 kB / 395 MB, free: 0.7031 MB / 286.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 8.902e-05/0.1369, allocations: 105.8 kB / 395.1 MB, free: 0.5898 MB / 286.1 MB Notification: Performance of collectPreVariables (initialization): time 1.156e-05/0.1369, allocations: 25.7 kB / 395.1 MB, free: 0.5586 MB / 286.1 MB Notification: Performance of collectInitialEqns (initialization): time 3.864e-05/0.1369, allocations: 84.14 kB / 395.2 MB, free: 484 kB / 286.1 MB Notification: Performance of collectInitialBindings (initialization): time 7.344e-06/0.1369, allocations: 0 / 395.2 MB, free: 484 kB / 286.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.618e-05/0.137, allocations: 13.72 kB / 395.2 MB, free: 464 kB / 286.1 MB Notification: Performance of setup shared object (initialization): time 0.0001325/0.1371, allocations: 322.8 kB / 395.5 MB, free: 132 kB / 286.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 1.179e-05/0.1371, allocations: 4 kB / 395.5 MB, free: 128 kB / 286.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 2.794e-05/0.1372, allocations: 27.44 kB / 395.6 MB, free: 88 kB / 286.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 4.05e-05/0.1372, allocations: 39.38 kB / 395.6 MB, free: 36 kB / 286.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.683e-06/0.1372, allocations: 0 / 395.6 MB, free: 36 kB / 286.1 MB Notification: Performance of matching and sorting (n=4) (initialization): time 9.12e-05/0.1373, allocations: 57.53 kB / 395.7 MB, free: 15.97 MB / 302.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.029e-05/0.1373, allocations: 4 kB / 395.7 MB, free: 15.97 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.314e-06/0.1374, allocations: 3.938 kB / 395.7 MB, free: 15.96 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.437e-05/0.1374, allocations: 4 kB / 395.7 MB, free: 15.96 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 6.857e-05/0.1375, allocations: 11.92 kB / 395.7 MB, free: 15.95 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.13e-05/0.1375, allocations: 4.125 kB / 395.7 MB, free: 15.95 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 2.205e-05/0.1375, allocations: 4 kB / 395.7 MB, free: 15.94 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.989e-06/0.1375, allocations: 0 / 395.7 MB, free: 15.94 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: 3 (assignClock1.y,assignClock1.u,step.y) * Number of discrete states: 0 () * Number of clocked states: 0 () * 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 9.738e-05/0.1376, allocations: 114.1 kB / 395.8 MB, free: 15.82 MB / 302.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001036/0.1377, allocations: 57.69 kB / 395.9 MB, free: 15.76 MB / 302.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 4.125e-05/0.1378, allocations: 19.77 kB / 395.9 MB, free: 15.73 MB / 302.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.635e-06/0.1378, allocations: 0 / 395.9 MB, free: 15.73 MB / 302.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.79e-06/0.1378, allocations: 0 / 395.9 MB, free: 15.73 MB / 302.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.789e-06/0.1378, allocations: 0 / 395.9 MB, free: 15.73 MB / 302.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001294/0.1379, allocations: 165.5 kB / 396 MB, free: 15.52 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.082e-06/0.138, allocations: 0 / 396 MB, free: 15.52 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 5.131e-05/0.138, allocations: 11.98 kB / 396 MB, free: 15.51 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.563e-06/0.138, allocations: 0 / 396 MB, free: 15.51 MB / 302.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.436e-06/0.138, allocations: 3.938 kB / 396.1 MB, free: 15.51 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.102e-06/0.138, allocations: 0 / 396.1 MB, free: 15.51 MB / 302.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.264e-06/0.138, allocations: 4 kB / 396.1 MB, free: 15.5 MB / 302.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001276/0.1382, allocations: 81.11 kB / 396.1 MB, free: 15.41 MB / 302.1 MB Notification: Performance of postOpt removeConstants (simulation): time 3.587e-05/0.1382, allocations: 81.48 kB / 396.2 MB, free: 15.31 MB / 302.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.497e-05/0.1382, allocations: 3.938 kB / 396.2 MB, free: 15.3 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 2.401e-05/0.1383, allocations: 4 kB / 396.2 MB, free: 15.3 MB / 302.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 2.574e-06/0.1383, allocations: 0 / 396.2 MB, free: 15.3 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.517e-06/0.1383, allocations: 0 / 396.2 MB, free: 15.3 MB / 302.1 MB Notification: Performance of sorting global known variables: time 4.035e-05/0.1383, allocations: 87.27 kB / 396.3 MB, free: 15.21 MB / 302.1 MB Notification: Performance of sort global known variables: time 1.11e-07/0.1383, allocations: 0 / 396.3 MB, free: 15.21 MB / 302.1 MB Notification: Performance of remove unused functions: time 0.0002084/0.1386, allocations: 7.938 kB / 396.3 MB, free: 15.21 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: 3 (step.y,assignClock1.u,assignClock1.y) * Number of discrete states: 0 () * Number of clocked states: 0 () * 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.0001005/0.1387, allocations: 99.19 kB / 396.4 MB, free: 15.1 MB / 302.1 MB Notification: Performance of simCode: created initialization part: time 0.0001049/0.1388, allocations: 27.97 kB / 396.4 MB, free: 15.07 MB / 302.1 MB Notification: Performance of simCode: created event and clocks part: time 2.314e-06/0.1388, allocations: 0 / 396.4 MB, free: 15.07 MB / 302.1 MB Notification: Performance of simCode: created simulation system equations: time 6.91e-07/0.1388, allocations: 0 / 396.4 MB, free: 15.07 MB / 302.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002231/0.139, allocations: 27.92 kB / 396.5 MB, free: 15.05 MB / 302.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0002836/0.1393, allocations: 123.4 kB / 396.6 MB, free: 14.9 MB / 302.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002429/0.1396, allocations: 0.6848 MB / 397.3 MB, free: 14.19 MB / 302.1 MB Notification: Performance of simCode: alias equations: time 1.248e-05/0.1396, allocations: 0 / 397.3 MB, free: 14.19 MB / 302.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 2.508e-05/0.1396, allocations: 11.44 kB / 397.3 MB, free: 14.18 MB / 302.1 MB Notification: Performance of SimCode: time 2.11e-07/0.1396, allocations: 0 / 397.3 MB, free: 14.18 MB / 302.1 MB Notification: Performance of Templates: time 0.002454/0.1421, allocations: 308.7 kB / 397.6 MB, free: 13.88 MB / 302.1 MB make -j1 -f Modelica_Synchronous_Modelica_Synchronous.Examples.Elementary.IntegerSignals.TimeBasedStep.makefile (rm -f Modelica_Synchronous_Modelica_Synchronous.Examples.Elementary.IntegerSignals.TimeBasedStep.pipe ; mkfifo Modelica_Synchronous_Modelica_Synchronous.Examples.Elementary.IntegerSignals.TimeBasedStep.pipe ; head -c 1048576 < Modelica_Synchronous_Modelica_Synchronous.Examples.Elementary.IntegerSignals.TimeBasedStep.pipe >> ../files/Modelica_Synchronous_Modelica_Synchronous.Examples.Elementary.IntegerSignals.TimeBasedStep.sim & ./Modelica_Synchronous_Modelica_Synchronous.Examples.Elementary.IntegerSignals.TimeBasedStep -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Modelica_Synchronous_Modelica_Synchronous.Examples.Elementary.IntegerSignals.TimeBasedStep.pipe 2>&1) diffSimulationResults("Modelica_Synchronous_Modelica_Synchronous.Examples.Elementary.IntegerSignals.TimeBasedStep_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/testsuite/ReferenceFiles/Modelica_Synchronous/Modelica_Synchronous.Examples.Elementary.IntegerSignals.TimeBasedStep.mat","../files/Modelica_Synchronous_Modelica_Synchronous.Examples.Elementary.IntegerSignals.TimeBasedStep.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches