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.001843/0.001844, allocations: 105.3 kB / 16.45 MB, free: 6.426 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.001846/0.001846, allocations: 186.9 kB / 17.39 MB, free: 5.668 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.71/1.71, 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.0819/0.0819, allocations: 12.59 MB / 283.2 MB, free: 15.39 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.001738/0.001738, allocations: 84.39 kB / 394.2 MB, free: 45.39 MB / 318.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1369/0.1387, allocations: 49.41 MB / 443.6 MB, free: 0.4922 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica_Synchronous.Examples.Elementary.BooleanSignals.UpSample): time 0.004648/0.1434, allocations: 1.978 MB / 445.5 MB, free: 14.5 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.002726/0.1462, allocations: 1.034 MB / 446.6 MB, free: 13.46 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002351/0.1465, allocations: 3.938 kB / 446.6 MB, free: 13.45 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0008793/0.1474, allocations: 159.5 kB / 446.7 MB, free: 13.3 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.0004765/0.1479, allocations: 115.5 kB / 446.8 MB, free: 13.18 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0009985/0.1489, allocations: 219.4 kB / 447.1 MB, free: 12.97 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.0004246/0.1493, allocations: 223.4 kB / 447.3 MB, free: 12.75 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002332/0.1496, allocations: 52.27 kB / 447.3 MB, free: 12.7 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002077/0.1498, allocations: 99.55 kB / 447.4 MB, free: 12.6 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001937/0.15, allocations: 87.61 kB / 447.5 MB, free: 12.52 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 4.352e-05/0.15, allocations: 12 kB / 447.5 MB, free: 12.5 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0002554/0.1503, allocations: 55.95 kB / 447.6 MB, free: 12.45 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001195/0.1504, allocations: 51.78 kB / 447.6 MB, free: 12.4 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001487/0.1506, allocations: 91.41 kB / 447.7 MB, free: 12.31 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0006185/0.1512, allocations: 247.2 kB / 448 MB, free: 12.07 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.51e-06/0.1512, allocations: 0 / 448 MB, free: 12.07 MB / 334.1 MB Notification: Performance of FrontEnd: time 5.22e-06/0.1513, allocations: 3.984 kB / 448 MB, free: 12.06 MB / 334.1 MB Notification: Performance of Transformations before backend: time 1.194e-05/0.1513, allocations: 8 kB / 448 MB, free: 12.05 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: 31 * Number of variables: 31 Notification: Performance of Generate backend data structure: time 0.001464/0.1528, allocations: 0.5429 MB / 448.5 MB, free: 11.46 MB / 334.1 MB Notification: Performance of prepare preOptimizeDAE: time 6.841e-05/0.1528, allocations: 8.031 kB / 448.5 MB, free: 11.45 MB / 334.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001123/0.153, allocations: 28.56 kB / 448.6 MB, free: 11.42 MB / 334.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0006194/0.1536, allocations: 286.7 kB / 448.8 MB, free: 11.1 MB / 334.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.549e-05/0.1536, allocations: 16.38 kB / 448.8 MB, free: 11.09 MB / 334.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.68e-05/0.1537, allocations: 16.12 kB / 448.9 MB, free: 11.07 MB / 334.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0008658/0.1546, allocations: 292.5 kB / 449.1 MB, free: 10.76 MB / 334.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.746e-05/0.1546, allocations: 0 / 449.1 MB, free: 10.76 MB / 334.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.218e-05/0.1546, allocations: 11.98 kB / 449.2 MB, free: 10.75 MB / 334.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 9.177e-06/0.1547, allocations: 0 / 449.2 MB, free: 10.75 MB / 334.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002226/0.1549, allocations: 59.91 kB / 449.2 MB, free: 10.69 MB / 334.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0008575/0.1558, allocations: 390.3 kB / 449.6 MB, free: 10.25 MB / 334.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0004921/0.1563, allocations: 167.8 kB / 449.8 MB, free: 10.06 MB / 334.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002236/0.1565, allocations: 98.66 kB / 449.9 MB, free: 9.957 MB / 334.1 MB Notification: Performance of preOpt evalFunc (simulation): time 5.033e-05/0.1566, allocations: 12.05 kB / 449.9 MB, free: 9.945 MB / 334.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002489/0.1568, allocations: 71.3 kB / 449.9 MB, free: 9.863 MB / 334.1 MB Notification: Performance of pre-optimization done (n=22): time 2.304e-06/0.1568, allocations: 0 / 449.9 MB, free: 9.863 MB / 334.1 MB Notification: Performance of matching and sorting (n=22): time 0.0007639/0.1576, allocations: 221.3 kB / 450.2 MB, free: 9.641 MB / 334.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001547/0.1578, allocations: 152.4 kB / 450.3 MB, free: 9.461 MB / 334.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0004401/0.1582, allocations: 265 kB / 450.6 MB, free: 9.195 MB / 334.1 MB Notification: Performance of collectPreVariables (initialization): time 3.223e-05/0.1583, allocations: 29.7 kB / 450.6 MB, free: 9.16 MB / 334.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001402/0.1584, allocations: 124.6 kB / 450.7 MB, free: 9.035 MB / 334.1 MB Notification: Performance of collectInitialBindings (initialization): time 4.815e-05/0.1585, allocations: 31.69 kB / 450.7 MB, free: 9.004 MB / 334.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001084/0.1586, allocations: 49.94 kB / 450.8 MB, free: 8.949 MB / 334.1 MB Notification: Performance of setup shared object (initialization): time 0.0001967/0.1588, allocations: 338.8 kB / 451.1 MB, free: 8.609 MB / 334.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.000123/0.159, allocations: 40.45 kB / 451.2 MB, free: 8.57 MB / 334.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002657/0.1592, allocations: 174 kB / 451.3 MB, free: 8.34 MB / 334.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003713/0.1596, allocations: 203.2 kB / 451.5 MB, free: 8.086 MB / 334.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 8.766e-06/0.1597, allocations: 4 kB / 451.5 MB, free: 8.082 MB / 334.1 MB Notification: Performance of matching and sorting (n=28) (initialization): time 0.0004942/0.1602, allocations: 225 kB / 451.8 MB, free: 7.855 MB / 334.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.415e-05/0.1602, allocations: 8 kB / 451.8 MB, free: 7.848 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.233e-05/0.1602, allocations: 4 kB / 451.8 MB, free: 7.844 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.458e-05/0.1602, allocations: 4 kB / 451.8 MB, free: 7.84 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001422/0.1604, allocations: 24.3 kB / 451.8 MB, free: 7.816 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.795e-05/0.1604, allocations: 7.938 kB / 451.8 MB, free: 7.809 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001663/0.1606, allocations: 28.52 kB / 451.8 MB, free: 7.781 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.197e-05/0.1606, allocations: 20 kB / 451.9 MB, free: 7.762 MB / 334.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.0003081/0.161, allocations: 167.9 kB / 452 MB, free: 7.59 MB / 334.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002551/0.1612, allocations: 121.3 kB / 452.1 MB, free: 7.465 MB / 334.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 8.882e-05/0.1613, allocations: 25.72 kB / 452.2 MB, free: 7.434 MB / 334.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.943e-06/0.1613, allocations: 4 kB / 452.2 MB, free: 7.43 MB / 334.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 9.047e-06/0.1614, allocations: 0 / 452.2 MB, free: 7.43 MB / 334.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.347e-05/0.1614, allocations: 7.922 kB / 452.2 MB, free: 7.422 MB / 334.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0004044/0.1618, allocations: 241.6 kB / 452.4 MB, free: 7.137 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.525e-06/0.1618, allocations: 4 kB / 452.4 MB, free: 7.133 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002045/0.162, allocations: 15.92 kB / 452.4 MB, free: 7.117 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 3.958e-06/0.162, allocations: 0 / 452.4 MB, free: 7.117 MB / 334.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.433e-05/0.1621, allocations: 8 kB / 452.4 MB, free: 7.109 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.735e-06/0.1621, allocations: 0 / 452.4 MB, free: 7.109 MB / 334.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.242e-06/0.1621, allocations: 0 / 452.4 MB, free: 7.109 MB / 334.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0005095/0.1626, allocations: 230.7 kB / 452.7 MB, free: 6.859 MB / 334.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001572/0.1628, allocations: 116.7 kB / 452.8 MB, free: 6.727 MB / 334.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.059e-05/0.1628, allocations: 8 kB / 452.8 MB, free: 6.719 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001017/0.1629, allocations: 11.98 kB / 452.8 MB, free: 6.707 MB / 334.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.758e-05/0.163, allocations: 4 kB / 452.8 MB, free: 6.703 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.05e-05/0.1631, allocations: 8 kB / 452.8 MB, free: 6.695 MB / 334.1 MB Notification: Performance of sorting global known variables: time 0.0002814/0.1634, allocations: 196.5 kB / 453 MB, free: 6.508 MB / 334.1 MB Notification: Performance of sort global known variables: time 1.71e-07/0.1634, allocations: 0 / 453 MB, free: 6.508 MB / 334.1 MB Notification: Performance of remove unused functions: time 0.0005014/0.1639, allocations: 47.92 kB / 453 MB, free: 6.461 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: 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.001475/0.1654, allocations: 436.3 kB / 453.5 MB, free: 6.023 MB / 334.1 MB Notification: Performance of simCode: created initialization part: time 0.0004549/0.1658, allocations: 148.8 kB / 453.6 MB, free: 5.879 MB / 334.1 MB Notification: Performance of simCode: created event and clocks part: time 4.007e-06/0.1659, allocations: 0 / 453.6 MB, free: 5.879 MB / 334.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0001031/0.166, allocations: 20.06 kB / 453.6 MB, free: 5.859 MB / 334.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0007926/0.1668, allocations: 112.3 kB / 453.7 MB, free: 5.75 MB / 334.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0009874/0.1678, allocations: 381.4 kB / 454.1 MB, free: 5.348 MB / 334.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005184/0.1683, allocations: 0.7558 MB / 454.9 MB, free: 4.566 MB / 334.1 MB Notification: Performance of simCode: alias equations: time 0.0001216/0.1684, allocations: 30.47 kB / 454.9 MB, free: 4.535 MB / 334.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 7.254e-05/0.1685, allocations: 23.44 kB / 454.9 MB, free: 4.512 MB / 334.1 MB Notification: Performance of SimCode: time 6.81e-07/0.1685, allocations: 0 / 454.9 MB, free: 4.512 MB / 334.1 MB Notification: Performance of Templates: time 0.01061/0.1792, allocations: 3.105 MB / 458 MB, free: 1.402 MB / 334.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","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_Synchronous_Modelica_Synchronous.Examples.Elementary.BooleanSignals.UpSample.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches