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.001215/0.001215, allocations: 106 kB / 16.45 MB, free: 6.441 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.001215/0.001215, allocations: 190 kB / 17.39 MB, free: 5.688 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.745/1.745, allocations: 205.1 MB / 223.3 MB, free: 12.21 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica_Synchronous 0.93.0-master/package.mo): time 0.08852/0.08852, allocations: 12.59 MB / 283.2 MB, free: 15.41 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.002073/0.002073, allocations: 90.17 kB / 394.2 MB, free: 45.43 MB / 318.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.124/0.1261, allocations: 49.41 MB / 443.6 MB, free: 0.4922 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica_Synchronous.Examples.Elementary.IntegerSignals.SubSample): time 0.004304/0.1305, allocations: 1.856 MB / 445.4 MB, free: 14.62 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.002345/0.1328, allocations: 1.053 MB / 446.5 MB, free: 13.56 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0003432/0.1333, allocations: 4 kB / 446.5 MB, free: 13.55 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0005014/0.1338, allocations: 59.67 kB / 446.5 MB, free: 13.5 MB / 334.1 MB [/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/Utilities/Strings.mo:139:3-175:14:writable] Warning: Pure function 'Modelica.Utilities.Strings.isEmpty' contains a call to impure function 'Modelica.Utilities.Strings.Advanced.skipWhiteSpace'. Notification: Performance of NFTyping.typeBindings: time 0.0004985/0.1344, allocations: 95.58 kB / 446.6 MB, free: 13.4 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001049/0.1354, allocations: 227.4 kB / 446.8 MB, free: 13.18 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.0004388/0.1359, allocations: 167.6 kB / 447 MB, free: 13.02 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001852/0.1361, allocations: 41.45 kB / 447.1 MB, free: 12.98 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001989/0.1363, allocations: 79.62 kB / 447.1 MB, free: 12.9 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001969/0.1365, allocations: 75.69 kB / 447.2 MB, free: 12.82 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 3.839e-05/0.1365, allocations: 11.94 kB / 447.2 MB, free: 12.81 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0002839/0.1368, allocations: 71.94 kB / 447.3 MB, free: 12.74 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001273/0.137, allocations: 47.78 kB / 447.3 MB, free: 12.7 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001185/0.1371, allocations: 75.48 kB / 447.4 MB, free: 12.62 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0005562/0.1377, allocations: 227.3 kB / 447.6 MB, free: 12.4 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 6.091e-06/0.1377, allocations: 7.938 kB / 447.6 MB, free: 12.39 MB / 334.1 MB Notification: Performance of FrontEnd: time 2.464e-06/0.1377, allocations: 0 / 447.6 MB, free: 12.39 MB / 334.1 MB Notification: Performance of Transformations before backend: time 1.567e-05/0.1377, allocations: 0 / 447.6 MB, free: 12.39 MB / 334.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.001063/0.1388, allocations: 0.539 MB / 448.2 MB, free: 11.8 MB / 334.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.273e-05/0.1388, allocations: 8.031 kB / 448.2 MB, free: 11.79 MB / 334.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 8.866e-05/0.1389, allocations: 24.66 kB / 448.2 MB, free: 11.77 MB / 334.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004853/0.1394, allocations: 283.6 kB / 448.5 MB, free: 11.45 MB / 334.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.153e-05/0.1395, allocations: 8.375 kB / 448.5 MB, free: 11.45 MB / 334.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.94e-05/0.1395, allocations: 8.125 kB / 448.5 MB, free: 11.44 MB / 334.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003884/0.1399, allocations: 163.5 kB / 448.7 MB, free: 11.25 MB / 334.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.054e-05/0.1399, allocations: 0 / 448.7 MB, free: 11.25 MB / 334.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.841e-05/0.1399, allocations: 0 / 448.7 MB, free: 11.25 MB / 334.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.482e-06/0.1399, allocations: 0 / 448.7 MB, free: 11.25 MB / 334.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001343/0.1401, allocations: 43.97 kB / 448.7 MB, free: 11.21 MB / 334.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0006485/0.1407, allocations: 386.2 kB / 449.1 MB, free: 10.77 MB / 334.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002511/0.141, allocations: 123.8 kB / 449.2 MB, free: 10.62 MB / 334.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 9.265e-05/0.1411, allocations: 46.56 kB / 449.2 MB, free: 10.57 MB / 334.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.904e-05/0.1411, allocations: 0 / 449.2 MB, free: 10.57 MB / 334.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001837/0.1413, allocations: 83.31 kB / 449.3 MB, free: 10.48 MB / 334.1 MB Notification: Performance of pre-optimization done (n=9): time 1.794e-06/0.1413, allocations: 0 / 449.3 MB, free: 10.48 MB / 334.1 MB Notification: Performance of matching and sorting (n=9): time 0.000426/0.1418, allocations: 149.4 kB / 449.5 MB, free: 10.32 MB / 334.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001467/0.1419, allocations: 162.2 kB / 449.6 MB, free: 10.13 MB / 334.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003914/0.1423, allocations: 322.6 kB / 449.9 MB, free: 9.805 MB / 334.1 MB Notification: Performance of collectPreVariables (initialization): time 3.302e-05/0.1424, allocations: 37.64 kB / 450 MB, free: 9.762 MB / 334.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001112/0.1425, allocations: 124.4 kB / 450.1 MB, free: 9.637 MB / 334.1 MB Notification: Performance of collectInitialBindings (initialization): time 3.379e-05/0.1425, allocations: 19.8 kB / 450.1 MB, free: 9.617 MB / 334.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 6.548e-05/0.1426, allocations: 33.7 kB / 450.2 MB, free: 9.578 MB / 334.1 MB Notification: Performance of setup shared object (initialization): time 0.0001687/0.1428, allocations: 330.8 kB / 450.5 MB, free: 9.246 MB / 334.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 7.778e-05/0.1429, allocations: 23.98 kB / 450.5 MB, free: 9.223 MB / 334.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001217/0.143, allocations: 90.84 kB / 450.6 MB, free: 9.109 MB / 334.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001683/0.1432, allocations: 80.22 kB / 450.7 MB, free: 9.016 MB / 334.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.417e-06/0.1432, allocations: 4.188 kB / 450.7 MB, free: 9.012 MB / 334.1 MB Notification: Performance of matching and sorting (n=11) (initialization): time 0.0002905/0.1435, allocations: 133.3 kB / 450.8 MB, free: 8.875 MB / 334.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.171e-05/0.1435, allocations: 4 kB / 450.8 MB, free: 8.871 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.654e-06/0.1435, allocations: 0 / 450.8 MB, free: 8.871 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.373e-05/0.1436, allocations: 4 kB / 450.8 MB, free: 8.867 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001343/0.1437, allocations: 15.98 kB / 450.8 MB, free: 8.852 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.119e-05/0.1437, allocations: 4 kB / 450.8 MB, free: 8.848 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001026/0.1438, allocations: 15.88 kB / 450.8 MB, free: 8.832 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.339e-05/0.1438, allocations: 7.984 kB / 450.9 MB, free: 8.824 MB / 334.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.0001728/0.144, allocations: 153.9 kB / 451 MB, free: 8.664 MB / 334.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001166/0.1441, allocations: 69.34 kB / 451.1 MB, free: 8.59 MB / 334.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 7.114e-05/0.1442, allocations: 21.72 kB / 451.1 MB, free: 8.566 MB / 334.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.744e-06/0.1442, allocations: 7.984 kB / 451.1 MB, free: 8.559 MB / 334.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.304e-06/0.1443, allocations: 0 / 451.1 MB, free: 8.559 MB / 334.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.276e-06/0.1443, allocations: 3.938 kB / 451.1 MB, free: 8.555 MB / 334.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002432/0.1445, allocations: 233.6 kB / 451.3 MB, free: 8.277 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.354e-06/0.1445, allocations: 0 / 451.3 MB, free: 8.277 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 7.101e-05/0.1446, allocations: 15.98 kB / 451.3 MB, free: 8.262 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 3.026e-06/0.1446, allocations: 0 / 451.3 MB, free: 8.262 MB / 334.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.202e-05/0.1446, allocations: 4.062 kB / 451.4 MB, free: 8.258 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 5.881e-06/0.1446, allocations: 4 kB / 451.4 MB, free: 8.254 MB / 334.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.373e-06/0.1447, allocations: 0 / 451.4 MB, free: 8.254 MB / 334.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002909/0.1449, allocations: 178.4 kB / 451.5 MB, free: 8.055 MB / 334.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001138/0.1451, allocations: 112.8 kB / 451.6 MB, free: 7.926 MB / 334.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.137e-05/0.1451, allocations: 11.98 kB / 451.7 MB, free: 7.914 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 6.362e-05/0.1452, allocations: 4 kB / 451.7 MB, free: 7.91 MB / 334.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.34e-05/0.1452, allocations: 7.984 kB / 451.7 MB, free: 7.902 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.439e-05/0.1453, allocations: 11.94 kB / 451.7 MB, free: 7.891 MB / 334.1 MB Notification: Performance of sorting global known variables: time 0.0002372/0.1455, allocations: 237.9 kB / 451.9 MB, free: 7.66 MB / 334.1 MB Notification: Performance of sort global known variables: time 1.5e-07/0.1455, allocations: 0 / 451.9 MB, free: 7.66 MB / 334.1 MB Notification: Performance of remove unused functions: time 0.0003158/0.1458, allocations: 35.98 kB / 451.9 MB, free: 7.625 MB / 334.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.0009896/0.1468, allocations: 420.7 kB / 452.4 MB, free: 7.203 MB / 334.1 MB Notification: Performance of simCode: created initialization part: time 0.0002591/0.1471, allocations: 75.89 kB / 452.4 MB, free: 7.129 MB / 334.1 MB Notification: Performance of simCode: created event and clocks part: time 7.905e-06/0.1471, allocations: 4 kB / 452.4 MB, free: 7.125 MB / 334.1 MB Notification: Performance of simCode: created simulation system equations: time 9.154e-05/0.1472, allocations: 27.98 kB / 452.5 MB, free: 7.098 MB / 334.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004414/0.1477, allocations: 70.69 kB / 452.5 MB, free: 7.031 MB / 334.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0006977/0.1484, allocations: 353.7 kB / 452.9 MB, free: 6.652 MB / 334.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003453/0.1488, allocations: 0.7397 MB / 453.6 MB, free: 5.887 MB / 334.1 MB Notification: Performance of simCode: alias equations: time 0.0001045/0.1489, allocations: 25.53 kB / 453.6 MB, free: 5.859 MB / 334.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 5.597e-05/0.1489, allocations: 27.44 kB / 453.7 MB, free: 5.832 MB / 334.1 MB Notification: Performance of SimCode: time 2.91e-07/0.1489, allocations: 0 / 453.7 MB, free: 5.832 MB / 334.1 MB Notification: Performance of Templates: time 0.008252/0.1572, allocations: 2.859 MB / 456.5 MB, free: 2.973 MB / 334.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","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_Synchronous_Modelica_Synchronous.Examples.Elementary.IntegerSignals.SubSample.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches