Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_Synchronous_Modelica_Synchronous.Examples.Elementary.IntegerSignals.SubSample.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.SubSample,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="Time|sample.y|subSample.y",fileNamePrefix="Modelica_Synchronous_Modelica_Synchronous.Examples.Elementary.IntegerSignals.SubSample") translateModel(Modelica_Synchronous.Examples.Elementary.IntegerSignals.SubSample,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="Time|sample.y|subSample.y",fileNamePrefix="Modelica_Synchronous_Modelica_Synchronous.Examples.Elementary.IntegerSignals.SubSample") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.009864/0.009865, allocations: 89.48 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.001942/0.001943, 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.775/1.775, allocations: 205.1 MB / 222.7 MB, free: 4.695 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.07923/0.07923, allocations: 12.59 MB / 282.6 MB, free: 8.762 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.001612/0.001612, allocations: 84.41 kB / 342.8 MB, free: 21.18 MB / 254.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1242/0.1258, allocations: 49.4 MB / 392.2 MB, free: 3.699 MB / 286.1 MB Notification: Performance of NFInst.instantiate(Modelica_Synchronous.Examples.Elementary.IntegerSignals.SubSample): time 0.00426/0.1302, allocations: 1.914 MB / 394.1 MB, free: 1.766 MB / 286.1 MB Notification: Performance of NFInst.instExpressions: time 0.001799/0.132, allocations: 1.03 MB / 395.1 MB, free: 0.7266 MB / 286.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001254/0.1322, allocations: 4 kB / 395.1 MB, free: 0.7227 MB / 286.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0004047/0.1326, allocations: 63.8 kB / 395.2 MB, free: 0.6602 MB / 286.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0002497/0.1329, allocations: 87.7 kB / 395.3 MB, free: 0.5742 MB / 286.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0007259/0.1336, allocations: 199.6 kB / 395.5 MB, free: 388 kB / 286.1 MB Notification: Performance of NFFlatten.flatten: time 0.0002611/0.1339, allocations: 155.6 kB / 395.6 MB, free: 232 kB / 286.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001505/0.134, allocations: 29.56 kB / 395.7 MB, free: 204 kB / 286.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001286/0.1342, allocations: 71.62 kB / 395.7 MB, free: 132 kB / 286.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001154/0.1343, allocations: 75.69 kB / 395.8 MB, free: 56 kB / 286.1 MB Notification: Performance of NFPackage.collectConstants: time 2.353e-05/0.1343, allocations: 4 kB / 395.8 MB, free: 52 kB / 286.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001402/0.1345, allocations: 51.91 kB / 395.9 MB, free: 0 / 286.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001362/0.1346, allocations: 55.94 kB / 395.9 MB, free: 15.94 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001202/0.1347, allocations: 75.42 kB / 396 MB, free: 15.87 MB / 302.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0002922/0.135, allocations: 223.5 kB / 396.2 MB, free: 15.65 MB / 302.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.32e-06/0.135, allocations: 4 kB / 396.2 MB, free: 15.65 MB / 302.1 MB Notification: Performance of FrontEnd: time 9.72e-07/0.1351, allocations: 0 / 396.2 MB, free: 15.65 MB / 302.1 MB Notification: Performance of Transformations before backend: time 4.499e-06/0.1351, allocations: 0 / 396.2 MB, free: 15.65 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: 14 * Number of variables: 14 Notification: Performance of Generate backend data structure: time 0.0007335/0.1358, allocations: 0.535 MB / 396.7 MB, free: 15.06 MB / 302.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.741e-05/0.1358, allocations: 8.031 kB / 396.8 MB, free: 15.05 MB / 302.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 6.071e-05/0.1359, allocations: 24.66 kB / 396.8 MB, free: 15.03 MB / 302.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000345/0.1363, allocations: 275.6 kB / 397 MB, free: 14.71 MB / 302.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.406e-05/0.1363, allocations: 8.375 kB / 397.1 MB, free: 14.71 MB / 302.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.969e-05/0.1363, allocations: 12.12 kB / 397.1 MB, free: 14.7 MB / 302.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003547/0.1367, allocations: 155.6 kB / 397.2 MB, free: 14.52 MB / 302.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.249e-05/0.1367, allocations: 3.938 kB / 397.2 MB, free: 14.51 MB / 302.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.552e-05/0.1367, allocations: 0 / 397.2 MB, free: 14.51 MB / 302.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.853e-06/0.1367, allocations: 8 kB / 397.2 MB, free: 14.5 MB / 302.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001159/0.1369, allocations: 35.97 kB / 397.3 MB, free: 14.47 MB / 302.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0005391/0.1374, allocations: 382.2 kB / 397.6 MB, free: 14.04 MB / 302.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002644/0.1377, allocations: 123.9 kB / 397.8 MB, free: 13.89 MB / 302.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001071/0.1378, allocations: 42.56 kB / 397.8 MB, free: 13.84 MB / 302.1 MB Notification: Performance of preOpt evalFunc (simulation): time 3.215e-05/0.1378, allocations: 4.062 kB / 397.8 MB, free: 13.84 MB / 302.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0003546/0.1382, allocations: 87.31 kB / 397.9 MB, free: 13.74 MB / 302.1 MB Notification: Performance of pre-optimization done (n=9): time 1.433e-06/0.1382, allocations: 0 / 397.9 MB, free: 13.74 MB / 302.1 MB Notification: Performance of matching and sorting (n=9): time 0.0005055/0.1387, allocations: 149.3 kB / 398 MB, free: 13.59 MB / 302.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001284/0.1389, allocations: 166.2 kB / 398.2 MB, free: 13.39 MB / 302.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003612/0.1392, allocations: 330.9 kB / 398.5 MB, free: 13.05 MB / 302.1 MB Notification: Performance of collectPreVariables (initialization): time 2.353e-05/0.1393, allocations: 29.7 kB / 398.6 MB, free: 13.02 MB / 302.1 MB Notification: Performance of collectInitialEqns (initialization): time 9.389e-05/0.1394, allocations: 128.1 kB / 398.7 MB, free: 12.89 MB / 302.1 MB Notification: Performance of collectInitialBindings (initialization): time 2.51e-05/0.1394, allocations: 15.8 kB / 398.7 MB, free: 12.88 MB / 302.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 5.316e-05/0.1395, allocations: 33.61 kB / 398.7 MB, free: 12.84 MB / 302.1 MB Notification: Performance of setup shared object (initialization): time 0.0001365/0.1396, allocations: 338.8 kB / 399.1 MB, free: 12.5 MB / 302.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 6.661e-05/0.1397, allocations: 23.92 kB / 399.1 MB, free: 12.47 MB / 302.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001147/0.1398, allocations: 86.84 kB / 399.2 MB, free: 12.36 MB / 302.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001536/0.14, allocations: 84.47 kB / 399.2 MB, free: 12.27 MB / 302.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.535e-06/0.14, allocations: 4 kB / 399.2 MB, free: 12.26 MB / 302.1 MB Notification: Performance of matching and sorting (n=11) (initialization): time 0.0002345/0.1402, allocations: 125.4 kB / 399.4 MB, free: 12.13 MB / 302.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.017e-05/0.1402, allocations: 4 kB / 399.4 MB, free: 12.13 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.434e-06/0.1403, allocations: 4 kB / 399.4 MB, free: 12.12 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.842e-05/0.1403, allocations: 0 / 399.4 MB, free: 12.12 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001166/0.1404, allocations: 19.98 kB / 399.4 MB, free: 12.11 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.322e-06/0.1404, allocations: 0 / 399.4 MB, free: 12.11 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 8.062e-05/0.1405, allocations: 15.86 kB / 399.4 MB, free: 12.09 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.179e-05/0.1405, allocations: 12.12 kB / 399.4 MB, free: 12.08 MB / 302.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 5 * Number of states: 0 () * Number of discrete variables: 9 ($PRE.table.combiTimeTable.nextTimeEvent,$whenCondition1,table.combiTimeTable.nextTimeEventScaled,$PRE.table.combiTimeTable.nextTimeEventScaled,table.combiTimeTable.nextTimeEvent,table.y,subSample.y,subSample.u,sample.y) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (11): * Single equations (assignments): 11 * 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 0.0001614/0.1407, allocations: 149.8 kB / 399.6 MB, free: 11.92 MB / 302.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 8.692e-05/0.1408, allocations: 65.41 kB / 399.6 MB, free: 11.85 MB / 302.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 6.066e-05/0.1409, allocations: 29.7 kB / 399.7 MB, free: 11.82 MB / 302.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.096e-06/0.1409, allocations: 0 / 399.7 MB, free: 11.82 MB / 302.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.544e-06/0.1409, allocations: 0 / 399.7 MB, free: 11.82 MB / 302.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.833e-06/0.1409, allocations: 11.88 kB / 399.7 MB, free: 11.81 MB / 302.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002147/0.1411, allocations: 233.5 kB / 399.9 MB, free: 11.54 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.452e-06/0.1411, allocations: 12 kB / 399.9 MB, free: 11.52 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 6.595e-05/0.1412, allocations: 11.98 kB / 399.9 MB, free: 11.51 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.074e-06/0.1412, allocations: 0 / 399.9 MB, free: 11.51 MB / 302.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.385e-05/0.1412, allocations: 4 kB / 399.9 MB, free: 11.51 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.653e-06/0.1413, allocations: 0 / 399.9 MB, free: 11.51 MB / 302.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.92e-07/0.1413, allocations: 0 / 399.9 MB, free: 11.51 MB / 302.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002706/0.1415, allocations: 170.5 kB / 400.1 MB, free: 11.32 MB / 302.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001033/0.1416, allocations: 112.8 kB / 400.2 MB, free: 11.19 MB / 302.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.416e-05/0.1417, allocations: 4 kB / 400.2 MB, free: 11.18 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 6.321e-05/0.1418, allocations: 8.062 kB / 400.2 MB, free: 11.18 MB / 302.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.712e-05/0.1418, allocations: 8.078 kB / 400.2 MB, free: 11.17 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.858e-05/0.1418, allocations: 11.88 kB / 400.2 MB, free: 11.16 MB / 302.1 MB Notification: Performance of sorting global known variables: time 0.0002266/0.1421, allocations: 241.9 kB / 400.5 MB, free: 10.92 MB / 302.1 MB Notification: Performance of sort global known variables: time 1.3e-07/0.1421, allocations: 0 / 400.5 MB, free: 10.92 MB / 302.1 MB Notification: Performance of remove unused functions: time 0.0002677/0.1424, allocations: 39.98 kB / 400.5 MB, free: 10.88 MB / 302.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 3 * Number of states: 0 () * Number of discrete variables: 7 ($whenCondition1,table.y,table.combiTimeTable.nextTimeEvent,table.combiTimeTable.nextTimeEventScaled,subSample.y,sample.y,subSample.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 (9): * Single equations (assignments): 7 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 2 * 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.000999/0.1434, allocations: 431.6 kB / 400.9 MB, free: 10.45 MB / 302.1 MB Notification: Performance of simCode: created initialization part: time 0.0002239/0.1436, allocations: 67.91 kB / 401 MB, free: 10.38 MB / 302.1 MB Notification: Performance of simCode: created event and clocks part: time 2.755e-06/0.1436, allocations: 7.875 kB / 401 MB, free: 10.37 MB / 302.1 MB Notification: Performance of simCode: created simulation system equations: time 8.296e-05/0.1437, allocations: 28.11 kB / 401 MB, free: 10.34 MB / 302.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004057/0.1441, allocations: 65.2 kB / 401.1 MB, free: 10.28 MB / 302.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.000644/0.1448, allocations: 415.3 kB / 401.5 MB, free: 9.848 MB / 302.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003046/0.1451, allocations: 0.7361 MB / 402.2 MB, free: 9.086 MB / 302.1 MB Notification: Performance of simCode: alias equations: time 8.331e-05/0.1452, allocations: 25.55 kB / 402.3 MB, free: 9.059 MB / 302.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.893e-05/0.1452, allocations: 23.42 kB / 402.3 MB, free: 9.039 MB / 302.1 MB Notification: Performance of SimCode: time 2.11e-07/0.1453, allocations: 0 / 402.3 MB, free: 9.039 MB / 302.1 MB Notification: Performance of Templates: time 0.006176/0.1514, allocations: 2.689 MB / 405 MB, free: 6.344 MB / 302.1 MB make -j1 -f Modelica_Synchronous_Modelica_Synchronous.Examples.Elementary.IntegerSignals.SubSample.makefile (rm -f Modelica_Synchronous_Modelica_Synchronous.Examples.Elementary.IntegerSignals.SubSample.pipe ; mkfifo Modelica_Synchronous_Modelica_Synchronous.Examples.Elementary.IntegerSignals.SubSample.pipe ; head -c 1048576 < Modelica_Synchronous_Modelica_Synchronous.Examples.Elementary.IntegerSignals.SubSample.pipe >> ../files/Modelica_Synchronous_Modelica_Synchronous.Examples.Elementary.IntegerSignals.SubSample.sim & ./Modelica_Synchronous_Modelica_Synchronous.Examples.Elementary.IntegerSignals.SubSample -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Modelica_Synchronous_Modelica_Synchronous.Examples.Elementary.IntegerSignals.SubSample.pipe 2>&1) diffSimulationResults("Modelica_Synchronous_Modelica_Synchronous.Examples.Elementary.IntegerSignals.SubSample_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/testsuite/ReferenceFiles/Modelica_Synchronous/Modelica_Synchronous.Examples.Elementary.IntegerSignals.SubSample.mat","../files/Modelica_Synchronous_Modelica_Synchronous.Examples.Elementary.IntegerSignals.SubSample.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches