Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_Synchronous_Modelica_Synchronous.Examples.Elementary.IntegerSignals.BackSample.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.BackSample,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="Time|backSample1.y|sample.y|shiftSample1.y",fileNamePrefix="Modelica_Synchronous_Modelica_Synchronous.Examples.Elementary.IntegerSignals.BackSample") translateModel(Modelica_Synchronous.Examples.Elementary.IntegerSignals.BackSample,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="Time|backSample1.y|sample.y|shiftSample1.y",fileNamePrefix="Modelica_Synchronous_Modelica_Synchronous.Examples.Elementary.IntegerSignals.BackSample") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001143/0.001142, allocations: 96.7 kB / 15.74 MB, free: 424 kB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.002129/0.002129, allocations: 174.3 kB / 16.62 MB, free: 6.434 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.919/1.919, allocations: 205.4 MB / 222.8 MB, free: 5.527 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.1005/0.1005, allocations: 12.6 MB / 283.7 MB, free: 8.566 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.0007594/0.0007594, allocations: 16 kB / 344.5 MB, free: 21.26 MB / 254.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1257/0.1265, allocations: 50.39 MB / 394.9 MB, free: 2.773 MB / 286.1 MB Notification: Performance of NFInst.instantiate(Modelica_Synchronous.Examples.Elementary.IntegerSignals.BackSample): time 0.003195/0.1297, allocations: 1.572 MB / 396.5 MB, free: 1.188 MB / 286.1 MB Notification: Performance of NFInst.instExpressions: time 0.002175/0.1319, allocations: 1.011 MB / 397.5 MB, free: 172 kB / 286.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001891/0.1322, allocations: 7.938 kB / 397.5 MB, free: 164 kB / 286.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0003575/0.1325, allocations: 63.8 kB / 397.6 MB, free: 100 kB / 286.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0002921/0.1329, allocations: 67.73 kB / 397.6 MB, free: 32 kB / 286.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0007248/0.1336, allocations: 207.5 kB / 397.8 MB, free: 15.83 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 0.000248/0.1339, allocations: 155.5 kB / 398 MB, free: 15.68 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001325/0.134, allocations: 29.55 kB / 398 MB, free: 15.65 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001061/0.1341, allocations: 63.66 kB / 398.1 MB, free: 15.59 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001135/0.1342, allocations: 71.67 kB / 398.1 MB, free: 15.52 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 1.861e-05/0.1343, allocations: 0 / 398.1 MB, free: 15.52 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001381/0.1344, allocations: 51.97 kB / 398.2 MB, free: 15.46 MB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 8.869e-05/0.1345, allocations: 47.83 kB / 398.2 MB, free: 15.42 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 6.82e-05/0.1346, allocations: 53.58 kB / 398.3 MB, free: 15.36 MB / 302.1 MB Notification: Performance of NFConvertDAE.convert: time 0.000268/0.1349, allocations: 179.9 kB / 398.5 MB, free: 15.18 MB / 302.1 MB Notification: Performance of FrontEnd - DAE generated: time 1.007e-05/0.1349, allocations: 0 / 398.5 MB, free: 15.18 MB / 302.1 MB Notification: Performance of FrontEnd: time 2.595e-06/0.1349, allocations: 3.938 kB / 398.5 MB, free: 15.18 MB / 302.1 MB Notification: Performance of Transformations before backend: time 7.384e-06/0.1349, allocations: 0 / 398.5 MB, free: 15.18 MB / 302.1 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 16 * Number of variables: 16 Notification: Performance of Generate backend data structure: time 0.0009285/0.1358, allocations: 0.5077 MB / 399 MB, free: 14.62 MB / 302.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.677e-05/0.1359, allocations: 8.031 kB / 399 MB, free: 14.61 MB / 302.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 7.841e-05/0.136, allocations: 31.62 kB / 399 MB, free: 14.58 MB / 302.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004516/0.1364, allocations: 282.5 kB / 399.3 MB, free: 14.26 MB / 302.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.032e-05/0.1365, allocations: 15.88 kB / 399.3 MB, free: 14.24 MB / 302.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.188e-05/0.1365, allocations: 11.98 kB / 399.3 MB, free: 14.23 MB / 302.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.000442/0.137, allocations: 172.4 kB / 399.5 MB, free: 14.03 MB / 302.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.079e-05/0.137, allocations: 0 / 399.5 MB, free: 14.03 MB / 302.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.103e-05/0.137, allocations: 8 kB / 399.5 MB, free: 14.02 MB / 302.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.286e-05/0.137, allocations: 7.984 kB / 399.5 MB, free: 14.02 MB / 302.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001187/0.1372, allocations: 43.86 kB / 399.6 MB, free: 13.97 MB / 302.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0006122/0.1378, allocations: 395.2 kB / 399.9 MB, free: 13.53 MB / 302.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002742/0.1381, allocations: 134.5 kB / 400.1 MB, free: 13.36 MB / 302.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001184/0.1382, allocations: 63.41 kB / 400.1 MB, free: 13.29 MB / 302.1 MB Notification: Performance of preOpt evalFunc (simulation): time 3.727e-05/0.1382, allocations: 8 kB / 400.1 MB, free: 13.28 MB / 302.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002276/0.1385, allocations: 75.31 kB / 400.2 MB, free: 13.19 MB / 302.1 MB Notification: Performance of pre-optimization done (n=11): time 1.362e-06/0.1385, allocations: 0 / 400.2 MB, free: 13.19 MB / 302.1 MB Notification: Performance of matching and sorting (n=11): time 0.0004271/0.1389, allocations: 177.2 kB / 400.4 MB, free: 13.01 MB / 302.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001294/0.1391, allocations: 187.9 kB / 400.6 MB, free: 12.79 MB / 302.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003604/0.1394, allocations: 334.6 kB / 400.9 MB, free: 12.45 MB / 302.1 MB Notification: Performance of collectPreVariables (initialization): time 4.449e-05/0.1395, allocations: 29.7 kB / 400.9 MB, free: 12.41 MB / 302.1 MB Notification: Performance of collectInitialEqns (initialization): time 9.665e-05/0.1396, allocations: 132.5 kB / 401.1 MB, free: 12.28 MB / 302.1 MB Notification: Performance of collectInitialBindings (initialization): time 2.706e-05/0.1396, allocations: 20.11 kB / 401.1 MB, free: 12.26 MB / 302.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 1.006e-05/0.1396, allocations: 8 kB / 401.1 MB, free: 12.25 MB / 302.1 MB Notification: Performance of setup shared object (initialization): time 0.0001571/0.1398, allocations: 326.8 kB / 401.4 MB, free: 11.93 MB / 302.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 6.846e-05/0.1399, allocations: 31.92 kB / 401.4 MB, free: 11.89 MB / 302.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001088/0.14, allocations: 100.6 kB / 401.5 MB, free: 11.77 MB / 302.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 8.401e-05/0.1401, allocations: 35.98 kB / 401.6 MB, free: 11.73 MB / 302.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.504e-06/0.1401, allocations: 0 / 401.6 MB, free: 11.73 MB / 302.1 MB Notification: Performance of matching and sorting (n=13) (initialization): time 0.0002371/0.1403, allocations: 133.5 kB / 401.7 MB, free: 11.59 MB / 302.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.952e-05/0.1404, allocations: 13.28 kB / 401.7 MB, free: 11.58 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.051e-06/0.1404, allocations: 0 / 401.7 MB, free: 11.58 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.628e-05/0.1404, allocations: 4 kB / 401.7 MB, free: 11.58 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001087/0.1405, allocations: 23.98 kB / 401.7 MB, free: 11.55 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 9.217e-06/0.1405, allocations: 7.938 kB / 401.7 MB, free: 11.55 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 8.109e-05/0.1406, allocations: 15.84 kB / 401.8 MB, free: 11.53 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.018e-05/0.1406, allocations: 4 kB / 401.8 MB, free: 11.53 MB / 302.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 7 * Number of states: 0 () * Number of discrete variables: 11 ($whenCondition1,$PRE.table.combiTimeTable.nextTimeEvent,table.y,table.combiTimeTable.nextTimeEvent,$PRE.table.combiTimeTable.nextTimeEventScaled,table.combiTimeTable.nextTimeEventScaled,backSample1.y,backSample1.u,shiftSample1.y,shiftSample1.u,sample.y) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (13): * Single equations (assignments): 13 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.0001749/0.1408, allocations: 153.9 kB / 401.9 MB, free: 11.37 MB / 302.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001012/0.1409, allocations: 89.34 kB / 402 MB, free: 11.27 MB / 302.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 7.39e-05/0.141, allocations: 33.64 kB / 402 MB, free: 11.24 MB / 302.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.424e-06/0.141, allocations: 0 / 402 MB, free: 11.24 MB / 302.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.506e-06/0.141, allocations: 4 kB / 402 MB, free: 11.24 MB / 302.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.977e-06/0.141, allocations: 0 / 402 MB, free: 11.24 MB / 302.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002343/0.1413, allocations: 245.5 kB / 402.3 MB, free: 10.95 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.406e-06/0.1413, allocations: 4 kB / 402.3 MB, free: 10.95 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 7.086e-05/0.1414, allocations: 23.86 kB / 402.3 MB, free: 10.92 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.485e-06/0.1414, allocations: 0 / 402.3 MB, free: 10.92 MB / 302.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.47e-05/0.1414, allocations: 12.09 kB / 402.3 MB, free: 10.91 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.844e-06/0.1414, allocations: 0 / 402.3 MB, free: 10.91 MB / 302.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.413e-06/0.1414, allocations: 0 / 402.3 MB, free: 10.91 MB / 302.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002699/0.1417, allocations: 183.3 kB / 402.5 MB, free: 10.7 MB / 302.1 MB Notification: Performance of postOpt removeConstants (simulation): time 9.85e-05/0.1418, allocations: 120.8 kB / 402.6 MB, free: 10.57 MB / 302.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.214e-05/0.1418, allocations: 8 kB / 402.6 MB, free: 10.56 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 7.623e-05/0.1419, allocations: 7.984 kB / 402.6 MB, free: 10.55 MB / 302.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.758e-05/0.142, allocations: 15.92 kB / 402.6 MB, free: 10.54 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.749e-05/0.142, allocations: 4 kB / 402.6 MB, free: 10.53 MB / 302.1 MB Notification: Performance of sorting global known variables: time 0.0002439/0.1423, allocations: 241.9 kB / 402.9 MB, free: 10.29 MB / 302.1 MB Notification: Performance of sort global known variables: time 1.8e-07/0.1423, allocations: 4 kB / 402.9 MB, free: 10.29 MB / 302.1 MB Notification: Performance of remove unused functions: time 0.0002605/0.1425, allocations: 32 kB / 402.9 MB, free: 10.26 MB / 302.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 4 * Number of states: 0 () * Number of discrete variables: 9 ($whenCondition1,table.y,table.combiTimeTable.nextTimeEvent,table.combiTimeTable.nextTimeEventScaled,backSample1.y,shiftSample1.y,backSample1.u,sample.y,shiftSample1.u) * Number of discrete states: 2 (table.combiTimeTable.nextTimeEventScaled,table.combiTimeTable.nextTimeEvent) * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (11): * Single equations (assignments): 9 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 2 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.0009929/0.1435, allocations: 431.7 kB / 403.3 MB, free: 9.824 MB / 302.1 MB Notification: Performance of simCode: created initialization part: time 0.000243/0.1438, allocations: 79.84 kB / 403.4 MB, free: 9.746 MB / 302.1 MB Notification: Performance of simCode: created event and clocks part: time 2.214e-06/0.1438, allocations: 0 / 403.4 MB, free: 9.746 MB / 302.1 MB Notification: Performance of simCode: created simulation system equations: time 8.398e-05/0.1439, allocations: 27.98 kB / 403.4 MB, free: 9.719 MB / 302.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.00043/0.1443, allocations: 77.44 kB / 403.5 MB, free: 9.641 MB / 302.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0006639/0.145, allocations: 425.9 kB / 403.9 MB, free: 9.195 MB / 302.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003635/0.1454, allocations: 0.744 MB / 404.7 MB, free: 8.426 MB / 302.1 MB Notification: Performance of simCode: alias equations: time 8.724e-05/0.1455, allocations: 33.52 kB / 404.7 MB, free: 8.391 MB / 302.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 5.036e-05/0.1455, allocations: 19.44 kB / 404.7 MB, free: 8.375 MB / 302.1 MB Notification: Performance of SimCode: time 2.2e-07/0.1455, allocations: 0 / 404.7 MB, free: 8.375 MB / 302.1 MB Notification: Performance of Templates: time 0.006435/0.152, allocations: 2.806 MB / 407.5 MB, free: 5.562 MB / 302.1 MB make -j1 -f Modelica_Synchronous_Modelica_Synchronous.Examples.Elementary.IntegerSignals.BackSample.makefile Environment - environmentSimulation: (rm -f Modelica_Synchronous_Modelica_Synchronous.Examples.Elementary.IntegerSignals.BackSample.pipe ; mkfifo Modelica_Synchronous_Modelica_Synchronous.Examples.Elementary.IntegerSignals.BackSample.pipe ; head -c 1048576 < Modelica_Synchronous_Modelica_Synchronous.Examples.Elementary.IntegerSignals.BackSample.pipe >> ../files/Modelica_Synchronous_Modelica_Synchronous.Examples.Elementary.IntegerSignals.BackSample.sim & ./Modelica_Synchronous_Modelica_Synchronous.Examples.Elementary.IntegerSignals.BackSample -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Modelica_Synchronous_Modelica_Synchronous.Examples.Elementary.IntegerSignals.BackSample.pipe 2>&1) Environment - environmentSimulation: diffSimulationResults("Modelica_Synchronous_Modelica_Synchronous.Examples.Elementary.IntegerSignals.BackSample_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/testsuite/ReferenceFiles/Modelica_Synchronous/Modelica_Synchronous.Examples.Elementary.IntegerSignals.BackSample.mat","../files/Modelica_Synchronous_Modelica_Synchronous.Examples.Elementary.IntegerSignals.BackSample.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) "" Variables in the reference:Time,backSample1.y,sample.y,shiftSample1.y Variables in the result:backSample1.backCounter,backSample1.resolution,backSample1.y,backSample1.y_start,periodicClock.factor,periodicClock.resolution,periodicClock.resolutionFactor,periodicClock.useSolver,sample.y,shiftSample1.resolution,shiftSample1.shiftCounter,shiftSample1.y,table.combiTimeTable.columns[1],table.combiTimeTable.extrapolation,table.combiTimeTable.nout,table.combiTimeTable.offset[1],table.combiTimeTable.p_offset[1],table.combiTimeTable.shiftTime,table.combiTimeTable.smoothness,table.combiTimeTable.startTime,table.combiTimeTable.t_max,table.combiTimeTable.t_maxScaled,table.combiTimeTable.t_min,table.combiTimeTable.t_minScaled,table.combiTimeTable.tableOnFile,table.combiTimeTable.table[1,1],table.combiTimeTable.table[1,2],table.combiTimeTable.table[2,1],table.combiTimeTable.table[2,2],table.combiTimeTable.table[3,1],table.combiTimeTable.table[3,2],table.combiTimeTable.table[4,1],table.combiTimeTable.table[4,2],table.combiTimeTable.table[5,1],table.combiTimeTable.table[5,2],table.combiTimeTable.timeEvents,table.combiTimeTable.timeScale,table.combiTimeTable.verboseExtrapolation,table.combiTimeTable.verboseRead,table.extrapolation,table.n,table.shiftTime,table.startTime,table.table[1,1],table.table[1,2],table.table[2,1],table.table[2,2],table.table[3,1],table.table[3,2],table.table[4,1],table.table[4,2],table.table[5,1],table.table[5,2],time