Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.0.0_Modelica.Clocked.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 4.0.0+maint.om/package.mo", uses=false) Using package Modelica with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+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.Clocked.Examples.Elementary.BooleanSignals.UpSample,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|upSample1.y|upSample2.y|and1.y",fileNamePrefix="Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.BooleanSignals.UpSample") translateModel(Modelica.Clocked.Examples.Elementary.BooleanSignals.UpSample,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|upSample1.y|upSample2.y|and1.y",fileNamePrefix="Modelica_4.0.0_Modelica.Clocked.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.001648/0.001648, allocations: 107.5 kB / 16.92 MB, free: 6.145 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.001952/0.001953, allocations: 187.4 kB / 17.85 MB, free: 5.285 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.529/1.529, allocations: 222.9 MB / 241.5 MB, free: 15.23 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0009387/0.0009387, allocations: 38.09 kB / 300.6 MB, free: 5.898 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1199/0.1208, allocations: 49.45 MB / 350.1 MB, free: 4.441 MB / 286.1 MB Notification: Performance of NFInst.instantiate(Modelica.Clocked.Examples.Elementary.BooleanSignals.UpSample): time 0.004426/0.1253, allocations: 1.981 MB / 352 MB, free: 2.434 MB / 286.1 MB Notification: Performance of NFInst.instExpressions: time 0.002141/0.1274, allocations: 1.099 MB / 353.1 MB, free: 1.328 MB / 286.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001439/0.1276, allocations: 4 kB / 353.1 MB, free: 1.324 MB / 286.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0006479/0.1283, allocations: 168.7 kB / 353.3 MB, free: 1.16 MB / 286.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0003112/0.1286, allocations: 107.6 kB / 353.4 MB, free: 1.055 MB / 286.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0007811/0.1294, allocations: 238.7 kB / 353.6 MB, free: 0.8242 MB / 286.1 MB Notification: Performance of NFFlatten.flatten: time 0.0002561/0.1297, allocations: 219.4 kB / 353.9 MB, free: 0.6094 MB / 286.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001378/0.1298, allocations: 52.28 kB / 353.9 MB, free: 0.5586 MB / 286.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001233/0.1299, allocations: 95.56 kB / 354 MB, free: 476 kB / 286.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001247/0.1301, allocations: 95.55 kB / 354.1 MB, free: 380 kB / 286.1 MB Notification: Performance of NFPackage.collectConstants: time 2.951e-05/0.1301, allocations: 12 kB / 354.1 MB, free: 368 kB / 286.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001326/0.1302, allocations: 55.97 kB / 354.2 MB, free: 312 kB / 286.1 MB Notification: Performance of NFScalarize.scalarize: time 8.599e-05/0.1303, allocations: 63.69 kB / 354.2 MB, free: 248 kB / 286.1 MB Notification: Performance of NFVerifyModel.verify: time 9.353e-05/0.1304, allocations: 87.48 kB / 354.3 MB, free: 160 kB / 286.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0003453/0.1308, allocations: 247.5 kB / 354.5 MB, free: 15.91 MB / 302.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.226e-06/0.1308, allocations: 0 / 354.5 MB, free: 15.91 MB / 302.1 MB Notification: Performance of FrontEnd: time 1.112e-06/0.1308, allocations: 4 kB / 354.6 MB, free: 15.91 MB / 302.1 MB Notification: Performance of Transformations before backend: time 4.108e-06/0.1308, allocations: 0 / 354.6 MB, free: 15.91 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.0008334/0.1317, allocations: 0.5429 MB / 355.1 MB, free: 15.31 MB / 302.1 MB Notification: Performance of prepare preOptimizeDAE: time 2.832e-05/0.1317, allocations: 11.89 kB / 355.1 MB, free: 15.3 MB / 302.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 5.42e-05/0.1318, allocations: 24.66 kB / 355.1 MB, free: 15.28 MB / 302.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003273/0.1321, allocations: 278.8 kB / 355.4 MB, free: 14.97 MB / 302.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.518e-05/0.1321, allocations: 16.31 kB / 355.4 MB, free: 14.95 MB / 302.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.209e-05/0.1322, allocations: 16.12 kB / 355.4 MB, free: 14.94 MB / 302.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004902/0.1326, allocations: 308.5 kB / 355.7 MB, free: 14.61 MB / 302.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 9.468e-06/0.1327, allocations: 4 kB / 355.7 MB, free: 14.61 MB / 302.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.385e-05/0.1327, allocations: 7.938 kB / 355.7 MB, free: 14.6 MB / 302.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.31e-06/0.1327, allocations: 4 kB / 355.8 MB, free: 14.6 MB / 302.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001392/0.1328, allocations: 55.95 kB / 355.8 MB, free: 14.54 MB / 302.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0005063/0.1334, allocations: 394.2 kB / 356.2 MB, free: 14.1 MB / 302.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003133/0.1337, allocations: 176 kB / 356.4 MB, free: 13.9 MB / 302.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001407/0.1338, allocations: 86.53 kB / 356.4 MB, free: 13.81 MB / 302.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.425e-05/0.1339, allocations: 4 kB / 356.5 MB, free: 13.8 MB / 302.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001409/0.134, allocations: 71.33 kB / 356.5 MB, free: 13.72 MB / 302.1 MB Notification: Performance of pre-optimization done (n=22): time 1.523e-06/0.134, allocations: 4 kB / 356.5 MB, free: 13.72 MB / 302.1 MB Notification: Performance of matching and sorting (n=22): time 0.0004785/0.1345, allocations: 229.3 kB / 356.7 MB, free: 13.49 MB / 302.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001251/0.1346, allocations: 140.9 kB / 356.9 MB, free: 13.32 MB / 302.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.000333/0.135, allocations: 272.9 kB / 357.2 MB, free: 13.05 MB / 302.1 MB Notification: Performance of collectPreVariables (initialization): time 2.708e-05/0.135, allocations: 33.7 kB / 357.2 MB, free: 13.01 MB / 302.1 MB Notification: Performance of collectInitialEqns (initialization): time 9.6e-05/0.1351, allocations: 116.7 kB / 357.3 MB, free: 12.89 MB / 302.1 MB Notification: Performance of collectInitialBindings (initialization): time 3.66e-05/0.1352, allocations: 31.58 kB / 357.3 MB, free: 12.86 MB / 302.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 7.877e-05/0.1353, allocations: 53.94 kB / 357.4 MB, free: 12.8 MB / 302.1 MB Notification: Performance of setup shared object (initialization): time 0.0002099/0.1355, allocations: 338.8 kB / 357.7 MB, free: 12.46 MB / 302.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 9.378e-05/0.1356, allocations: 40.45 kB / 357.8 MB, free: 12.42 MB / 302.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002496/0.1358, allocations: 167.2 kB / 357.9 MB, free: 12.2 MB / 302.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002777/0.1361, allocations: 207.5 kB / 358.1 MB, free: 11.94 MB / 302.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.474e-06/0.1361, allocations: 0 / 358.1 MB, free: 11.94 MB / 302.1 MB Notification: Performance of matching and sorting (n=28) (initialization): time 0.0003541/0.1365, allocations: 221 kB / 358.3 MB, free: 11.72 MB / 302.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.535e-05/0.1365, allocations: 8 kB / 358.3 MB, free: 11.71 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.513e-06/0.1365, allocations: 4 kB / 358.3 MB, free: 11.71 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.852e-05/0.1366, allocations: 11.98 kB / 358.4 MB, free: 11.7 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 7.998e-05/0.1366, allocations: 16.47 kB / 358.4 MB, free: 11.68 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.513e-05/0.1367, allocations: 19.92 kB / 358.4 MB, free: 11.66 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.000108/0.1368, allocations: 19.84 kB / 358.4 MB, free: 11.64 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.477e-05/0.1368, allocations: 15.94 kB / 358.4 MB, free: 11.62 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,sample1.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.0001638/0.137, allocations: 160 kB / 358.6 MB, free: 11.46 MB / 302.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001851/0.1372, allocations: 125.3 kB / 358.7 MB, free: 11.33 MB / 302.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 6.707e-05/0.1372, allocations: 29.7 kB / 358.7 MB, free: 11.3 MB / 302.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.07e-06/0.1372, allocations: 4 kB / 358.7 MB, free: 11.3 MB / 302.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.148e-06/0.1373, allocations: 4 kB / 358.7 MB, free: 11.29 MB / 302.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.283e-06/0.1373, allocations: 7.938 kB / 358.8 MB, free: 11.29 MB / 302.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002242/0.1375, allocations: 245.4 kB / 359 MB, free: 11 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.777e-06/0.1375, allocations: 3.984 kB / 359 MB, free: 10.99 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 3.781e-05/0.1376, allocations: 11.94 kB / 359 MB, free: 10.98 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.705e-06/0.1376, allocations: 0 / 359 MB, free: 10.98 MB / 302.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.515e-05/0.1376, allocations: 8 kB / 359 MB, free: 10.97 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.344e-06/0.1376, allocations: 0 / 359 MB, free: 10.97 MB / 302.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.996e-06/0.1376, allocations: 4 kB / 359 MB, free: 10.97 MB / 302.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003993/0.138, allocations: 226.4 kB / 359.2 MB, free: 10.72 MB / 302.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002146/0.1382, allocations: 104.9 kB / 359.3 MB, free: 10.6 MB / 302.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.694e-05/0.1383, allocations: 16.05 kB / 359.4 MB, free: 10.59 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 6.897e-05/0.1383, allocations: 8 kB / 359.4 MB, free: 10.58 MB / 302.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.705e-05/0.1384, allocations: 7.938 kB / 359.4 MB, free: 10.57 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.582e-05/0.1384, allocations: 11.98 kB / 359.4 MB, free: 10.56 MB / 302.1 MB Notification: Performance of sorting global known variables: time 0.0002157/0.1387, allocations: 196.5 kB / 359.6 MB, free: 10.36 MB / 302.1 MB Notification: Performance of sort global known variables: time 1.5e-07/0.1387, allocations: 7.938 kB / 359.6 MB, free: 10.36 MB / 302.1 MB Notification: Performance of remove unused functions: time 0.000293/0.139, allocations: 43.94 kB / 359.6 MB, free: 10.31 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,sample1.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.001045/0.14, allocations: 430.2 kB / 360 MB, free: 10.04 MB / 302.1 MB Notification: Performance of simCode: created initialization part: time 0.0003273/0.1404, allocations: 152.6 kB / 360.2 MB, free: 9.895 MB / 302.1 MB Notification: Performance of simCode: created event and clocks part: time 2.424e-06/0.1404, allocations: 0 / 360.2 MB, free: 9.895 MB / 302.1 MB Notification: Performance of simCode: created simulation system equations: time 7.398e-05/0.1404, allocations: 32.11 kB / 360.2 MB, free: 9.863 MB / 302.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004615/0.1409, allocations: 125.8 kB / 360.4 MB, free: 9.75 MB / 302.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0007785/0.1417, allocations: 393.5 kB / 360.7 MB, free: 9.328 MB / 302.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004983/0.1422, allocations: 0.7558 MB / 361.5 MB, free: 8.543 MB / 302.1 MB Notification: Performance of simCode: alias equations: time 7.973e-05/0.1423, allocations: 25.94 kB / 361.5 MB, free: 8.516 MB / 302.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 5.565e-05/0.1424, allocations: 19.44 kB / 361.5 MB, free: 8.496 MB / 302.1 MB Notification: Performance of SimCode: time 2.6e-07/0.1424, allocations: 4 kB / 361.5 MB, free: 8.492 MB / 302.1 MB Notification: Performance of Templates: time 0.007453/0.1498, allocations: 3.005 MB / 364.5 MB, free: 5.512 MB / 302.1 MB make -j1 -f Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.BooleanSignals.UpSample.makefile (rm -f Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.BooleanSignals.UpSample.pipe ; mkfifo Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.BooleanSignals.UpSample.pipe ; head -c 1048576 < Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.BooleanSignals.UpSample.pipe >> ../files/Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.BooleanSignals.UpSample.sim & ./Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.BooleanSignals.UpSample -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.BooleanSignals.UpSample.pipe 2>&1) diffSimulationResults("Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.BooleanSignals.UpSample_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Clocked/Examples/Elementary/BooleanSignals/UpSample/UpSample.csv","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.BooleanSignals.UpSample.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches