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.0009725/0.0009723, allocations: 96.86 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.0009846/0.0009849, allocations: 176.2 kB / 16.62 MB, free: 6.43 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.828/1.828, allocations: 205.4 MB / 222.8 MB, free: 5.621 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.109/0.109, allocations: 12.6 MB / 283.7 MB, free: 8.691 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.0007908/0.0007908, allocations: 24 kB / 344.5 MB, free: 21.26 MB / 254.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1375/0.1383, allocations: 50.38 MB / 394.9 MB, free: 2.789 MB / 286.1 MB Notification: Performance of NFInst.instantiate(Modelica_Synchronous.Examples.Elementary.IntegerSignals.SubSample): time 0.003206/0.1415, allocations: 1.549 MB / 396.5 MB, free: 1.227 MB / 286.1 MB Notification: Performance of NFInst.instExpressions: time 0.002186/0.1438, allocations: 0.9682 MB / 397.4 MB, free: 256 kB / 286.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001658/0.144, allocations: 7.938 kB / 397.4 MB, free: 248 kB / 286.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0004723/0.1444, allocations: 59.8 kB / 397.5 MB, free: 188 kB / 286.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0003089/0.1448, allocations: 75.72 kB / 397.6 MB, free: 112 kB / 286.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0009351/0.1457, allocations: 199.7 kB / 397.8 MB, free: 15.91 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 0.0002746/0.146, allocations: 139.6 kB / 397.9 MB, free: 15.77 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001684/0.1462, allocations: 37.47 kB / 397.9 MB, free: 15.74 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001267/0.1463, allocations: 55.7 kB / 398 MB, free: 15.68 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001388/0.1465, allocations: 71.67 kB / 398.1 MB, free: 15.61 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 2.72e-05/0.1465, allocations: 4 kB / 398.1 MB, free: 15.61 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001668/0.1467, allocations: 47.98 kB / 398.1 MB, free: 15.56 MB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001015/0.1468, allocations: 43.81 kB / 398.2 MB, free: 15.52 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 8.738e-05/0.1469, allocations: 57.58 kB / 398.2 MB, free: 15.46 MB / 302.1 MB Notification: Performance of NFConvertDAE.convert: time 0.000336/0.1472, allocations: 167.8 kB / 398.4 MB, free: 15.29 MB / 302.1 MB Notification: Performance of FrontEnd - DAE generated: time 1.012e-05/0.1473, allocations: 0 / 398.4 MB, free: 15.29 MB / 302.1 MB Notification: Performance of FrontEnd: time 1.703e-06/0.1473, allocations: 0 / 398.4 MB, free: 15.29 MB / 302.1 MB Notification: Performance of Transformations before backend: time 8.556e-06/0.1473, allocations: 4 kB / 398.4 MB, free: 15.29 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.0009715/0.1483, allocations: 0.5 MB / 398.9 MB, free: 14.73 MB / 302.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.271e-05/0.1483, allocations: 8.031 kB / 398.9 MB, free: 14.73 MB / 302.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 7.147e-05/0.1484, allocations: 23.72 kB / 398.9 MB, free: 14.7 MB / 302.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004442/0.1489, allocations: 278.3 kB / 399.2 MB, free: 14.39 MB / 302.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.448e-05/0.1489, allocations: 8 kB / 399.2 MB, free: 14.38 MB / 302.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.73e-05/0.1489, allocations: 4 kB / 399.2 MB, free: 14.38 MB / 302.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003942/0.1493, allocations: 163.6 kB / 399.4 MB, free: 14.19 MB / 302.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.186e-05/0.1494, allocations: 0 / 399.4 MB, free: 14.19 MB / 302.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.637e-05/0.1494, allocations: 0 / 399.4 MB, free: 14.19 MB / 302.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.006e-05/0.1494, allocations: 4 kB / 399.4 MB, free: 14.18 MB / 302.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001183/0.1495, allocations: 35.92 kB / 399.4 MB, free: 14.15 MB / 302.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0007398/0.1503, allocations: 382.4 kB / 399.8 MB, free: 13.72 MB / 302.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002804/0.1506, allocations: 123.9 kB / 399.9 MB, free: 13.57 MB / 302.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 9.027e-05/0.1507, allocations: 46.5 kB / 399.9 MB, free: 13.52 MB / 302.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.768e-05/0.1507, allocations: 4.062 kB / 399.9 MB, free: 13.51 MB / 302.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002458/0.151, allocations: 83.38 kB / 400 MB, free: 13.42 MB / 302.1 MB Notification: Performance of pre-optimization done (n=9): time 1.402e-06/0.151, allocations: 0 / 400 MB, free: 13.42 MB / 302.1 MB Notification: Performance of matching and sorting (n=9): time 0.0004239/0.1514, allocations: 153.2 kB / 400.2 MB, free: 13.26 MB / 302.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001224/0.1515, allocations: 166.2 kB / 400.3 MB, free: 13.06 MB / 302.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003524/0.1519, allocations: 318.7 kB / 400.6 MB, free: 12.74 MB / 302.1 MB Notification: Performance of collectPreVariables (initialization): time 2.529e-05/0.1519, allocations: 29.7 kB / 400.7 MB, free: 12.71 MB / 302.1 MB Notification: Performance of collectInitialEqns (initialization): time 9.633e-05/0.152, allocations: 132.3 kB / 400.8 MB, free: 12.57 MB / 302.1 MB Notification: Performance of collectInitialBindings (initialization): time 2.786e-05/0.1521, allocations: 23.8 kB / 400.8 MB, free: 12.55 MB / 302.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 4.919e-06/0.1521, allocations: 0 / 400.8 MB, free: 12.55 MB / 302.1 MB Notification: Performance of setup shared object (initialization): time 0.0001436/0.1522, allocations: 330.8 kB / 401.1 MB, free: 12.22 MB / 302.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 6.25e-05/0.1523, allocations: 20 kB / 401.2 MB, free: 12.2 MB / 302.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.000115/0.1524, allocations: 90.78 kB / 401.3 MB, free: 12.09 MB / 302.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 8.264e-05/0.1525, allocations: 35.92 kB / 401.3 MB, free: 12.05 MB / 302.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.727e-06/0.1525, allocations: 4 kB / 401.3 MB, free: 12.05 MB / 302.1 MB Notification: Performance of matching and sorting (n=11) (initialization): time 0.000233/0.1528, allocations: 117.4 kB / 401.4 MB, free: 11.93 MB / 302.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.888e-05/0.1528, allocations: 4 kB / 401.4 MB, free: 11.92 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.285e-06/0.1528, allocations: 8.125 kB / 401.4 MB, free: 11.91 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.154e-05/0.1528, allocations: 0 / 401.4 MB, free: 11.91 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001061/0.1529, allocations: 19.98 kB / 401.4 MB, free: 11.89 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 9.257e-06/0.153, allocations: 0 / 401.4 MB, free: 11.89 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 8.218e-05/0.153, allocations: 11.95 kB / 401.5 MB, free: 11.88 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.183e-05/0.1531, allocations: 4 kB / 401.5 MB, free: 11.88 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 ($whenCondition1,$PRE.table.combiTimeTable.nextTimeEvent,table.y,table.combiTimeTable.nextTimeEvent,$PRE.table.combiTimeTable.nextTimeEventScaled,table.combiTimeTable.nextTimeEventScaled,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 (linear and non-linear blocks): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.0001918/0.1533, allocations: 165.8 kB / 401.6 MB, free: 11.71 MB / 302.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 8.45e-05/0.1534, allocations: 65.36 kB / 401.7 MB, free: 11.64 MB / 302.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 6.85e-05/0.1534, allocations: 33.77 kB / 401.7 MB, free: 11.61 MB / 302.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.675e-06/0.1534, allocations: 0 / 401.7 MB, free: 11.61 MB / 302.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.901e-06/0.1535, allocations: 0 / 401.7 MB, free: 11.61 MB / 302.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.835e-06/0.1535, allocations: 7.984 kB / 401.7 MB, free: 11.6 MB / 302.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0003857/0.1539, allocations: 241.4 kB / 402 MB, free: 11.31 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.214e-06/0.1539, allocations: 0 / 402 MB, free: 11.31 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001643/0.154, allocations: 11.94 kB / 402 MB, free: 11.3 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 7.684e-06/0.1541, allocations: 4.031 kB / 402 MB, free: 11.3 MB / 302.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.817e-05/0.1541, allocations: 7.984 kB / 402 MB, free: 11.29 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.964e-06/0.1541, allocations: 0 / 402 MB, free: 11.29 MB / 302.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.082e-06/0.1541, allocations: 0 / 402 MB, free: 11.29 MB / 302.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002774/0.1544, allocations: 170.5 kB / 402.1 MB, free: 11.1 MB / 302.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001387/0.1545, allocations: 112.8 kB / 402.3 MB, free: 10.97 MB / 302.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.74e-05/0.1546, allocations: 8 kB / 402.3 MB, free: 10.96 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 5.886e-05/0.1546, allocations: 0 / 402.3 MB, free: 10.96 MB / 302.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.164e-05/0.1547, allocations: 19.98 kB / 402.3 MB, free: 10.94 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.232e-05/0.1548, allocations: 4 kB / 402.3 MB, free: 10.94 MB / 302.1 MB Notification: Performance of sorting global known variables: time 0.0002817/0.155, allocations: 237.9 kB / 402.5 MB, free: 10.7 MB / 302.1 MB Notification: Performance of sort global known variables: time 1.3e-07/0.1551, allocations: 0 / 402.5 MB, free: 10.7 MB / 302.1 MB Notification: Performance of remove unused functions: time 0.0003138/0.1554, allocations: 28 kB / 402.5 MB, free: 10.68 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 (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.001084/0.1565, allocations: 439.4 kB / 403 MB, free: 10.24 MB / 302.1 MB Notification: Performance of simCode: created initialization part: time 0.0002665/0.1567, allocations: 72.09 kB / 403 MB, free: 10.17 MB / 302.1 MB Notification: Performance of simCode: created event and clocks part: time 2.214e-06/0.1568, allocations: 4.062 kB / 403.1 MB, free: 10.16 MB / 302.1 MB Notification: Performance of simCode: created simulation system equations: time 8.651e-05/0.1569, allocations: 27.98 kB / 403.1 MB, free: 10.14 MB / 302.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003991/0.1573, allocations: 60.45 kB / 403.1 MB, free: 10.08 MB / 302.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0006368/0.1579, allocations: 388.4 kB / 403.5 MB, free: 9.672 MB / 302.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003654/0.1583, allocations: 0.7439 MB / 404.3 MB, free: 8.902 MB / 302.1 MB Notification: Performance of simCode: alias equations: time 8.503e-05/0.1584, allocations: 21.55 kB / 404.3 MB, free: 8.879 MB / 302.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 5.068e-05/0.1584, allocations: 23.42 kB / 404.3 MB, free: 8.859 MB / 302.1 MB Notification: Performance of SimCode: time 3.81e-07/0.1584, allocations: 0 / 404.3 MB, free: 8.859 MB / 302.1 MB Notification: Performance of Templates: time 0.007868/0.1663, allocations: 2.587 MB / 406.9 MB, free: 6.266 MB / 302.1 MB make -j1 -f Modelica_Synchronous_Modelica_Synchronous.Examples.Elementary.IntegerSignals.SubSample.makefile Environment - environmentSimulation: (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) Environment - environmentSimulation: 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