Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_Synchronous_Modelica_Synchronous.Examples.Elementary.BooleanSignals.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.BooleanSignals.TimeBasedStep,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="Time|assignClock1.y|step.y",fileNamePrefix="Modelica_Synchronous_Modelica_Synchronous.Examples.Elementary.BooleanSignals.TimeBasedStep") translateModel(Modelica_Synchronous.Examples.Elementary.BooleanSignals.TimeBasedStep,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="Time|assignClock1.y|step.y",fileNamePrefix="Modelica_Synchronous_Modelica_Synchronous.Examples.Elementary.BooleanSignals.TimeBasedStep") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.002137/0.002137, allocations: 104.8 kB / 16.03 MB, free: 6.32 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.002685/0.002686, allocations: 195.4 kB / 16.95 MB, free: 6.145 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.836/1.836, allocations: 205.1 MB / 222.8 MB, free: 4.707 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.08684/0.08684, allocations: 12.58 MB / 282.7 MB, free: 8.793 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.001688/0.001688, allocations: 87.88 kB / 343 MB, free: 21.08 MB / 254.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1252/0.1269, allocations: 49.4 MB / 392.4 MB, free: 3.609 MB / 286.1 MB Notification: Performance of NFInst.instantiate(Modelica_Synchronous.Examples.Elementary.BooleanSignals.TimeBasedStep): time 0.003215/0.1302, allocations: 1.491 MB / 393.9 MB, free: 2.102 MB / 286.1 MB Notification: Performance of NFInst.instExpressions: time 0.0002751/0.1305, allocations: 99.69 kB / 394 MB, free: 2.004 MB / 286.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 8.052e-05/0.1305, allocations: 0 / 394 MB, free: 2.004 MB / 286.1 MB Notification: Performance of NFTyping.typeComponents: time 3.481e-05/0.1306, allocations: 0 / 394 MB, free: 2.004 MB / 286.1 MB Notification: Performance of NFTyping.typeBindings: time 3.85e-05/0.1306, allocations: 0 / 394 MB, free: 2.004 MB / 286.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002696/0.1309, allocations: 23.91 kB / 394 MB, free: 1.98 MB / 286.1 MB Notification: Performance of NFFlatten.flatten: time 7.974e-05/0.131, allocations: 27.88 kB / 394 MB, free: 1.953 MB / 286.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001214/0.1311, allocations: 15.98 kB / 394 MB, free: 1.938 MB / 286.1 MB Notification: Performance of NFEvalConstants.evaluate: time 3.095e-05/0.1312, allocations: 11.98 kB / 394 MB, free: 1.926 MB / 286.1 MB Notification: Performance of NFSimplifyModel.simplify: time 3.233e-05/0.1312, allocations: 7.922 kB / 394 MB, free: 1.918 MB / 286.1 MB Notification: Performance of NFPackage.collectConstants: time 1.718e-05/0.1312, allocations: 4 kB / 394.1 MB, free: 1.914 MB / 286.1 MB Notification: Performance of NFFlatten.collectFunctions: time 9.658e-06/0.1312, allocations: 0 / 394.1 MB, free: 1.914 MB / 286.1 MB Notification: Performance of NFScalarize.scalarize: time 2.052e-05/0.1313, allocations: 11.94 kB / 394.1 MB, free: 1.902 MB / 286.1 MB Notification: Performance of NFVerifyModel.verify: time 3.486e-05/0.1313, allocations: 11.94 kB / 394.1 MB, free: 1.891 MB / 286.1 MB Notification: Performance of NFConvertDAE.convert: time 9.292e-05/0.1314, allocations: 20.19 kB / 394.1 MB, free: 1.871 MB / 286.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.687e-06/0.1314, allocations: 0 / 394.1 MB, free: 1.871 MB / 286.1 MB Notification: Performance of FrontEnd: time 1.593e-06/0.1314, allocations: 0 / 394.1 MB, free: 1.871 MB / 286.1 MB Notification: Performance of Transformations before backend: time 5.14e-06/0.1314, allocations: 4 kB / 394.1 MB, free: 1.867 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.0004331/0.1319, allocations: 339.4 kB / 394.4 MB, free: 1.484 MB / 286.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.807e-05/0.1319, allocations: 8.031 kB / 394.4 MB, free: 1.477 MB / 286.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.442e-05/0.132, allocations: 8.844 kB / 394.4 MB, free: 1.469 MB / 286.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001867/0.1321, allocations: 172.4 kB / 394.6 MB, free: 1.262 MB / 286.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.81e-05/0.1322, allocations: 384 / 394.6 MB, free: 1.262 MB / 286.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.026e-05/0.1322, allocations: 8.375 kB / 394.6 MB, free: 1.254 MB / 286.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002865/0.1325, allocations: 111.7 kB / 394.7 MB, free: 1.133 MB / 286.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 7.063e-06/0.1325, allocations: 4.125 kB / 394.7 MB, free: 1.129 MB / 286.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.149e-05/0.1325, allocations: 3.938 kB / 394.7 MB, free: 1.125 MB / 286.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.589e-06/0.1325, allocations: 0 / 394.7 MB, free: 1.125 MB / 286.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 5.967e-05/0.1326, allocations: 15.98 kB / 394.8 MB, free: 1.109 MB / 286.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001937/0.1328, allocations: 157.6 kB / 394.9 MB, free: 0.9062 MB / 286.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0001255/0.1329, allocations: 50.56 kB / 395 MB, free: 0.8477 MB / 286.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 5.138e-05/0.133, allocations: 20.92 kB / 395 MB, free: 0.8242 MB / 286.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.073e-05/0.133, allocations: 0 / 395 MB, free: 0.8242 MB / 286.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.442e-05/0.133, allocations: 38.5 kB / 395 MB, free: 0.7773 MB / 286.1 MB Notification: Performance of pre-optimization done (n=4): time 9.22e-07/0.133, allocations: 0 / 395 MB, free: 0.7773 MB / 286.1 MB Notification: Performance of matching and sorting (n=4): time 0.0001866/0.1332, allocations: 65.61 kB / 395.1 MB, free: 0.707 MB / 286.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.31e-05/0.1333, allocations: 55.41 kB / 395.1 MB, free: 0.6406 MB / 286.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 8.373e-05/0.1334, allocations: 105.8 kB / 395.2 MB, free: 0.5273 MB / 286.1 MB Notification: Performance of collectPreVariables (initialization): time 2.241e-05/0.1334, allocations: 29.7 kB / 395.3 MB, free: 0.4922 MB / 286.1 MB Notification: Performance of collectInitialEqns (initialization): time 3.625e-05/0.1335, allocations: 80.14 kB / 395.3 MB, free: 420 kB / 286.1 MB Notification: Performance of collectInitialBindings (initialization): time 9.779e-06/0.1335, allocations: 0 / 395.3 MB, free: 420 kB / 286.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.709e-05/0.1335, allocations: 21.66 kB / 395.4 MB, free: 392 kB / 286.1 MB Notification: Performance of setup shared object (initialization): time 0.0001318/0.1336, allocations: 318.8 kB / 395.7 MB, free: 64 kB / 286.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 1.368e-05/0.1337, allocations: 4 kB / 395.7 MB, free: 60 kB / 286.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 3.514e-05/0.1337, allocations: 31.56 kB / 395.7 MB, free: 16 kB / 286.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 6.701e-05/0.1338, allocations: 31.44 kB / 395.7 MB, free: 15.97 MB / 302.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.837e-06/0.1338, allocations: 0 / 395.7 MB, free: 15.97 MB / 302.1 MB Notification: Performance of matching and sorting (n=4) (initialization): time 8.001e-05/0.1339, allocations: 65.72 kB / 395.8 MB, free: 15.9 MB / 302.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.408e-05/0.1339, allocations: 4 kB / 395.8 MB, free: 15.9 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.196e-05/0.1339, allocations: 7.938 kB / 395.8 MB, free: 15.89 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.299e-05/0.1339, allocations: 4.094 kB / 395.8 MB, free: 15.89 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 4.659e-05/0.134, allocations: 7.984 kB / 395.8 MB, free: 15.88 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 9.398e-06/0.134, allocations: 3.984 kB / 395.8 MB, free: 15.88 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 1.932e-05/0.134, allocations: 0 / 395.8 MB, free: 15.88 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.071e-06/0.134, allocations: 4 kB / 395.8 MB, free: 15.87 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 7.501e-05/0.1341, allocations: 121.9 kB / 396 MB, free: 15.74 MB / 302.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 8.255e-05/0.1342, allocations: 45.69 kB / 396 MB, free: 15.69 MB / 302.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.081e-05/0.1342, allocations: 15.44 kB / 396 MB, free: 15.67 MB / 302.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.633e-06/0.1343, allocations: 0 / 396 MB, free: 15.67 MB / 302.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.949e-06/0.1343, allocations: 0 / 396 MB, free: 15.67 MB / 302.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.765e-06/0.1343, allocations: 0 / 396 MB, free: 15.67 MB / 302.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 8.852e-05/0.1344, allocations: 157.7 kB / 396.2 MB, free: 15.47 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 9.82e-07/0.1344, allocations: 0 / 396.2 MB, free: 15.47 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 1.615e-05/0.1344, allocations: 0 / 396.2 MB, free: 15.47 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.373e-06/0.1344, allocations: 4 kB / 396.2 MB, free: 15.46 MB / 302.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.115e-06/0.1344, allocations: 7.938 kB / 396.2 MB, free: 15.46 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.202e-06/0.1344, allocations: 0 / 396.2 MB, free: 15.46 MB / 302.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.52e-07/0.1344, allocations: 3.938 kB / 396.2 MB, free: 15.45 MB / 302.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001165/0.1345, allocations: 80.97 kB / 396.3 MB, free: 15.36 MB / 302.1 MB Notification: Performance of postOpt removeConstants (simulation): time 4.517e-05/0.1346, allocations: 85.09 kB / 396.4 MB, free: 15.25 MB / 302.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.35e-05/0.1346, allocations: 3.938 kB / 396.4 MB, free: 15.25 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 1.744e-05/0.1346, allocations: 0 / 396.4 MB, free: 15.25 MB / 302.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 2.435e-06/0.1346, allocations: 4 kB / 396.4 MB, free: 15.25 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.839e-06/0.1347, allocations: 4 kB / 396.4 MB, free: 15.24 MB / 302.1 MB Notification: Performance of sorting global known variables: time 4.087e-05/0.1347, allocations: 83.28 kB / 396.4 MB, free: 15.16 MB / 302.1 MB Notification: Performance of sort global known variables: time 1e-07/0.1347, allocations: 0 / 396.4 MB, free: 15.16 MB / 302.1 MB Notification: Performance of remove unused functions: time 0.0001824/0.1349, allocations: 0 / 396.4 MB, free: 15.16 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 8.809e-05/0.135, allocations: 103.4 kB / 396.5 MB, free: 15.05 MB / 302.1 MB Notification: Performance of simCode: created initialization part: time 0.0001005/0.1351, allocations: 23.94 kB / 396.6 MB, free: 15.03 MB / 302.1 MB Notification: Performance of simCode: created event and clocks part: time 3.908e-06/0.1351, allocations: 4.25 kB / 396.6 MB, free: 15.02 MB / 302.1 MB Notification: Performance of simCode: created simulation system equations: time 4.61e-07/0.1351, allocations: 4 kB / 396.6 MB, free: 15.02 MB / 302.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002104/0.1353, allocations: 27.92 kB / 396.6 MB, free: 14.99 MB / 302.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0002344/0.1356, allocations: 105.7 kB / 396.7 MB, free: 14.86 MB / 302.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003076/0.1359, allocations: 0.6883 MB / 397.4 MB, free: 14.15 MB / 302.1 MB Notification: Performance of simCode: alias equations: time 1.076e-05/0.1359, allocations: 0 / 397.4 MB, free: 14.15 MB / 302.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 2.164e-05/0.1359, allocations: 7.438 kB / 397.4 MB, free: 14.14 MB / 302.1 MB Notification: Performance of SimCode: time 2.11e-07/0.1359, allocations: 4 kB / 397.4 MB, free: 14.14 MB / 302.1 MB Notification: Performance of Templates: time 0.002049/0.138, allocations: 328.7 kB / 397.7 MB, free: 13.82 MB / 302.1 MB make -j1 -f Modelica_Synchronous_Modelica_Synchronous.Examples.Elementary.BooleanSignals.TimeBasedStep.makefile (rm -f Modelica_Synchronous_Modelica_Synchronous.Examples.Elementary.BooleanSignals.TimeBasedStep.pipe ; mkfifo Modelica_Synchronous_Modelica_Synchronous.Examples.Elementary.BooleanSignals.TimeBasedStep.pipe ; head -c 1048576 < Modelica_Synchronous_Modelica_Synchronous.Examples.Elementary.BooleanSignals.TimeBasedStep.pipe >> ../files/Modelica_Synchronous_Modelica_Synchronous.Examples.Elementary.BooleanSignals.TimeBasedStep.sim & ./Modelica_Synchronous_Modelica_Synchronous.Examples.Elementary.BooleanSignals.TimeBasedStep -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Modelica_Synchronous_Modelica_Synchronous.Examples.Elementary.BooleanSignals.TimeBasedStep.pipe 2>&1) diffSimulationResults("Modelica_Synchronous_Modelica_Synchronous.Examples.Elementary.BooleanSignals.TimeBasedStep_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/testsuite/ReferenceFiles/Modelica_Synchronous/Modelica_Synchronous.Examples.Elementary.BooleanSignals.TimeBasedStep.mat","../files/Modelica_Synchronous_Modelica_Synchronous.Examples.Elementary.BooleanSignals.TimeBasedStep.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches