Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_Synchronous_Modelica_Synchronous.Examples.Elementary.BooleanSignals.UpSample.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.UpSample,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="Time|and1.y|sample.y|upSample1.y|upSample2.y",fileNamePrefix="Modelica_Synchronous_Modelica_Synchronous.Examples.Elementary.BooleanSignals.UpSample") translateModel(Modelica_Synchronous.Examples.Elementary.BooleanSignals.UpSample,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="Time|and1.y|sample.y|upSample1.y|upSample2.y",fileNamePrefix="Modelica_Synchronous_Modelica_Synchronous.Examples.Elementary.BooleanSignals.UpSample") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.01248/0.01248, allocations: 93.8 kB / 15.91 MB, free: 6.281 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.002675/0.002675, allocations: 202.4 kB / 16.84 MB, free: 6.195 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.627/1.627, allocations: 205.1 MB / 222.7 MB, free: 4.785 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.08526/0.08526, allocations: 12.58 MB / 282.6 MB, free: 8.898 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.001745/0.001745, allocations: 79.88 kB / 342.8 MB, free: 21.2 MB / 254.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1375/0.1392, allocations: 49.4 MB / 392.2 MB, free: 3.719 MB / 286.1 MB Notification: Performance of NFInst.instantiate(Modelica_Synchronous.Examples.Elementary.BooleanSignals.UpSample): time 0.004287/0.1436, allocations: 2.032 MB / 394.2 MB, free: 1.668 MB / 286.1 MB Notification: Performance of NFInst.instExpressions: time 0.001924/0.1455, allocations: 1.01 MB / 395.2 MB, free: 0.6484 MB / 286.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.000189/0.1458, allocations: 7.938 kB / 395.2 MB, free: 0.6406 MB / 286.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0007897/0.1466, allocations: 143.6 kB / 395.4 MB, free: 0.5 MB / 286.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0003108/0.1469, allocations: 99.69 kB / 395.5 MB, free: 412 kB / 286.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0007574/0.1477, allocations: 211.6 kB / 395.7 MB, free: 200 kB / 286.1 MB Notification: Performance of NFFlatten.flatten: time 0.0003237/0.148, allocations: 215.4 kB / 395.9 MB, free: 15.98 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.000189/0.1482, allocations: 44.56 kB / 395.9 MB, free: 15.94 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001763/0.1484, allocations: 83.58 kB / 396 MB, free: 15.86 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001523/0.1485, allocations: 95.53 kB / 396.1 MB, free: 15.77 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 3.101e-05/0.1486, allocations: 8 kB / 396.1 MB, free: 15.76 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001409/0.1487, allocations: 47.97 kB / 396.2 MB, free: 15.71 MB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 9.178e-05/0.1488, allocations: 43.83 kB / 396.2 MB, free: 15.67 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001106/0.1489, allocations: 87.41 kB / 396.3 MB, free: 15.58 MB / 302.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0003347/0.1493, allocations: 235.1 kB / 396.5 MB, free: 15.35 MB / 302.1 MB Notification: Performance of FrontEnd - DAE generated: time 8.315e-06/0.1493, allocations: 0 / 396.5 MB, free: 15.35 MB / 302.1 MB Notification: Performance of FrontEnd: time 1.924e-06/0.1493, allocations: 0 / 396.5 MB, free: 15.35 MB / 302.1 MB Notification: Performance of Transformations before backend: time 6.181e-06/0.1493, allocations: 4 kB / 396.5 MB, free: 15.35 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: 31 * Number of variables: 31 Notification: Performance of Generate backend data structure: time 0.001089/0.1504, allocations: 0.5546 MB / 397.1 MB, free: 14.74 MB / 302.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.94e-05/0.1505, allocations: 8.031 kB / 397.1 MB, free: 14.73 MB / 302.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 8.221e-05/0.1506, allocations: 24.66 kB / 397.1 MB, free: 14.71 MB / 302.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004064/0.151, allocations: 270.8 kB / 397.4 MB, free: 14.4 MB / 302.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.999e-05/0.151, allocations: 20.34 kB / 397.4 MB, free: 14.38 MB / 302.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.411e-05/0.1511, allocations: 16.12 kB / 397.4 MB, free: 14.36 MB / 302.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0005901/0.1517, allocations: 298.3 kB / 397.7 MB, free: 14.05 MB / 302.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.046e-05/0.1517, allocations: 3.938 kB / 397.7 MB, free: 14.04 MB / 302.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.261e-05/0.1517, allocations: 11.98 kB / 397.7 MB, free: 14.03 MB / 302.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.406e-06/0.1517, allocations: 4 kB / 397.7 MB, free: 14.03 MB / 302.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001515/0.1519, allocations: 59.91 kB / 397.8 MB, free: 13.97 MB / 302.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0005412/0.1524, allocations: 386.3 kB / 398.2 MB, free: 13.54 MB / 302.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.000327/0.1528, allocations: 176 kB / 398.3 MB, free: 13.34 MB / 302.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.000136/0.1529, allocations: 82.55 kB / 398.4 MB, free: 13.25 MB / 302.1 MB Notification: Performance of preOpt evalFunc (simulation): time 3.107e-05/0.153, allocations: 4 kB / 398.4 MB, free: 13.24 MB / 302.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001774/0.1531, allocations: 83.31 kB / 398.5 MB, free: 13.15 MB / 302.1 MB Notification: Performance of pre-optimization done (n=22): time 1.713e-06/0.1532, allocations: 0 / 398.5 MB, free: 13.15 MB / 302.1 MB Notification: Performance of matching and sorting (n=22): time 0.0004942/0.1537, allocations: 213.5 kB / 398.7 MB, free: 12.93 MB / 302.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001232/0.1538, allocations: 156.8 kB / 398.9 MB, free: 12.75 MB / 302.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003186/0.1541, allocations: 268.9 kB / 399.1 MB, free: 12.48 MB / 302.1 MB Notification: Performance of collectPreVariables (initialization): time 3.244e-05/0.1542, allocations: 29.7 kB / 399.2 MB, free: 12.45 MB / 302.1 MB Notification: Performance of collectInitialEqns (initialization): time 9.029e-05/0.1543, allocations: 120.6 kB / 399.3 MB, free: 12.32 MB / 302.1 MB Notification: Performance of collectInitialBindings (initialization): time 3.808e-05/0.1543, allocations: 35.64 kB / 399.3 MB, free: 12.29 MB / 302.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 7.255e-05/0.1544, allocations: 53.92 kB / 399.4 MB, free: 12.23 MB / 302.1 MB Notification: Performance of setup shared object (initialization): time 0.0001486/0.1545, allocations: 330.8 kB / 399.7 MB, free: 11.9 MB / 302.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 9.197e-05/0.1546, allocations: 48.5 kB / 399.7 MB, free: 11.85 MB / 302.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001813/0.1548, allocations: 170 kB / 399.9 MB, free: 11.62 MB / 302.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002701/0.1551, allocations: 195.2 kB / 400.1 MB, free: 11.38 MB / 302.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.851e-06/0.1551, allocations: 11.98 kB / 400.1 MB, free: 11.37 MB / 302.1 MB Notification: Performance of matching and sorting (n=28) (initialization): time 0.0003751/0.1555, allocations: 217.5 kB / 400.3 MB, free: 11.15 MB / 302.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.615e-05/0.1555, allocations: 8 kB / 400.3 MB, free: 11.14 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.346e-05/0.1556, allocations: 8.031 kB / 400.3 MB, free: 11.13 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.521e-05/0.1556, allocations: 4 kB / 400.3 MB, free: 11.13 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001234/0.1557, allocations: 27.92 kB / 400.4 MB, free: 11.1 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.502e-05/0.1557, allocations: 8.312 kB / 400.4 MB, free: 11.09 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001124/0.1559, allocations: 23.78 kB / 400.4 MB, free: 11.07 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.684e-05/0.1559, allocations: 8 kB / 400.4 MB, free: 11.06 MB / 302.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 18 * Number of states: 0 () * Number of discrete variables: 26 ($PRE.table1.combiTimeTable.nextTimeEvent,$whenCondition1,table1.combiTimeTable.nextTimeEventScaled,$PRE.table1.combiTimeTable.nextTimeEventScaled,table1.combiTimeTable.nextTimeEvent,table1.y,and1.y,and1.u2,and1.u1,upSample2.u_super,$CLKPRE.upSample2.b_super,upSample2.b_super,upSample2.y,upSample1.u_super,$CLKPRE.upSample1.b_super,upSample1.b_super,upSample1.y,$CLKPRE.upSample2.b,upSample2.b,upSample2.dummy,upSample2.u,$CLKPRE.upSample1.b,upSample1.b,upSample1.dummy,upSample1.u,sample.y) * Number of discrete states: 0 () * Number of clocked states: 4 (upSample2.b_super,upSample1.b_super,upSample2.b,upSample1.b) * Top-level inputs: 0 Notification: Strong component statistics for initialization (28): * Single equations (assignments): 28 * 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.0002018/0.1561, allocations: 164 kB / 400.6 MB, free: 10.89 MB / 302.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002325/0.1563, allocations: 129.3 kB / 400.7 MB, free: 10.76 MB / 302.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 9.158e-05/0.1564, allocations: 29.7 kB / 400.7 MB, free: 10.73 MB / 302.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.74e-06/0.1565, allocations: 4 kB / 400.7 MB, free: 10.72 MB / 302.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.855e-06/0.1565, allocations: 0 / 400.7 MB, free: 10.72 MB / 302.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.123e-05/0.1565, allocations: 7.938 kB / 400.7 MB, free: 10.71 MB / 302.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002996/0.1568, allocations: 253.3 kB / 401 MB, free: 10.42 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.054e-06/0.1568, allocations: 0 / 401 MB, free: 10.42 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 3.908e-05/0.1569, allocations: 12 kB / 401 MB, free: 10.41 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 5.02e-06/0.1569, allocations: 3.984 kB / 401 MB, free: 10.4 MB / 302.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.831e-05/0.1569, allocations: 8.047 kB / 401 MB, free: 10.39 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 5.04e-06/0.1569, allocations: 8 kB / 401 MB, free: 10.39 MB / 302.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.743e-06/0.1569, allocations: 0 / 401 MB, free: 10.39 MB / 302.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003844/0.1573, allocations: 226.3 kB / 401.2 MB, free: 10.14 MB / 302.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001132/0.1574, allocations: 116.8 kB / 401.3 MB, free: 10.01 MB / 302.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.318e-05/0.1575, allocations: 8 kB / 401.3 MB, free: 10 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 7.174e-05/0.1576, allocations: 8 kB / 401.3 MB, free: 9.992 MB / 302.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.339e-05/0.1576, allocations: 11.98 kB / 401.4 MB, free: 9.98 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.105e-05/0.1577, allocations: 4.094 kB / 401.4 MB, free: 9.977 MB / 302.1 MB Notification: Performance of sorting global known variables: time 0.0002205/0.1579, allocations: 200.4 kB / 401.6 MB, free: 9.785 MB / 302.1 MB Notification: Performance of sort global known variables: time 1.1e-07/0.1579, allocations: 0 / 401.6 MB, free: 9.785 MB / 302.1 MB Notification: Performance of remove unused functions: time 0.0003427/0.1583, allocations: 51.84 kB / 401.6 MB, free: 9.734 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: 20 ($whenCondition1,table1.y,table1.combiTimeTable.nextTimeEvent,table1.combiTimeTable.nextTimeEventScaled,upSample1.y,upSample1.b_super,upSample1.u_super,upSample2.y,upSample2.b_super,upSample2.u_super,and1.u1,and1.u2,and1.y,sample.y,upSample1.u,upSample1.dummy,upSample1.b,upSample2.u,upSample2.dummy,upSample2.b) * Number of discrete states: 2 (table1.combiTimeTable.nextTimeEventScaled,table1.combiTimeTable.nextTimeEvent) * Number of clocked states: 4 (upSample1.b_super,upSample2.b_super,upSample1.b,upSample2.b) * Top-level inputs: 0 Notification: Strong component statistics for simulation (22): * Single equations (assignments): 20 * 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.001064/0.1593, allocations: 415.6 kB / 402 MB, free: 9.32 MB / 302.1 MB Notification: Performance of simCode: created initialization part: time 0.0003156/0.1597, allocations: 147.7 kB / 402.2 MB, free: 9.176 MB / 302.1 MB Notification: Performance of simCode: created event and clocks part: time 2.234e-06/0.1597, allocations: 0 / 402.2 MB, free: 9.176 MB / 302.1 MB Notification: Performance of simCode: created simulation system equations: time 7.253e-05/0.1597, allocations: 31.92 kB / 402.2 MB, free: 9.145 MB / 302.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005127/0.1603, allocations: 121.8 kB / 402.3 MB, free: 9.023 MB / 302.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0007413/0.161, allocations: 439.2 kB / 402.7 MB, free: 8.559 MB / 302.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003758/0.1614, allocations: 0.7521 MB / 403.5 MB, free: 7.781 MB / 302.1 MB Notification: Performance of simCode: alias equations: time 8.256e-05/0.1615, allocations: 34.16 kB / 403.5 MB, free: 7.75 MB / 302.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 5.456e-05/0.1616, allocations: 23.44 kB / 403.5 MB, free: 7.73 MB / 302.1 MB Notification: Performance of SimCode: time 2.11e-07/0.1616, allocations: 0 / 403.5 MB, free: 7.73 MB / 302.1 MB Notification: Performance of Templates: time 0.007468/0.169, allocations: 2.858 MB / 406.4 MB, free: 4.871 MB / 302.1 MB make -j1 -f Modelica_Synchronous_Modelica_Synchronous.Examples.Elementary.BooleanSignals.UpSample.makefile (rm -f Modelica_Synchronous_Modelica_Synchronous.Examples.Elementary.BooleanSignals.UpSample.pipe ; mkfifo Modelica_Synchronous_Modelica_Synchronous.Examples.Elementary.BooleanSignals.UpSample.pipe ; head -c 1048576 < Modelica_Synchronous_Modelica_Synchronous.Examples.Elementary.BooleanSignals.UpSample.pipe >> ../files/Modelica_Synchronous_Modelica_Synchronous.Examples.Elementary.BooleanSignals.UpSample.sim & ./Modelica_Synchronous_Modelica_Synchronous.Examples.Elementary.BooleanSignals.UpSample -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Modelica_Synchronous_Modelica_Synchronous.Examples.Elementary.BooleanSignals.UpSample.pipe 2>&1) diffSimulationResults("Modelica_Synchronous_Modelica_Synchronous.Examples.Elementary.BooleanSignals.UpSample_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/testsuite/ReferenceFiles/Modelica_Synchronous/Modelica_Synchronous.Examples.Elementary.BooleanSignals.UpSample.mat","../files/Modelica_Synchronous_Modelica_Synchronous.Examples.Elementary.BooleanSignals.UpSample.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches