Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_Synchronous_Modelica_Synchronous.Examples.Elementary.BooleanSignals.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.BooleanSignals.SubSample,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="Time|sample.y|subSample.y",fileNamePrefix="Modelica_Synchronous_Modelica_Synchronous.Examples.Elementary.BooleanSignals.SubSample") translateModel(Modelica_Synchronous.Examples.Elementary.BooleanSignals.SubSample,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="Time|sample.y|subSample.y",fileNamePrefix="Modelica_Synchronous_Modelica_Synchronous.Examples.Elementary.BooleanSignals.SubSample") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.009401/0.009401, allocations: 92.27 kB / 15.91 MB, free: 6.273 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.001578/0.001578, allocations: 199.3 kB / 16.84 MB, free: 6.188 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.727 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.07915/0.07915, allocations: 12.59 MB / 282.6 MB, free: 8.852 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.001698/0.001698, allocations: 83.89 kB / 342.8 MB, free: 21.2 MB / 254.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1278/0.1295, allocations: 49.4 MB / 392.2 MB, free: 3.715 MB / 286.1 MB Notification: Performance of NFInst.instantiate(Modelica_Synchronous.Examples.Elementary.BooleanSignals.SubSample): time 0.003577/0.1331, allocations: 1.949 MB / 394.1 MB, free: 1.746 MB / 286.1 MB Notification: Performance of NFInst.instExpressions: time 0.001591/0.1348, allocations: 0.9481 MB / 395.1 MB, free: 0.7891 MB / 286.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.000115/0.1349, allocations: 4 kB / 395.1 MB, free: 0.7852 MB / 286.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0006216/0.1356, allocations: 139.6 kB / 395.2 MB, free: 0.6484 MB / 286.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0002547/0.1358, allocations: 103.7 kB / 395.3 MB, free: 0.5469 MB / 286.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0005094/0.1363, allocations: 159.8 kB / 395.5 MB, free: 400 kB / 286.1 MB Notification: Performance of NFFlatten.flatten: time 0.0002277/0.1366, allocations: 175.5 kB / 395.6 MB, free: 224 kB / 286.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001237/0.1367, allocations: 37.81 kB / 395.7 MB, free: 188 kB / 286.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.000111/0.1368, allocations: 63.66 kB / 395.7 MB, free: 124 kB / 286.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001181/0.137, allocations: 71.62 kB / 395.8 MB, free: 52 kB / 286.1 MB Notification: Performance of NFPackage.collectConstants: time 2.497e-05/0.137, allocations: 4 kB / 395.8 MB, free: 48 kB / 286.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001322/0.1371, allocations: 47.91 kB / 395.9 MB, free: 0 / 286.1 MB Notification: Performance of NFScalarize.scalarize: time 9.749e-05/0.1372, allocations: 43.83 kB / 395.9 MB, free: 15.96 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 8.38e-05/0.1373, allocations: 67.48 kB / 396 MB, free: 15.89 MB / 302.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0002772/0.1376, allocations: 187.4 kB / 396.2 MB, free: 15.71 MB / 302.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.888e-06/0.1376, allocations: 8 kB / 396.2 MB, free: 15.7 MB / 302.1 MB Notification: Performance of FrontEnd: time 1.042e-06/0.1376, allocations: 0 / 396.2 MB, free: 15.7 MB / 302.1 MB Notification: Performance of Transformations before backend: time 4.979e-06/0.1376, allocations: 0 / 396.2 MB, free: 15.7 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.0008336/0.1385, allocations: 0.5078 MB / 396.7 MB, free: 15.14 MB / 302.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.864e-05/0.1385, allocations: 8.031 kB / 396.7 MB, free: 15.13 MB / 302.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 6.253e-05/0.1386, allocations: 16.75 kB / 396.7 MB, free: 15.11 MB / 302.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003239/0.1389, allocations: 258.9 kB / 396.9 MB, free: 14.82 MB / 302.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.852e-05/0.139, allocations: 12.38 kB / 397 MB, free: 14.8 MB / 302.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.864e-05/0.139, allocations: 12.12 kB / 397 MB, free: 14.79 MB / 302.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003188/0.1393, allocations: 146.7 kB / 397.1 MB, free: 14.62 MB / 302.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.11e-05/0.1393, allocations: 3.984 kB / 397.1 MB, free: 14.62 MB / 302.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.442e-05/0.1393, allocations: 4 kB / 397.1 MB, free: 14.62 MB / 302.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.991e-06/0.1394, allocations: 0 / 397.1 MB, free: 14.62 MB / 302.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 9.795e-05/0.1395, allocations: 39.92 kB / 397.2 MB, free: 14.58 MB / 302.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0005852/0.1401, allocations: 358.3 kB / 397.5 MB, free: 14.17 MB / 302.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002083/0.1403, allocations: 107.9 kB / 397.6 MB, free: 14.04 MB / 302.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002426/0.1405, allocations: 46.56 kB / 397.7 MB, free: 13.98 MB / 302.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.612e-05/0.1406, allocations: 4.062 kB / 397.7 MB, free: 13.98 MB / 302.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.000173/0.1407, allocations: 83.31 kB / 397.7 MB, free: 13.89 MB / 302.1 MB Notification: Performance of pre-optimization done (n=9): time 1.553e-06/0.1408, allocations: 0 / 397.7 MB, free: 13.89 MB / 302.1 MB Notification: Performance of matching and sorting (n=9): time 0.0004324/0.1412, allocations: 145.4 kB / 397.9 MB, free: 13.74 MB / 302.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 8.768e-05/0.1413, allocations: 128.5 kB / 398 MB, free: 13.58 MB / 302.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.000306/0.1416, allocations: 268.9 kB / 398.3 MB, free: 13.31 MB / 302.1 MB Notification: Performance of collectPreVariables (initialization): time 9.824e-05/0.1417, allocations: 25.95 kB / 398.3 MB, free: 13.28 MB / 302.1 MB Notification: Performance of collectInitialEqns (initialization): time 9.435e-05/0.1418, allocations: 124.1 kB / 398.4 MB, free: 13.15 MB / 302.1 MB Notification: Performance of collectInitialBindings (initialization): time 2.638e-05/0.1418, allocations: 15.75 kB / 398.4 MB, free: 13.14 MB / 302.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 4.758e-05/0.1419, allocations: 33.64 kB / 398.5 MB, free: 13.1 MB / 302.1 MB Notification: Performance of setup shared object (initialization): time 0.00017/0.1421, allocations: 334.8 kB / 398.8 MB, free: 12.76 MB / 302.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 6.06e-05/0.1421, allocations: 19.98 kB / 398.8 MB, free: 12.74 MB / 302.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 8.661e-05/0.1422, allocations: 70 kB / 398.9 MB, free: 12.65 MB / 302.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001254/0.1424, allocations: 76.22 kB / 399 MB, free: 12.56 MB / 302.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.054e-06/0.1424, allocations: 0 / 399 MB, free: 12.56 MB / 302.1 MB Notification: Performance of matching and sorting (n=11) (initialization): time 0.0001916/0.1426, allocations: 121.6 kB / 399.1 MB, free: 12.44 MB / 302.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.497e-05/0.1426, allocations: 4 kB / 399.1 MB, free: 12.43 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.34e-06/0.1426, allocations: 64 / 399.1 MB, free: 12.43 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.542e-05/0.1426, allocations: 8 kB / 399.1 MB, free: 12.43 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 8.081e-05/0.1427, allocations: 8 kB / 399.1 MB, free: 12.42 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.127e-05/0.1427, allocations: 7.984 kB / 399.1 MB, free: 12.41 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 6.578e-05/0.1428, allocations: 11.84 kB / 399.1 MB, free: 12.4 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 9.908e-06/0.1428, allocations: 4 kB / 399.1 MB, free: 12.39 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,sample.u,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.0001265/0.143, allocations: 149.8 kB / 399.3 MB, free: 12.24 MB / 302.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 7.935e-05/0.143, allocations: 57.5 kB / 399.3 MB, free: 12.18 MB / 302.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 5.106e-05/0.1431, allocations: 25.66 kB / 399.4 MB, free: 12.15 MB / 302.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.909e-06/0.1431, allocations: 4 kB / 399.4 MB, free: 12.15 MB / 302.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.907e-06/0.1431, allocations: 3.938 kB / 399.4 MB, free: 12.14 MB / 302.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.675e-06/0.1431, allocations: 7.922 kB / 399.4 MB, free: 12.14 MB / 302.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001931/0.1433, allocations: 225.4 kB / 399.6 MB, free: 11.87 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.262e-06/0.1433, allocations: 4 kB / 399.6 MB, free: 11.86 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 2.454e-05/0.1434, allocations: 4 kB / 399.6 MB, free: 11.86 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.944e-06/0.1434, allocations: 4.062 kB / 399.6 MB, free: 11.86 MB / 302.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.132e-05/0.1434, allocations: 4 kB / 399.6 MB, free: 11.85 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.353e-06/0.1434, allocations: 0 / 399.6 MB, free: 11.85 MB / 302.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.022e-06/0.1434, allocations: 0 / 399.6 MB, free: 11.85 MB / 302.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002308/0.1437, allocations: 158.5 kB / 399.8 MB, free: 11.67 MB / 302.1 MB Notification: Performance of postOpt removeConstants (simulation): time 9.709e-05/0.1438, allocations: 108.9 kB / 399.9 MB, free: 11.55 MB / 302.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.171e-05/0.1438, allocations: 3.984 kB / 399.9 MB, free: 11.54 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 5.829e-05/0.1439, allocations: 4 kB / 399.9 MB, free: 11.54 MB / 302.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.182e-05/0.1439, allocations: 4 kB / 399.9 MB, free: 11.54 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.933e-05/0.1439, allocations: 15.92 kB / 399.9 MB, free: 11.52 MB / 302.1 MB Notification: Performance of sorting global known variables: time 0.0001858/0.1441, allocations: 188.5 kB / 400.1 MB, free: 11.34 MB / 302.1 MB Notification: Performance of sort global known variables: time 1.3e-07/0.1441, allocations: 4 kB / 400.1 MB, free: 11.33 MB / 302.1 MB Notification: Performance of remove unused functions: time 0.0002555/0.1444, allocations: 27.98 kB / 400.1 MB, free: 11.3 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,sample.u,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.001005/0.1454, allocations: 424.7 kB / 400.5 MB, free: 10.88 MB / 302.1 MB Notification: Performance of simCode: created initialization part: time 0.0002286/0.1457, allocations: 67.91 kB / 400.6 MB, free: 10.81 MB / 302.1 MB Notification: Performance of simCode: created event and clocks part: time 2.295e-06/0.1457, allocations: 0 / 400.6 MB, free: 10.81 MB / 302.1 MB Notification: Performance of simCode: created simulation system equations: time 7.664e-05/0.1457, allocations: 27.98 kB / 400.6 MB, free: 10.79 MB / 302.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004193/0.1462, allocations: 53.03 kB / 400.7 MB, free: 10.73 MB / 302.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0006341/0.1468, allocations: 350.9 kB / 401 MB, free: 10.36 MB / 302.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004157/0.1472, allocations: 0.7283 MB / 401.7 MB, free: 9.605 MB / 302.1 MB Notification: Performance of simCode: alias equations: time 8.033e-05/0.1473, allocations: 33.75 kB / 401.8 MB, free: 9.574 MB / 302.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.546e-05/0.1474, allocations: 15.44 kB / 401.8 MB, free: 9.559 MB / 302.1 MB Notification: Performance of SimCode: time 2.11e-07/0.1474, allocations: 4 kB / 401.8 MB, free: 9.555 MB / 302.1 MB Notification: Performance of Templates: time 0.006476/0.1539, allocations: 2.295 MB / 404.1 MB, free: 7.254 MB / 302.1 MB make -j1 -f Modelica_Synchronous_Modelica_Synchronous.Examples.Elementary.BooleanSignals.SubSample.makefile (rm -f Modelica_Synchronous_Modelica_Synchronous.Examples.Elementary.BooleanSignals.SubSample.pipe ; mkfifo Modelica_Synchronous_Modelica_Synchronous.Examples.Elementary.BooleanSignals.SubSample.pipe ; head -c 1048576 < Modelica_Synchronous_Modelica_Synchronous.Examples.Elementary.BooleanSignals.SubSample.pipe >> ../files/Modelica_Synchronous_Modelica_Synchronous.Examples.Elementary.BooleanSignals.SubSample.sim & ./Modelica_Synchronous_Modelica_Synchronous.Examples.Elementary.BooleanSignals.SubSample -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Modelica_Synchronous_Modelica_Synchronous.Examples.Elementary.BooleanSignals.SubSample.pipe 2>&1) diffSimulationResults("Modelica_Synchronous_Modelica_Synchronous.Examples.Elementary.BooleanSignals.SubSample_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/testsuite/ReferenceFiles/Modelica_Synchronous/Modelica_Synchronous.Examples.Elementary.BooleanSignals.SubSample.mat","../files/Modelica_Synchronous_Modelica_Synchronous.Examples.Elementary.BooleanSignals.SubSample.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches