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.001482/0.001482, allocations: 84.19 kB / 15.75 MB, free: 416 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.002287/0.002287, allocations: 174 kB / 16.62 MB, free: 6.891 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.902/1.902, allocations: 205.4 MB / 222.8 MB, free: 5.648 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.1042/0.1042, allocations: 12.6 MB / 283.7 MB, free: 8.688 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.0007832/0.0007833, allocations: 20 kB / 344.5 MB, free: 21.25 MB / 254.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1219/0.1227, allocations: 50.38 MB / 394.9 MB, free: 2.789 MB / 286.1 MB Notification: Performance of NFInst.instantiate(Modelica_Synchronous.Examples.Elementary.BooleanSignals.UpSample): time 0.003054/0.1258, allocations: 1.651 MB / 396.6 MB, free: 1.125 MB / 286.1 MB Notification: Performance of NFInst.instExpressions: time 0.001808/0.1277, allocations: 0.972 MB / 397.5 MB, free: 148 kB / 286.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001852/0.1279, allocations: 4 kB / 397.5 MB, free: 144 kB / 286.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0006073/0.1285, allocations: 135.6 kB / 397.7 MB, free: 8 kB / 286.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0003393/0.1289, allocations: 95.69 kB / 397.8 MB, free: 15.91 MB / 302.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0007361/0.1296, allocations: 199.6 kB / 398 MB, free: 15.72 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 0.0003616/0.13, allocations: 195.4 kB / 398.2 MB, free: 15.53 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001562/0.1302, allocations: 40.3 kB / 398.2 MB, free: 15.49 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001685/0.1304, allocations: 75.62 kB / 398.3 MB, free: 15.41 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001695/0.1305, allocations: 83.55 kB / 398.4 MB, free: 15.33 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 2.948e-05/0.1306, allocations: 4 kB / 398.4 MB, free: 15.33 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001655/0.1307, allocations: 39.98 kB / 398.4 MB, free: 15.29 MB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 8.296e-05/0.1308, allocations: 43.83 kB / 398.4 MB, free: 15.25 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 7.485e-05/0.1309, allocations: 57.58 kB / 398.5 MB, free: 15.18 MB / 302.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0003601/0.1313, allocations: 183.8 kB / 398.7 MB, free: 15 MB / 302.1 MB Notification: Performance of FrontEnd - DAE generated: time 6.392e-06/0.1313, allocations: 0 / 398.7 MB, free: 15 MB / 302.1 MB Notification: Performance of FrontEnd: time 2.294e-06/0.1313, allocations: 0 / 398.7 MB, free: 15 MB / 302.1 MB Notification: Performance of Transformations before backend: time 6.161e-06/0.1313, allocations: 4 kB / 398.7 MB, free: 15 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.0009876/0.1323, allocations: 0.5077 MB / 399.2 MB, free: 14.44 MB / 302.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.39e-05/0.1324, allocations: 8.031 kB / 399.2 MB, free: 14.43 MB / 302.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 9.078e-05/0.1325, allocations: 27.7 kB / 399.2 MB, free: 14.4 MB / 302.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004379/0.1329, allocations: 281.5 kB / 399.5 MB, free: 14.08 MB / 302.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.952e-05/0.133, allocations: 8 kB / 399.5 MB, free: 14.07 MB / 302.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.713e-05/0.133, allocations: 12 kB / 399.5 MB, free: 14.06 MB / 302.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.000606/0.1336, allocations: 302.1 kB / 399.8 MB, free: 13.74 MB / 302.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.482e-05/0.1336, allocations: 0 / 399.8 MB, free: 13.74 MB / 302.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.418e-05/0.1337, allocations: 7.938 kB / 399.8 MB, free: 13.73 MB / 302.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.194e-05/0.1337, allocations: 4 kB / 399.8 MB, free: 13.73 MB / 302.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001568/0.1338, allocations: 59.97 kB / 399.9 MB, free: 13.67 MB / 302.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0006763/0.1345, allocations: 398.3 kB / 400.3 MB, free: 13.23 MB / 302.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003197/0.1349, allocations: 168 kB / 400.4 MB, free: 13.04 MB / 302.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001469/0.135, allocations: 82.55 kB / 400.5 MB, free: 12.95 MB / 302.1 MB Notification: Performance of preOpt evalFunc (simulation): time 4.014e-05/0.1351, allocations: 7.984 kB / 400.5 MB, free: 12.94 MB / 302.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001767/0.1353, allocations: 79.27 kB / 400.6 MB, free: 12.85 MB / 302.1 MB Notification: Performance of pre-optimization done (n=22): time 2.204e-06/0.1353, allocations: 4 kB / 400.6 MB, free: 12.84 MB / 302.1 MB Notification: Performance of matching and sorting (n=22): time 0.0005178/0.1358, allocations: 229.2 kB / 400.8 MB, free: 12.61 MB / 302.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001006/0.1359, allocations: 136.5 kB / 401 MB, free: 12.45 MB / 302.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003086/0.1362, allocations: 268.9 kB / 401.2 MB, free: 12.18 MB / 302.1 MB Notification: Performance of collectPreVariables (initialization): time 3.411e-05/0.1363, allocations: 33.7 kB / 401.3 MB, free: 12.14 MB / 302.1 MB Notification: Performance of collectInitialEqns (initialization): time 8.995e-05/0.1364, allocations: 120.7 kB / 401.4 MB, free: 12.02 MB / 302.1 MB Notification: Performance of collectInitialBindings (initialization): time 3.898e-05/0.1364, allocations: 27.64 kB / 401.4 MB, free: 11.99 MB / 302.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 8.185e-06/0.1364, allocations: 8 kB / 401.4 MB, free: 11.98 MB / 302.1 MB Notification: Performance of setup shared object (initialization): time 0.0001594/0.1366, allocations: 334.8 kB / 401.7 MB, free: 11.65 MB / 302.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 8.434e-05/0.1367, allocations: 36.44 kB / 401.8 MB, free: 11.61 MB / 302.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001693/0.1369, allocations: 170 kB / 401.9 MB, free: 11.39 MB / 302.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001192/0.137, allocations: 64.33 kB / 402 MB, free: 11.32 MB / 302.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.876e-06/0.137, allocations: 0 / 402 MB, free: 11.32 MB / 302.1 MB Notification: Performance of matching and sorting (n=28) (initialization): time 0.0003682/0.1374, allocations: 221 kB / 402.2 MB, free: 11.1 MB / 302.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.929e-05/0.1374, allocations: 9.25 kB / 402.2 MB, free: 11.09 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.131e-05/0.1374, allocations: 11.89 kB / 402.2 MB, free: 11.08 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.845e-05/0.1374, allocations: 4.531 kB / 402.2 MB, free: 11.08 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 9.694e-05/0.1376, allocations: 27.92 kB / 402.3 MB, free: 11.05 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.351e-05/0.1376, allocations: 11.94 kB / 402.3 MB, free: 11.04 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001323/0.1377, allocations: 19.84 kB / 402.3 MB, free: 11.02 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.984e-05/0.1377, allocations: 15.98 kB / 402.3 MB, free: 11 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 ($whenCondition1,$PRE.table1.combiTimeTable.nextTimeEvent,table1.y,table1.combiTimeTable.nextTimeEvent,$PRE.table1.combiTimeTable.nextTimeEventScaled,table1.combiTimeTable.nextTimeEventScaled,and1.y,and1.u2,and1.u1,upSample2.u_super,upSample2.b_super,$CLKPRE.upSample2.b_super,upSample2.y,upSample1.u_super,upSample1.b_super,$CLKPRE.upSample1.b_super,upSample1.y,upSample2.b,$CLKPRE.upSample2.b,upSample2.dummy,upSample2.u,upSample1.b,$CLKPRE.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 (linear and non-linear blocks): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.0001749/0.1379, allocations: 164.1 kB / 402.5 MB, free: 10.83 MB / 302.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002247/0.1382, allocations: 121.3 kB / 402.6 MB, free: 10.71 MB / 302.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 6.625e-05/0.1382, allocations: 30.02 kB / 402.6 MB, free: 10.68 MB / 302.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.995e-06/0.1382, allocations: 15.94 kB / 402.6 MB, free: 10.66 MB / 302.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.312e-06/0.1383, allocations: 0 / 402.6 MB, free: 10.66 MB / 302.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.526e-06/0.1383, allocations: 7.984 kB / 402.6 MB, free: 10.65 MB / 302.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.000233/0.1385, allocations: 245.5 kB / 402.9 MB, free: 10.36 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.176e-06/0.1385, allocations: 0 / 402.9 MB, free: 10.36 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 4.175e-05/0.1386, allocations: 11.94 kB / 402.9 MB, free: 10.35 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 5.671e-06/0.1386, allocations: 7.984 kB / 402.9 MB, free: 10.34 MB / 302.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.61e-05/0.1386, allocations: 4 kB / 402.9 MB, free: 10.34 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.344e-06/0.1386, allocations: 0 / 402.9 MB, free: 10.34 MB / 302.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.966e-06/0.1386, allocations: 3.953 kB / 402.9 MB, free: 10.34 MB / 302.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003417/0.139, allocations: 225.5 kB / 403.1 MB, free: 10.09 MB / 302.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001092/0.1391, allocations: 124.7 kB / 403.3 MB, free: 9.953 MB / 302.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.676e-05/0.1391, allocations: 8 kB / 403.3 MB, free: 9.945 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 7.156e-05/0.1392, allocations: 11.98 kB / 403.3 MB, free: 9.934 MB / 302.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.255e-05/0.1393, allocations: 7.953 kB / 403.3 MB, free: 9.926 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.292e-05/0.1393, allocations: 7.984 kB / 403.3 MB, free: 9.918 MB / 302.1 MB Notification: Performance of sorting global known variables: time 0.0002532/0.1396, allocations: 204.5 kB / 403.5 MB, free: 9.723 MB / 302.1 MB Notification: Performance of sort global known variables: time 1.51e-07/0.1396, allocations: 0 / 403.5 MB, free: 9.723 MB / 302.1 MB Notification: Performance of remove unused functions: time 0.000407/0.14, allocations: 39.94 kB / 403.5 MB, free: 9.684 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 (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.001081/0.1411, allocations: 419.6 kB / 403.9 MB, free: 9.266 MB / 302.1 MB Notification: Performance of simCode: created initialization part: time 0.0003435/0.1414, allocations: 148.2 kB / 404.1 MB, free: 9.121 MB / 302.1 MB Notification: Performance of simCode: created event and clocks part: time 3.236e-06/0.1415, allocations: 0 / 404.1 MB, free: 9.121 MB / 302.1 MB Notification: Performance of simCode: created simulation system equations: time 6.895e-05/0.1415, allocations: 20 kB / 404.1 MB, free: 9.102 MB / 302.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005127/0.1421, allocations: 113 kB / 404.2 MB, free: 8.988 MB / 302.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0008094/0.1429, allocations: 433.2 kB / 404.6 MB, free: 8.531 MB / 302.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003922/0.1433, allocations: 0.7521 MB / 405.4 MB, free: 7.754 MB / 302.1 MB Notification: Performance of simCode: alias equations: time 0.0001171/0.1434, allocations: 34.16 kB / 405.4 MB, free: 7.723 MB / 302.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 5.55e-05/0.1435, allocations: 31.36 kB / 405.5 MB, free: 7.695 MB / 302.1 MB Notification: Performance of SimCode: time 5.71e-07/0.1435, allocations: 0 / 405.5 MB, free: 7.695 MB / 302.1 MB Notification: Performance of Templates: time 0.006853/0.1503, allocations: 2.725 MB / 408.2 MB, free: 4.969 MB / 302.1 MB make -j1 -f Modelica_Synchronous_Modelica_Synchronous.Examples.Elementary.BooleanSignals.UpSample.makefile Environment - environmentSimulation: (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) Environment - environmentSimulation: 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