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.001136/0.001136, allocations: 102.9 kB / 17.58 MB, free: 5.418 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.001256/0.001256, allocations: 187.9 kB / 18.5 MB, free: 4.504 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.254/1.254, allocations: 205.1 MB / 224.4 MB, free: 12.32 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.001202/0.001202, allocations: 51.92 kB / 280.6 MB, free: 3.199 MB / 222.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09442/0.09563, allocations: 46.63 MB / 327.3 MB, free: 4.5 MB / 270.1 MB Notification: Performance of NFInst.instantiate(Modelica.Blocks.Examples.LogicalNetwork1): time 0.003707/0.09938, allocations: 1.996 MB / 329.3 MB, free: 2.48 MB / 270.1 MB Notification: Performance of NFInst.instExpressions: time 0.001866/0.1013, allocations: 1.042 MB / 330.3 MB, free: 1.43 MB / 270.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002226/0.1015, allocations: 11.94 kB / 330.3 MB, free: 1.418 MB / 270.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0009763/0.1026, allocations: 303.2 kB / 330.6 MB, free: 1.121 MB / 270.1 MB Notification: Performance of NFTyping.typeBindings: time 0.000509/0.1031, allocations: 203.3 kB / 330.8 MB, free: 0.9219 MB / 270.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.000694/0.1038, allocations: 255.5 kB / 331.1 MB, free: 0.6719 MB / 270.1 MB Notification: Performance of NFFlatten.flatten: time 0.0004196/0.1042, allocations: 343.2 kB / 331.4 MB, free: 344 kB / 270.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001509/0.1044, allocations: 68.36 kB / 331.5 MB, free: 276 kB / 270.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002133/0.1046, allocations: 139.5 kB / 331.6 MB, free: 136 kB / 270.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002185/0.1048, allocations: 147.4 kB / 331.7 MB, free: 15.99 MB / 286.1 MB Notification: Performance of NFPackage.collectConstants: time 4.368e-05/0.1049, allocations: 16 kB / 331.8 MB, free: 15.97 MB / 286.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0002233/0.1051, allocations: 83.89 kB / 331.8 MB, free: 15.89 MB / 286.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001037/0.1052, allocations: 83.75 kB / 331.9 MB, free: 15.81 MB / 286.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001342/0.1053, allocations: 131.1 kB / 332 MB, free: 15.68 MB / 286.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0004147/0.1058, allocations: 339.2 kB / 332.4 MB, free: 15.35 MB / 286.1 MB Notification: Performance of FrontEnd - DAE generated: time 7.885e-06/0.1058, allocations: 3.984 kB / 332.4 MB, free: 15.34 MB / 286.1 MB Notification: Performance of FrontEnd: time 1.583e-06/0.1058, allocations: 0 / 332.4 MB, free: 15.34 MB / 286.1 MB Notification: Performance of Transformations before backend: time 8.736e-06/0.1058, allocations: 0 / 332.4 MB, free: 15.34 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.0009388/0.1067, allocations: 0.6571 MB / 333 MB, free: 14.62 MB / 286.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.664e-05/0.1068, allocations: 8.031 kB / 333 MB, free: 14.62 MB / 286.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 8.427e-05/0.1069, allocations: 36.56 kB / 333.1 MB, free: 14.58 MB / 286.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003981/0.1073, allocations: 324 kB / 333.4 MB, free: 14.23 MB / 286.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.902e-05/0.1073, allocations: 12.38 kB / 333.4 MB, free: 14.21 MB / 286.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.152e-05/0.1073, allocations: 12.12 kB / 333.4 MB, free: 14.2 MB / 286.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002831/0.1076, allocations: 144.1 kB / 333.6 MB, free: 14.05 MB / 286.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 9.698e-06/0.1077, allocations: 0 / 333.6 MB, free: 14.05 MB / 286.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.765e-05/0.1077, allocations: 8 kB / 333.6 MB, free: 14.04 MB / 286.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.442e-06/0.1077, allocations: 3.984 kB / 333.6 MB, free: 14.04 MB / 286.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.000161/0.1079, allocations: 71.83 kB / 333.6 MB, free: 13.96 MB / 286.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0006856/0.1086, allocations: 0.4885 MB / 334.1 MB, free: 13.43 MB / 286.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003203/0.1089, allocations: 134.7 kB / 334.3 MB, free: 13.29 MB / 286.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001063/0.109, allocations: 48.84 kB / 334.3 MB, free: 13.23 MB / 286.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.96e-05/0.109, allocations: 7.938 kB / 334.3 MB, free: 13.23 MB / 286.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002468/0.1093, allocations: 119.3 kB / 334.4 MB, free: 13.1 MB / 286.1 MB Notification: Performance of pre-optimization done (n=15): time 1.613e-06/0.1093, allocations: 0 / 334.4 MB, free: 13.1 MB / 286.1 MB Notification: Performance of matching and sorting (n=15): time 0.0005194/0.1098, allocations: 222.2 kB / 334.7 MB, free: 12.88 MB / 286.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.933e-05/0.1099, allocations: 102.8 kB / 334.8 MB, free: 12.75 MB / 286.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0004559/0.1104, allocations: 428.5 kB / 335.2 MB, free: 12.32 MB / 286.1 MB Notification: Performance of collectPreVariables (initialization): time 2.747e-05/0.1104, allocations: 33.69 kB / 335.2 MB, free: 12.28 MB / 286.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.000147/0.1106, allocations: 171.9 kB / 335.4 MB, free: 12.11 MB / 286.1 MB Notification: Performance of collectInitialBindings (initialization): time 4.779e-05/0.1106, allocations: 39.55 kB / 335.4 MB, free: 12.07 MB / 286.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 7.349e-05/0.1107, allocations: 45.7 kB / 335.5 MB, free: 12.02 MB / 286.1 MB Notification: Performance of setup shared object (initialization): time 0.0001524/0.1108, allocations: 338.8 kB / 335.8 MB, free: 11.68 MB / 286.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001113/0.111, allocations: 47.97 kB / 335.8 MB, free: 11.63 MB / 286.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001498/0.1111, allocations: 102 kB / 335.9 MB, free: 11.51 MB / 286.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002161/0.1113, allocations: 111.3 kB / 336 MB, free: 11.39 MB / 286.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.364e-06/0.1114, allocations: 0 / 336 MB, free: 11.39 MB / 286.1 MB Notification: Performance of matching and sorting (n=20) (initialization): time 0.0003399/0.1117, allocations: 171.1 kB / 336.2 MB, free: 11.22 MB / 286.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.671e-05/0.1117, allocations: 11.94 kB / 336.2 MB, free: 11.21 MB / 286.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.25e-06/0.1117, allocations: 3.938 kB / 336.2 MB, free: 11.2 MB / 286.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.369e-05/0.1118, allocations: 3.984 kB / 336.2 MB, free: 11.2 MB / 286.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001122/0.1119, allocations: 28 kB / 336.3 MB, free: 11.17 MB / 286.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.802e-06/0.1119, allocations: 0 / 336.3 MB, free: 11.17 MB / 286.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001078/0.112, allocations: 23.83 kB / 336.3 MB, free: 11.15 MB / 286.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.117e-05/0.112, allocations: 4 kB / 336.3 MB, free: 11.14 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 ($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.000165/0.1122, allocations: 171.6 kB / 336.5 MB, free: 10.96 MB / 286.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.707e-05/0.1123, allocations: 35.5 kB / 336.5 MB, free: 10.93 MB / 286.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 6.754e-05/0.1123, allocations: 30.94 kB / 336.5 MB, free: 10.9 MB / 286.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.589e-06/0.1123, allocations: 4 kB / 336.5 MB, free: 10.89 MB / 286.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.28e-06/0.1123, allocations: 4 kB / 336.5 MB, free: 10.89 MB / 286.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.937e-06/0.1124, allocations: 0 / 336.5 MB, free: 10.89 MB / 286.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002696/0.1126, allocations: 301.4 kB / 336.8 MB, free: 10.55 MB / 286.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.076e-06/0.1126, allocations: 0 / 336.8 MB, free: 10.55 MB / 286.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 3.991e-05/0.1127, allocations: 8 kB / 336.8 MB, free: 10.54 MB / 286.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 6.202e-06/0.1127, allocations: 7.922 kB / 336.8 MB, free: 10.53 MB / 286.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.465e-05/0.1127, allocations: 4 kB / 336.8 MB, free: 10.53 MB / 286.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.286e-06/0.1127, allocations: 4 kB / 336.8 MB, free: 10.52 MB / 286.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.555e-06/0.1127, allocations: 0 / 336.8 MB, free: 10.52 MB / 286.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003353/0.1131, allocations: 208.6 kB / 337 MB, free: 10.3 MB / 286.1 MB Notification: Performance of postOpt removeConstants (simulation): time 6.637e-05/0.1132, allocations: 104.7 kB / 337.1 MB, free: 10.18 MB / 286.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.422e-05/0.1132, allocations: 11.94 kB / 337.2 MB, free: 10.17 MB / 286.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 7.849e-05/0.1133, allocations: 7.984 kB / 337.2 MB, free: 10.16 MB / 286.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.876e-05/0.1134, allocations: 15.98 kB / 337.2 MB, free: 10.14 MB / 286.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.795e-05/0.1134, allocations: 7.984 kB / 337.2 MB, free: 10.14 MB / 286.1 MB Notification: Performance of sorting global known variables: time 0.0003255/0.1137, allocations: 311 kB / 337.5 MB, free: 9.836 MB / 286.1 MB Notification: Performance of sort global known variables: time 2.01e-07/0.1137, allocations: 0 / 337.5 MB, free: 9.836 MB / 286.1 MB Notification: Performance of remove unused functions: time 0.0002895/0.114, allocations: 63.98 kB / 337.6 MB, free: 9.773 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 (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.0009521/0.115, allocations: 426.9 kB / 338 MB, free: 9.359 MB / 286.1 MB Notification: Performance of simCode: created initialization part: time 0.0003146/0.1153, allocations: 123.8 kB / 338.1 MB, free: 9.238 MB / 286.1 MB Notification: Performance of simCode: created event and clocks part: time 2.555e-06/0.1153, allocations: 0 / 338.1 MB, free: 9.238 MB / 286.1 MB Notification: Performance of simCode: created simulation system equations: time 0.000183/0.1155, allocations: 55.98 kB / 338.1 MB, free: 9.184 MB / 286.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004039/0.1159, allocations: 74 kB / 338.2 MB, free: 9.109 MB / 286.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0008647/0.1168, allocations: 0.4963 MB / 338.7 MB, free: 8.586 MB / 286.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003307/0.1171, allocations: 0.7752 MB / 339.5 MB, free: 7.785 MB / 286.1 MB Notification: Performance of simCode: alias equations: time 0.0001411/0.1173, allocations: 54.23 kB / 339.5 MB, free: 7.73 MB / 286.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 5.895e-05/0.1173, allocations: 23.44 kB / 339.6 MB, free: 7.707 MB / 286.1 MB Notification: Performance of SimCode: time 6.42e-07/0.1174, allocations: 0 / 339.6 MB, free: 7.707 MB / 286.1 MB Notification: Performance of Templates: time 0.008058/0.1254, allocations: 3.828 MB / 343.4 MB, free: 3.879 MB / 286.1 MB make -j1 -f Modelica_3.2.3_Modelica.Blocks.Examples.LogicalNetwork1.makefile (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) 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","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_3.2.3_Modelica.Blocks.Examples.LogicalNetwork1.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches