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.001593/0.001593, allocations: 116.5 kB / 17.7 MB, free: 5.383 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.001955/0.001955, allocations: 190.9 kB / 18.63 MB, free: 4.453 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.418/1.418, allocations: 222.9 MB / 242.3 MB, free: 15.14 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001274/0.001275, allocations: 48.34 kB / 302.1 MB, free: 5.164 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1168/0.1181, allocations: 49.44 MB / 351.5 MB, free: 3.695 MB / 286.1 MB Notification: Performance of NFInst.instantiate(Modelica.Blocks.Examples.LogicalNetwork1): time 0.004261/0.1224, allocations: 1.985 MB / 353.5 MB, free: 1.684 MB / 286.1 MB Notification: Performance of NFInst.instExpressions: time 0.002496/0.1249, allocations: 1.138 MB / 354.6 MB, free: 0.543 MB / 286.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002372/0.1252, allocations: 3.938 kB / 354.6 MB, free: 0.5391 MB / 286.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0009767/0.1262, allocations: 302 kB / 354.9 MB, free: 252 kB / 286.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0005469/0.1267, allocations: 203.3 kB / 355.1 MB, free: 48 kB / 286.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0008494/0.1276, allocations: 285.9 kB / 355.4 MB, free: 15.77 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 0.0004208/0.128, allocations: 343.2 kB / 355.7 MB, free: 15.44 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001714/0.1282, allocations: 68.38 kB / 355.8 MB, free: 15.37 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.000201/0.1284, allocations: 139.5 kB / 355.9 MB, free: 15.23 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001769/0.1286, allocations: 147.4 kB / 356.1 MB, free: 15.09 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 3.543e-05/0.1286, allocations: 20 kB / 356.1 MB, free: 15.07 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001808/0.1288, allocations: 75.95 kB / 356.2 MB, free: 14.99 MB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001017/0.1289, allocations: 91.67 kB / 356.3 MB, free: 14.9 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 0.000122/0.129, allocations: 119.2 kB / 356.4 MB, free: 14.79 MB / 302.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0003768/0.1294, allocations: 354.8 kB / 356.7 MB, free: 14.44 MB / 302.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.799e-06/0.1294, allocations: 0 / 356.7 MB, free: 14.44 MB / 302.1 MB Notification: Performance of FrontEnd: time 2.014e-06/0.1295, allocations: 0 / 356.7 MB, free: 14.44 MB / 302.1 MB Notification: Performance of Transformations before backend: time 7.003e-06/0.1295, allocations: 0 / 356.7 MB, free: 14.44 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.0009493/0.1304, allocations: 0.6572 MB / 357.4 MB, free: 13.72 MB / 302.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.849e-05/0.1305, allocations: 8.031 kB / 357.4 MB, free: 13.71 MB / 302.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 7.162e-05/0.1305, allocations: 36.56 kB / 357.4 MB, free: 13.68 MB / 302.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004284/0.131, allocations: 327.9 kB / 357.7 MB, free: 13.32 MB / 302.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.055e-05/0.131, allocations: 15.94 kB / 357.8 MB, free: 13.3 MB / 302.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.728e-05/0.131, allocations: 8 kB / 357.8 MB, free: 13.29 MB / 302.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002848/0.1313, allocations: 159.9 kB / 357.9 MB, free: 13.12 MB / 302.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 7.414e-06/0.1314, allocations: 0 / 357.9 MB, free: 13.12 MB / 302.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.596e-05/0.1314, allocations: 8 kB / 357.9 MB, free: 13.11 MB / 302.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.519e-06/0.1314, allocations: 0 / 357.9 MB, free: 13.11 MB / 302.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001612/0.1316, allocations: 71.95 kB / 358 MB, free: 13.04 MB / 302.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0006563/0.1322, allocations: 492.3 kB / 358.5 MB, free: 12.51 MB / 302.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003108/0.1325, allocations: 146.7 kB / 358.6 MB, free: 12.36 MB / 302.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001029/0.1327, allocations: 48.83 kB / 358.7 MB, free: 12.31 MB / 302.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.334e-05/0.1327, allocations: 0 / 358.7 MB, free: 12.31 MB / 302.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002173/0.1329, allocations: 115.3 kB / 358.8 MB, free: 12.18 MB / 302.1 MB Notification: Performance of pre-optimization done (n=15): time 1.333e-06/0.1329, allocations: 4 kB / 358.8 MB, free: 12.18 MB / 302.1 MB Notification: Performance of matching and sorting (n=15): time 0.0004473/0.1334, allocations: 220.2 kB / 359 MB, free: 11.96 MB / 302.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.473e-05/0.1334, allocations: 110.8 kB / 359.1 MB, free: 11.83 MB / 302.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0004174/0.1339, allocations: 420.5 kB / 359.5 MB, free: 11.41 MB / 302.1 MB Notification: Performance of collectPreVariables (initialization): time 2.533e-05/0.1339, allocations: 33.7 kB / 359.6 MB, free: 11.37 MB / 302.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001186/0.134, allocations: 171.9 kB / 359.7 MB, free: 11.2 MB / 302.1 MB Notification: Performance of collectInitialBindings (initialization): time 3.772e-05/0.1341, allocations: 35.55 kB / 359.8 MB, free: 11.16 MB / 302.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 5.974e-05/0.1341, allocations: 41.7 kB / 359.8 MB, free: 11.12 MB / 302.1 MB Notification: Performance of setup shared object (initialization): time 0.0001247/0.1343, allocations: 346.8 kB / 360.1 MB, free: 10.77 MB / 302.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001056/0.1344, allocations: 47.92 kB / 360.2 MB, free: 10.72 MB / 302.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.000137/0.1345, allocations: 97.98 kB / 360.3 MB, free: 10.61 MB / 302.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.000183/0.1347, allocations: 110.4 kB / 360.4 MB, free: 10.49 MB / 302.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.455e-06/0.1347, allocations: 0 / 360.4 MB, free: 10.49 MB / 302.1 MB Notification: Performance of matching and sorting (n=20) (initialization): time 0.0002954/0.135, allocations: 177.2 kB / 360.6 MB, free: 10.31 MB / 302.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.4e-05/0.135, allocations: 6.812 kB / 360.6 MB, free: 10.3 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.849e-06/0.1351, allocations: 0 / 360.6 MB, free: 10.3 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.483e-05/0.1351, allocations: 4 kB / 360.6 MB, free: 10.3 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001271/0.1352, allocations: 27.92 kB / 360.6 MB, free: 10.27 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.045e-05/0.1352, allocations: 4 kB / 360.6 MB, free: 10.27 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001001/0.1353, allocations: 27.89 kB / 360.6 MB, free: 10.24 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.364e-05/0.1353, allocations: 8 kB / 360.6 MB, free: 10.23 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.0001419/0.1355, allocations: 163.6 kB / 360.8 MB, free: 10.07 MB / 302.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.383e-05/0.1355, allocations: 35.56 kB / 360.8 MB, free: 10.03 MB / 302.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 6.365e-05/0.1356, allocations: 34.94 kB / 360.9 MB, free: 9.996 MB / 302.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.374e-06/0.1356, allocations: 3.938 kB / 360.9 MB, free: 9.992 MB / 302.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.578e-06/0.1356, allocations: 0 / 360.9 MB, free: 9.992 MB / 302.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.546e-06/0.1356, allocations: 0 / 360.9 MB, free: 9.992 MB / 302.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002552/0.1359, allocations: 297.4 kB / 361.2 MB, free: 9.652 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.454e-06/0.1359, allocations: 7.938 kB / 361.2 MB, free: 9.645 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 3.847e-05/0.136, allocations: 15.94 kB / 361.2 MB, free: 9.629 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.024e-06/0.136, allocations: 3.938 kB / 361.2 MB, free: 9.625 MB / 302.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.605e-05/0.136, allocations: 7.984 kB / 361.2 MB, free: 9.617 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.503e-06/0.136, allocations: 0 / 361.2 MB, free: 9.617 MB / 302.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.41e-07/0.136, allocations: 0 / 361.2 MB, free: 9.617 MB / 302.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003204/0.1363, allocations: 199.2 kB / 361.4 MB, free: 9.406 MB / 302.1 MB Notification: Performance of postOpt removeConstants (simulation): time 8.463e-05/0.1364, allocations: 112.6 kB / 361.5 MB, free: 9.277 MB / 302.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.388e-05/0.1365, allocations: 8 kB / 361.5 MB, free: 9.27 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 8.182e-05/0.1366, allocations: 11.98 kB / 361.5 MB, free: 9.258 MB / 302.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.161e-05/0.1366, allocations: 7.984 kB / 361.5 MB, free: 9.25 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.305e-05/0.1367, allocations: 15.98 kB / 361.5 MB, free: 9.234 MB / 302.1 MB Notification: Performance of sorting global known variables: time 0.0003487/0.137, allocations: 311 kB / 361.9 MB, free: 8.934 MB / 302.1 MB Notification: Performance of sort global known variables: time 1.3e-07/0.137, allocations: 0 / 361.9 MB, free: 8.934 MB / 302.1 MB Notification: Performance of remove unused functions: time 0.0002906/0.1373, allocations: 51.98 kB / 361.9 MB, free: 8.883 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.0009957/0.1383, allocations: 444 kB / 362.3 MB, free: 8.602 MB / 302.1 MB Notification: Performance of simCode: created initialization part: time 0.0003022/0.1386, allocations: 123.8 kB / 362.5 MB, free: 8.48 MB / 302.1 MB Notification: Performance of simCode: created event and clocks part: time 2.104e-06/0.1387, allocations: 0 / 362.5 MB, free: 8.48 MB / 302.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0001243/0.1388, allocations: 59.92 kB / 362.5 MB, free: 8.422 MB / 302.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004107/0.1392, allocations: 82.11 kB / 362.6 MB, free: 8.344 MB / 302.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0007398/0.14, allocations: 0.4923 MB / 363.1 MB, free: 7.828 MB / 302.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003256/0.1403, allocations: 0.7714 MB / 363.9 MB, free: 7.027 MB / 302.1 MB Notification: Performance of simCode: alias equations: time 0.0001085/0.1404, allocations: 42.27 kB / 363.9 MB, free: 6.988 MB / 302.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 6.161e-05/0.1405, allocations: 31.42 kB / 363.9 MB, free: 6.957 MB / 302.1 MB Notification: Performance of SimCode: time 3.31e-07/0.1405, allocations: 0 / 363.9 MB, free: 6.957 MB / 302.1 MB Notification: Performance of Templates: time 0.007399/0.1479, allocations: 3.815 MB / 367.7 MB, free: 3.176 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 -s cvode -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/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Blocks/Examples/LogicalNetwork1/LogicalNetwork1.csv","/var/lib/jenkins1/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