Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.0.0_Modelica.Blocks.Examples.LogicalNetwork1.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.Blocks.Examples.LogicalNetwork1,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|Pre1.u|table1.y|table2.y",fileNamePrefix="Modelica_4.0.0_Modelica.Blocks.Examples.LogicalNetwork1") translateModel(Modelica.Blocks.Examples.LogicalNetwork1,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|Pre1.u|table1.y|table2.y",fileNamePrefix="Modelica_4.0.0_Modelica.Blocks.Examples.LogicalNetwork1") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.0007517/0.0007518, allocations: 92.75 kB / 16.65 MB, free: 6.59 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.0009152/0.0009151, allocations: 184.2 kB / 17.57 MB, free: 6.199 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.533/1.533, allocations: 223.3 MB / 241.6 MB, free: 14.38 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0003282/0.0003282, allocations: 7.938 kB / 301.4 MB, free: 5.891 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1336/0.1339, allocations: 50.42 MB / 351.8 MB, free: 3.461 MB / 286.1 MB Notification: Performance of NFInst.instantiate(Modelica.Blocks.Examples.LogicalNetwork1): time 0.002958/0.1369, allocations: 1.696 MB / 353.5 MB, free: 1.742 MB / 286.1 MB Notification: Performance of NFInst.instExpressions: time 0.001814/0.1388, allocations: 1.095 MB / 354.6 MB, free: 0.6445 MB / 286.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001169/0.1389, allocations: 4 kB / 354.6 MB, free: 0.6406 MB / 286.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0008047/0.1397, allocations: 292.5 kB / 354.9 MB, free: 364 kB / 286.1 MB Notification: Performance of NFTyping.typeBindings: time 0.00039/0.1401, allocations: 191.5 kB / 355.1 MB, free: 172 kB / 286.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0007848/0.1409, allocations: 253.7 kB / 355.3 MB, free: 15.92 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 0.0004758/0.1414, allocations: 343 kB / 355.7 MB, free: 15.59 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.00016/0.1416, allocations: 60.31 kB / 355.7 MB, free: 15.53 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001682/0.1418, allocations: 119.4 kB / 355.9 MB, free: 15.41 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001778/0.1419, allocations: 127.4 kB / 356 MB, free: 15.29 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 2.675e-05/0.142, allocations: 8 kB / 356 MB, free: 15.28 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001469/0.1421, allocations: 63.95 kB / 356.1 MB, free: 15.21 MB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 9.43e-05/0.1422, allocations: 75.67 kB / 356.1 MB, free: 15.14 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001258/0.1424, allocations: 136.9 kB / 356.3 MB, free: 15 MB / 302.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0003771/0.1428, allocations: 327.1 kB / 356.6 MB, free: 14.68 MB / 302.1 MB Notification: Performance of FrontEnd - DAE generated: time 7.524e-06/0.1428, allocations: 8 kB / 356.6 MB, free: 14.67 MB / 302.1 MB Notification: Performance of FrontEnd: time 1.302e-06/0.1428, allocations: 3.938 kB / 356.6 MB, free: 14.67 MB / 302.1 MB Notification: Performance of Transformations before backend: time 5.971e-06/0.1428, allocations: 4 kB / 356.6 MB, free: 14.66 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: 24 * Number of variables: 24 Notification: Performance of Generate backend data structure: time 0.0008739/0.1437, allocations: 0.5989 MB / 357.2 MB, free: 14 MB / 302.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.778e-05/0.1437, allocations: 8.031 kB / 357.2 MB, free: 14 MB / 302.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001296/0.1438, allocations: 32.56 kB / 357.2 MB, free: 13.96 MB / 302.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000438/0.1443, allocations: 335.9 kB / 357.6 MB, free: 13.6 MB / 302.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.76e-05/0.1443, allocations: 19.92 kB / 357.6 MB, free: 13.58 MB / 302.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.301e-05/0.1444, allocations: 12 kB / 357.6 MB, free: 13.57 MB / 302.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003749/0.1447, allocations: 144.1 kB / 357.7 MB, free: 13.41 MB / 302.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 8.456e-06/0.1448, allocations: 0 / 357.7 MB, free: 13.41 MB / 302.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.861e-05/0.1448, allocations: 7.984 kB / 357.7 MB, free: 13.41 MB / 302.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.259e-06/0.1448, allocations: 0 / 357.7 MB, free: 13.41 MB / 302.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001633/0.145, allocations: 71.91 kB / 357.8 MB, free: 13.34 MB / 302.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0007615/0.1457, allocations: 496.4 kB / 358.3 MB, free: 12.8 MB / 302.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003039/0.146, allocations: 134.8 kB / 358.4 MB, free: 12.66 MB / 302.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001076/0.1462, allocations: 44.84 kB / 358.5 MB, free: 12.61 MB / 302.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.739e-05/0.1462, allocations: 4 kB / 358.5 MB, free: 12.61 MB / 302.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002298/0.1464, allocations: 119.1 kB / 358.6 MB, free: 12.48 MB / 302.1 MB Notification: Performance of pre-optimization done (n=15): time 1.663e-06/0.1464, allocations: 0 / 358.6 MB, free: 12.48 MB / 302.1 MB Notification: Performance of matching and sorting (n=15): time 0.0004736/0.1469, allocations: 213.3 kB / 358.8 MB, free: 12.27 MB / 302.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.78e-05/0.147, allocations: 106.8 kB / 358.9 MB, free: 12.14 MB / 302.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0004656/0.1475, allocations: 432.4 kB / 359.3 MB, free: 11.7 MB / 302.1 MB Notification: Performance of collectPreVariables (initialization): time 2.347e-05/0.1475, allocations: 29.7 kB / 359.4 MB, free: 11.67 MB / 302.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.000225/0.1477, allocations: 164 kB / 359.5 MB, free: 11.5 MB / 302.1 MB Notification: Performance of collectInitialBindings (initialization): time 5.043e-05/0.1478, allocations: 47.38 kB / 359.6 MB, free: 11.46 MB / 302.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.000135/0.1479, allocations: 29.7 kB / 359.6 MB, free: 11.42 MB / 302.1 MB Notification: Performance of setup shared object (initialization): time 0.0002394/0.1482, allocations: 342.8 kB / 359.9 MB, free: 11.08 MB / 302.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001126/0.1483, allocations: 55.91 kB / 360 MB, free: 11.02 MB / 302.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001513/0.1485, allocations: 100.7 kB / 360.1 MB, free: 10.91 MB / 302.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001997/0.1487, allocations: 109.5 kB / 360.2 MB, free: 10.79 MB / 302.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.375e-06/0.1487, allocations: 0 / 360.2 MB, free: 10.79 MB / 302.1 MB Notification: Performance of matching and sorting (n=20) (initialization): time 0.0003289/0.149, allocations: 177.2 kB / 360.4 MB, free: 10.61 MB / 302.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.533e-05/0.149, allocations: 11.94 kB / 360.4 MB, free: 10.6 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.939e-06/0.149, allocations: 0 / 360.4 MB, free: 10.6 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.327e-05/0.1491, allocations: 0 / 360.4 MB, free: 10.6 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001152/0.1492, allocations: 23.98 kB / 360.4 MB, free: 10.58 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.771e-06/0.1492, allocations: 0 / 360.4 MB, free: 10.58 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001075/0.1493, allocations: 27.89 kB / 360.4 MB, free: 10.55 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.199e-05/0.1493, allocations: 8 kB / 360.4 MB, free: 10.54 MB / 302.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 3 * Number of states: 0 () * Number of discrete variables: 16 ($PRE.table1.combiTimeTable.nextTimeEvent,$whenCondition2,$PRE.table2.combiTimeTable.nextTimeEvent,$whenCondition1,Pre1.y,Pre1.u,$PRE.Pre1.u,And1.y,Not1.y,table1.combiTimeTable.nextTimeEventScaled,$PRE.table1.combiTimeTable.nextTimeEventScaled,table1.combiTimeTable.nextTimeEvent,table1.y,table2.combiTimeTable.nextTimeEventScaled,$PRE.table2.combiTimeTable.nextTimeEventScaled,table2.combiTimeTable.nextTimeEvent) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (20): * Single equations (assignments): 20 * 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.0001648/0.1495, allocations: 171.5 kB / 360.6 MB, free: 10.37 MB / 302.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.281e-05/0.1495, allocations: 35.56 kB / 360.6 MB, free: 10.33 MB / 302.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 6.725e-05/0.1496, allocations: 34.94 kB / 360.7 MB, free: 10.3 MB / 302.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.505e-06/0.1496, allocations: 0 / 360.7 MB, free: 10.3 MB / 302.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.59e-06/0.1496, allocations: 0 / 360.7 MB, free: 10.3 MB / 302.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.088e-06/0.1496, allocations: 0 / 360.7 MB, free: 10.3 MB / 302.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0004694/0.1501, allocations: 297.4 kB / 361 MB, free: 9.957 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.527e-06/0.1501, allocations: 7.938 kB / 361 MB, free: 9.949 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 3.588e-05/0.1502, allocations: 8 kB / 361 MB, free: 9.941 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 3.898e-06/0.1502, allocations: 4 kB / 361 MB, free: 9.938 MB / 302.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.428e-05/0.1502, allocations: 7.984 kB / 361 MB, free: 9.93 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.423e-06/0.1502, allocations: 0 / 361 MB, free: 9.93 MB / 302.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.52e-07/0.1502, allocations: 0 / 361 MB, free: 9.93 MB / 302.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003338/0.1506, allocations: 200.6 kB / 361.2 MB, free: 9.715 MB / 302.1 MB Notification: Performance of postOpt removeConstants (simulation): time 9.112e-05/0.1507, allocations: 124.6 kB / 361.3 MB, free: 9.574 MB / 302.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.896e-05/0.1507, allocations: 4 kB / 361.3 MB, free: 9.57 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 8.688e-05/0.1508, allocations: 15.98 kB / 361.3 MB, free: 9.555 MB / 302.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.757e-05/0.1509, allocations: 7.984 kB / 361.3 MB, free: 9.547 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.118e-05/0.1509, allocations: 8 kB / 361.3 MB, free: 9.539 MB / 302.1 MB Notification: Performance of sorting global known variables: time 0.0003372/0.1512, allocations: 315 kB / 361.6 MB, free: 9.234 MB / 302.1 MB Notification: Performance of sort global known variables: time 1.904e-06/0.1512, allocations: 0 / 361.6 MB, free: 9.234 MB / 302.1 MB Notification: Performance of remove unused functions: time 0.0002864/0.1515, allocations: 51.94 kB / 361.7 MB, free: 9.184 MB / 302.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * Number of states: 0 () * Number of discrete variables: 11 ($whenCondition2,$whenCondition1,table2.combiTimeTable.nextTimeEvent,table2.combiTimeTable.nextTimeEventScaled,table1.y,table1.combiTimeTable.nextTimeEvent,table1.combiTimeTable.nextTimeEventScaled,Not1.y,And1.y,Pre1.u,Pre1.y) * Number of discrete states: 5 (Pre1.u,table1.combiTimeTable.nextTimeEventScaled,table2.combiTimeTable.nextTimeEventScaled,table2.combiTimeTable.nextTimeEvent,table1.combiTimeTable.nextTimeEvent) * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (15): * Single equations (assignments): 11 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 4 * 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.001031/0.1526, allocations: 440.1 kB / 362.1 MB, free: 8.91 MB / 302.1 MB Notification: Performance of simCode: created initialization part: time 0.0003271/0.1529, allocations: 123.8 kB / 362.2 MB, free: 8.789 MB / 302.1 MB Notification: Performance of simCode: created event and clocks part: time 2.284e-06/0.1529, allocations: 0 / 362.2 MB, free: 8.789 MB / 302.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0001251/0.1531, allocations: 59.97 kB / 362.3 MB, free: 8.73 MB / 302.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004331/0.1535, allocations: 65.33 kB / 362.4 MB, free: 8.664 MB / 302.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0008369/0.1543, allocations: 0.5581 MB / 362.9 MB, free: 8.078 MB / 302.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004799/0.1548, allocations: 0.7716 MB / 363.7 MB, free: 7.281 MB / 302.1 MB Notification: Performance of simCode: alias equations: time 0.0001561/0.155, allocations: 46.25 kB / 363.7 MB, free: 7.234 MB / 302.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 6.782e-05/0.1551, allocations: 35.42 kB / 363.8 MB, free: 7.199 MB / 302.1 MB Notification: Performance of SimCode: time 3.5e-07/0.1551, allocations: 0 / 363.8 MB, free: 7.199 MB / 302.1 MB Notification: Performance of Templates: time 0.007545/0.1626, allocations: 3.583 MB / 367.4 MB, free: 3.656 MB / 302.1 MB make -j1 -f Modelica_4.0.0_Modelica.Blocks.Examples.LogicalNetwork1.makefile (rm -f Modelica_4.0.0_Modelica.Blocks.Examples.LogicalNetwork1.pipe ; mkfifo Modelica_4.0.0_Modelica.Blocks.Examples.LogicalNetwork1.pipe ; head -c 1048576 < Modelica_4.0.0_Modelica.Blocks.Examples.LogicalNetwork1.pipe >> ../files/Modelica_4.0.0_Modelica.Blocks.Examples.LogicalNetwork1.sim & ./Modelica_4.0.0_Modelica.Blocks.Examples.LogicalNetwork1 -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Modelica_4.0.0_Modelica.Blocks.Examples.LogicalNetwork1.pipe 2>&1) diffSimulationResults("Modelica_4.0.0_Modelica.Blocks.Examples.LogicalNetwork1_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Blocks/Examples/LogicalNetwork1/LogicalNetwork1.csv","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_4.0.0_Modelica.Blocks.Examples.LogicalNetwork1.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches