Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_3.2.3_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 3.2.3+maint.om/package.mo", uses=false) 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.Blocks.Examples.LogicalNetwork1,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|Pre1.u|table1.y|table2.y",fileNamePrefix="Modelica_3.2.3_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_3.2.3_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.001132/0.001133, allocations: 102 kB / 16.94 MB, free: 6.438 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.0009978/0.0009982, allocations: 184.9 kB / 17.83 MB, free: 6.004 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.4 MB / 224 MB, free: 13.16 MB / 190.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: Performance of FrontEnd - loaded program: time 0.000527/0.0005273, allocations: 11.44 kB / 280.7 MB, free: 3.766 MB / 222.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1121/0.1126, allocations: 47.58 MB / 328.3 MB, free: 4.109 MB / 270.1 MB Notification: Performance of NFInst.instantiate(Modelica.Blocks.Examples.LogicalNetwork1): time 0.004083/0.1168, allocations: 1.631 MB / 329.9 MB, free: 2.465 MB / 270.1 MB Notification: Performance of NFInst.instExpressions: time 0.002528/0.1194, allocations: 0.9448 MB / 330.9 MB, free: 1.512 MB / 270.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001584/0.1196, allocations: 3.938 kB / 330.9 MB, free: 1.508 MB / 270.1 MB Notification: Performance of NFTyping.typeComponents: time 0.001017/0.1206, allocations: 267.4 kB / 331.2 MB, free: 1.246 MB / 270.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0004966/0.1211, allocations: 163.6 kB / 331.3 MB, free: 1.086 MB / 270.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0008304/0.1219, allocations: 231.5 kB / 331.5 MB, free: 0.8594 MB / 270.1 MB Notification: Performance of NFFlatten.flatten: time 0.0004045/0.1224, allocations: 203.5 kB / 331.7 MB, free: 0.6602 MB / 270.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002369/0.1226, allocations: 64.53 kB / 331.8 MB, free: 0.5977 MB / 270.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002318/0.1229, allocations: 115.5 kB / 331.9 MB, free: 496 kB / 270.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002472/0.1231, allocations: 119.6 kB / 332 MB, free: 376 kB / 270.1 MB Notification: Performance of NFPackage.collectConstants: time 3.452e-05/0.1232, allocations: 4 kB / 332 MB, free: 372 kB / 270.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0002252/0.1234, allocations: 47.91 kB / 332.1 MB, free: 324 kB / 270.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0002716/0.1237, allocations: 67.8 kB / 332.2 MB, free: 256 kB / 270.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001057/0.1238, allocations: 77.45 kB / 332.2 MB, free: 172 kB / 270.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0005779/0.1244, allocations: 259.7 kB / 332.5 MB, free: 15.91 MB / 286.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.5e-06/0.1244, allocations: 0 / 332.5 MB, free: 15.91 MB / 286.1 MB Notification: Performance of FrontEnd: time 3.026e-06/0.1244, allocations: 0 / 332.5 MB, free: 15.91 MB / 286.1 MB Notification: Performance of Transformations before backend: time 6.512e-06/0.1244, allocations: 4 kB / 332.5 MB, free: 15.91 MB / 286.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.001404/0.1258, allocations: 0.6066 MB / 333.1 MB, free: 15.24 MB / 286.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.922e-05/0.1259, allocations: 8.031 kB / 333.1 MB, free: 15.23 MB / 286.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001004/0.126, allocations: 31.62 kB / 333.1 MB, free: 15.2 MB / 286.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0005823/0.1266, allocations: 322.9 kB / 333.4 MB, free: 14.85 MB / 286.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.005e-05/0.1267, allocations: 8 kB / 333.5 MB, free: 14.84 MB / 286.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.995e-05/0.1267, allocations: 15.98 kB / 333.5 MB, free: 14.83 MB / 286.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003843/0.1271, allocations: 144.1 kB / 333.6 MB, free: 14.67 MB / 286.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.292e-05/0.1271, allocations: 0 / 333.6 MB, free: 14.67 MB / 286.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.642e-05/0.1272, allocations: 3.984 kB / 333.6 MB, free: 14.67 MB / 286.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 9.558e-06/0.1272, allocations: 4 kB / 333.6 MB, free: 14.66 MB / 286.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0003251/0.1275, allocations: 71.83 kB / 333.7 MB, free: 14.59 MB / 286.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.00116/0.1287, allocations: 0.4925 MB / 334.2 MB, free: 14.05 MB / 286.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0005206/0.1292, allocations: 138.7 kB / 334.3 MB, free: 13.91 MB / 286.1 MB Notification: Performance of preOpt evalFunc (simulation): time 4.164e-05/0.1293, allocations: 3.984 kB / 334.3 MB, free: 13.9 MB / 286.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0003214/0.1296, allocations: 111.3 kB / 334.4 MB, free: 13.78 MB / 286.1 MB Notification: Performance of pre-optimization done (n=15): time 2.033e-06/0.1297, allocations: 0 / 334.4 MB, free: 13.78 MB / 286.1 MB Notification: Performance of matching and sorting (n=15): time 0.0007548/0.1304, allocations: 220.7 kB / 334.6 MB, free: 13.56 MB / 286.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.000113/0.1305, allocations: 102.8 kB / 334.7 MB, free: 13.44 MB / 286.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.000561/0.1311, allocations: 432.4 kB / 335.2 MB, free: 13 MB / 286.1 MB Notification: Performance of collectPreVariables (initialization): time 2.605e-05/0.1312, allocations: 33.64 kB / 335.2 MB, free: 12.96 MB / 286.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001377/0.1313, allocations: 175.9 kB / 335.4 MB, free: 12.79 MB / 286.1 MB Notification: Performance of collectInitialBindings (initialization): time 4.03e-05/0.1314, allocations: 39.45 kB / 335.4 MB, free: 12.75 MB / 286.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 7.745e-06/0.1314, allocations: 4 kB / 335.4 MB, free: 12.74 MB / 286.1 MB Notification: Performance of setup shared object (initialization): time 0.0001527/0.1315, allocations: 338.8 kB / 335.7 MB, free: 12.4 MB / 286.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001021/0.1316, allocations: 39.98 kB / 335.8 MB, free: 12.36 MB / 286.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001487/0.1318, allocations: 106 kB / 335.9 MB, free: 12.24 MB / 286.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001086/0.1319, allocations: 51.88 kB / 335.9 MB, free: 12.19 MB / 286.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.066e-06/0.1319, allocations: 0 / 335.9 MB, free: 12.19 MB / 286.1 MB Notification: Performance of matching and sorting (n=20) (initialization): time 0.0003325/0.1323, allocations: 181.2 kB / 336.1 MB, free: 12 MB / 286.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.821e-05/0.1323, allocations: 4 kB / 336.1 MB, free: 12 MB / 286.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.961e-06/0.1323, allocations: 0 / 336.1 MB, free: 12 MB / 286.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.762e-05/0.1323, allocations: 4 kB / 336.1 MB, free: 12 MB / 286.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001165/0.1324, allocations: 19.98 kB / 336.1 MB, free: 11.98 MB / 286.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.462e-06/0.1325, allocations: 0 / 336.1 MB, free: 11.98 MB / 286.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001059/0.1326, allocations: 27.83 kB / 336.2 MB, free: 11.95 MB / 286.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.26e-05/0.1326, allocations: 4 kB / 336.2 MB, free: 11.95 MB / 286.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 ($whenCondition2,$PRE.table1.combiTimeTable.nextTimeEvent,$whenCondition1,$PRE.table2.combiTimeTable.nextTimeEvent,table2.combiTimeTable.nextTimeEvent,$PRE.table2.combiTimeTable.nextTimeEventScaled,table2.combiTimeTable.nextTimeEventScaled,table1.y,table1.combiTimeTable.nextTimeEvent,$PRE.table1.combiTimeTable.nextTimeEventScaled,table1.combiTimeTable.nextTimeEventScaled,Not1.y,And1.y,$PRE.Pre1.u,Pre1.u,Pre1.y) * 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 (linear and non-linear blocks): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.0001911/0.1328, allocations: 179.5 kB / 336.3 MB, free: 11.76 MB / 286.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.212e-05/0.1328, allocations: 31.67 kB / 336.4 MB, free: 11.73 MB / 286.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 7.821e-05/0.1329, allocations: 34.94 kB / 336.4 MB, free: 11.69 MB / 286.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.068e-06/0.1329, allocations: 0 / 336.4 MB, free: 11.69 MB / 286.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.787e-06/0.133, allocations: 4 kB / 336.4 MB, free: 11.69 MB / 286.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.336e-06/0.133, allocations: 0 / 336.4 MB, free: 11.69 MB / 286.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.000335/0.1333, allocations: 297.3 kB / 336.7 MB, free: 11.35 MB / 286.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.353e-06/0.1333, allocations: 7.938 kB / 336.7 MB, free: 11.34 MB / 286.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 3.478e-05/0.1334, allocations: 4 kB / 336.7 MB, free: 11.34 MB / 286.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 5.12e-06/0.1334, allocations: 7.953 kB / 336.7 MB, free: 11.33 MB / 286.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.538e-05/0.1334, allocations: 11.98 kB / 336.7 MB, free: 11.32 MB / 286.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.025e-06/0.1334, allocations: 3.938 kB / 336.7 MB, free: 11.31 MB / 286.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.012e-06/0.1334, allocations: 0 / 336.7 MB, free: 11.31 MB / 286.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003952/0.1338, allocations: 197.8 kB / 336.9 MB, free: 11.1 MB / 286.1 MB Notification: Performance of postOpt removeConstants (simulation): time 9.009e-05/0.1339, allocations: 112.7 kB / 337 MB, free: 10.97 MB / 286.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 6.108e-05/0.134, allocations: 11.95 kB / 337.1 MB, free: 10.96 MB / 286.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 8.873e-05/0.1341, allocations: 15.98 kB / 337.1 MB, free: 10.95 MB / 286.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.431e-05/0.1341, allocations: 11.98 kB / 337.1 MB, free: 10.93 MB / 286.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.92e-05/0.1342, allocations: 4 kB / 337.1 MB, free: 10.93 MB / 286.1 MB Notification: Performance of sorting global known variables: time 0.0003286/0.1345, allocations: 319 kB / 337.4 MB, free: 10.62 MB / 286.1 MB Notification: Performance of sort global known variables: time 1.4e-07/0.1345, allocations: 0 / 337.4 MB, free: 10.62 MB / 286.1 MB Notification: Performance of remove unused functions: time 0.000294/0.1348, allocations: 47.98 kB / 337.4 MB, free: 10.57 MB / 286.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 (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.0009613/0.1358, allocations: 420.9 kB / 337.9 MB, free: 10.17 MB / 286.1 MB Notification: Performance of simCode: created initialization part: time 0.0003158/0.1361, allocations: 127.8 kB / 338 MB, free: 10.04 MB / 286.1 MB Notification: Performance of simCode: created event and clocks part: time 3.607e-06/0.1361, allocations: 0 / 338 MB, free: 10.04 MB / 286.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0001311/0.1363, allocations: 51.98 kB / 338 MB, free: 9.992 MB / 286.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003718/0.1366, allocations: 73.3 kB / 338.1 MB, free: 9.918 MB / 286.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0008926/0.1375, allocations: 0.5269 MB / 338.6 MB, free: 9.363 MB / 286.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004657/0.138, allocations: 0.7796 MB / 339.4 MB, free: 8.559 MB / 286.1 MB Notification: Performance of simCode: alias equations: time 0.0001198/0.1381, allocations: 42.25 kB / 339.5 MB, free: 8.52 MB / 286.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 6.146e-05/0.1382, allocations: 27.42 kB / 339.5 MB, free: 8.492 MB / 286.1 MB Notification: Performance of SimCode: time 4.51e-07/0.1382, allocations: 0 / 339.5 MB, free: 8.492 MB / 286.1 MB Notification: Performance of Templates: time 0.008336/0.1466, allocations: 3.493 MB / 343 MB, free: 4.996 MB / 286.1 MB make -j1 -f Modelica_3.2.3_Modelica.Blocks.Examples.LogicalNetwork1.makefile Environment - environmentSimulation: (rm -f Modelica_3.2.3_Modelica.Blocks.Examples.LogicalNetwork1.pipe ; mkfifo Modelica_3.2.3_Modelica.Blocks.Examples.LogicalNetwork1.pipe ; head -c 1048576 < Modelica_3.2.3_Modelica.Blocks.Examples.LogicalNetwork1.pipe >> ../files/Modelica_3.2.3_Modelica.Blocks.Examples.LogicalNetwork1.sim & ./Modelica_3.2.3_Modelica.Blocks.Examples.LogicalNetwork1 -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Modelica_3.2.3_Modelica.Blocks.Examples.LogicalNetwork1.pipe 2>&1) Environment - environmentSimulation: diffSimulationResults("Modelica_3.2.3_Modelica.Blocks.Examples.LogicalNetwork1_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v3.2.3+build.4/Modelica/Blocks/Examples/LogicalNetwork1/LogicalNetwork1.csv","../files/Modelica_3.2.3_Modelica.Blocks.Examples.LogicalNetwork1.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches