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.001209/0.001209, allocations: 108.4 kB / 18.36 MB, free: 4.641 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.001259/0.001258, allocations: 191 kB / 19.29 MB, free: 3.715 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.374/1.374, allocations: 205.1 MB / 225.2 MB, free: 12.28 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.001162/0.001162, allocations: 51.92 kB / 282.1 MB, free: 2.508 MB / 222.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.08959/0.09077, allocations: 46.63 MB / 328.7 MB, free: 3.809 MB / 270.1 MB Notification: Performance of NFInst.instantiate(Modelica.Blocks.Examples.LogicalNetwork1): time 0.003142/0.09395, allocations: 1.992 MB / 330.7 MB, free: 1.797 MB / 270.1 MB Notification: Performance of NFInst.instExpressions: time 0.0016/0.09557, allocations: 1.05 MB / 331.8 MB, free: 0.7383 MB / 270.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 9.886e-05/0.09568, allocations: 7.938 kB / 331.8 MB, free: 0.7305 MB / 270.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0007694/0.09646, allocations: 303.2 kB / 332.1 MB, free: 444 kB / 270.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0003949/0.09687, allocations: 203.3 kB / 332.3 MB, free: 240 kB / 270.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0006282/0.0975, allocations: 259.5 kB / 332.5 MB, free: 15.98 MB / 286.1 MB Notification: Performance of NFFlatten.flatten: time 0.0003574/0.09787, allocations: 347 kB / 332.9 MB, free: 15.64 MB / 286.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001616/0.09804, allocations: 68.38 kB / 332.9 MB, free: 15.57 MB / 286.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.000155/0.09821, allocations: 147.4 kB / 333.1 MB, free: 15.43 MB / 286.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001757/0.09839, allocations: 143.4 kB / 333.2 MB, free: 15.29 MB / 286.1 MB Notification: Performance of NFPackage.collectConstants: time 3.651e-05/0.09843, allocations: 16 kB / 333.2 MB, free: 15.27 MB / 286.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001664/0.09861, allocations: 87.88 kB / 333.3 MB, free: 15.19 MB / 286.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001022/0.09872, allocations: 79.75 kB / 333.4 MB, free: 15.11 MB / 286.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001142/0.09884, allocations: 127.2 kB / 333.5 MB, free: 14.98 MB / 286.1 MB Notification: Performance of NFConvertDAE.convert: time 0.00036/0.0992, allocations: 350.8 kB / 333.8 MB, free: 14.64 MB / 286.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.088e-06/0.09922, allocations: 0 / 333.8 MB, free: 14.64 MB / 286.1 MB Notification: Performance of FrontEnd: time 1.603e-06/0.09923, allocations: 3.938 kB / 333.9 MB, free: 14.64 MB / 286.1 MB Notification: Performance of Transformations before backend: time 6.432e-06/0.09924, allocations: 4 kB / 333.9 MB, free: 14.63 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.0008713/0.1001, allocations: 0.6571 MB / 334.5 MB, free: 13.91 MB / 286.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.17e-05/0.1002, allocations: 8.031 kB / 334.5 MB, free: 13.91 MB / 286.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 6.96e-05/0.1002, allocations: 32.56 kB / 334.6 MB, free: 13.88 MB / 286.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004054/0.1006, allocations: 335.9 kB / 334.9 MB, free: 13.51 MB / 286.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.658e-05/0.1007, allocations: 8.375 kB / 334.9 MB, free: 13.5 MB / 286.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.465e-05/0.1007, allocations: 16.12 kB / 334.9 MB, free: 13.48 MB / 286.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002641/0.101, allocations: 140.2 kB / 335 MB, free: 13.33 MB / 286.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 9.077e-06/0.101, allocations: 4 kB / 335 MB, free: 13.33 MB / 286.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.656e-05/0.101, allocations: 4 kB / 335 MB, free: 13.32 MB / 286.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.821e-06/0.101, allocations: 4 kB / 335.1 MB, free: 13.32 MB / 286.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001668/0.1012, allocations: 75.75 kB / 335.1 MB, free: 13.25 MB / 286.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0006525/0.1019, allocations: 492.3 kB / 335.6 MB, free: 12.71 MB / 286.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.000321/0.1022, allocations: 126.7 kB / 335.7 MB, free: 12.58 MB / 286.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001096/0.1023, allocations: 56.83 kB / 335.8 MB, free: 12.52 MB / 286.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.417e-05/0.1024, allocations: 0 / 335.8 MB, free: 12.52 MB / 286.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002125/0.1026, allocations: 127.2 kB / 335.9 MB, free: 12.39 MB / 286.1 MB Notification: Performance of pre-optimization done (n=15): time 1.533e-06/0.1026, allocations: 0 / 335.9 MB, free: 12.39 MB / 286.1 MB Notification: Performance of matching and sorting (n=15): time 0.0004646/0.1031, allocations: 217.1 kB / 336.1 MB, free: 12.17 MB / 286.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.013e-05/0.1031, allocations: 106.8 kB / 336.2 MB, free: 12.04 MB / 286.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0004362/0.1036, allocations: 424.5 kB / 336.6 MB, free: 11.61 MB / 286.1 MB Notification: Performance of collectPreVariables (initialization): time 2.654e-05/0.1036, allocations: 37.69 kB / 336.7 MB, free: 11.57 MB / 286.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001149/0.1037, allocations: 175.8 kB / 336.9 MB, free: 11.39 MB / 286.1 MB Notification: Performance of collectInitialBindings (initialization): time 3.893e-05/0.1038, allocations: 39.55 kB / 336.9 MB, free: 11.35 MB / 286.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 6.221e-05/0.1038, allocations: 41.7 kB / 336.9 MB, free: 11.3 MB / 286.1 MB Notification: Performance of setup shared object (initialization): time 0.0001333/0.104, allocations: 338.8 kB / 337.3 MB, free: 10.96 MB / 286.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001141/0.1041, allocations: 47.97 kB / 337.3 MB, free: 10.92 MB / 286.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001407/0.1042, allocations: 105.9 kB / 337.4 MB, free: 10.79 MB / 286.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001899/0.1044, allocations: 98.5 kB / 337.5 MB, free: 10.69 MB / 286.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.284e-06/0.1045, allocations: 0 / 337.5 MB, free: 10.69 MB / 286.1 MB Notification: Performance of matching and sorting (n=20) (initialization): time 0.0002894/0.1047, allocations: 173.2 kB / 337.7 MB, free: 10.51 MB / 286.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.477e-05/0.1048, allocations: 7.938 kB / 337.7 MB, free: 10.5 MB / 286.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.578e-06/0.1048, allocations: 8.062 kB / 337.7 MB, free: 10.5 MB / 286.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.293e-05/0.1048, allocations: 0 / 337.7 MB, free: 10.5 MB / 286.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001254/0.1049, allocations: 31.92 kB / 337.7 MB, free: 10.46 MB / 286.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.47e-06/0.1049, allocations: 0 / 337.7 MB, free: 10.46 MB / 286.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 9.711e-05/0.105, allocations: 23.88 kB / 337.7 MB, free: 10.44 MB / 286.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.34e-05/0.1051, allocations: 7.984 kB / 337.8 MB, free: 10.43 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.0001578/0.1052, allocations: 171.5 kB / 337.9 MB, free: 10.25 MB / 286.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.133e-05/0.1053, allocations: 39.5 kB / 338 MB, free: 10.21 MB / 286.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 6.404e-05/0.1054, allocations: 34.94 kB / 338 MB, free: 10.18 MB / 286.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.367e-06/0.1054, allocations: 4 kB / 338 MB, free: 10.18 MB / 286.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.867e-06/0.1054, allocations: 0 / 338 MB, free: 10.18 MB / 286.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.416e-06/0.1054, allocations: 0 / 338 MB, free: 10.18 MB / 286.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002538/0.1056, allocations: 301.4 kB / 338.3 MB, free: 9.832 MB / 286.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.202e-06/0.1056, allocations: 0 / 338.3 MB, free: 9.832 MB / 286.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 3.546e-05/0.1057, allocations: 4 kB / 338.3 MB, free: 9.828 MB / 286.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 4.619e-06/0.1057, allocations: 7.938 kB / 338.3 MB, free: 9.82 MB / 286.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.41e-05/0.1057, allocations: 7.984 kB / 338.3 MB, free: 9.812 MB / 286.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.453e-06/0.1057, allocations: 0 / 338.3 MB, free: 9.812 MB / 286.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.61e-07/0.1057, allocations: 0 / 338.3 MB, free: 9.812 MB / 286.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003232/0.1061, allocations: 205.3 kB / 338.5 MB, free: 9.594 MB / 286.1 MB Notification: Performance of postOpt removeConstants (simulation): time 9.015e-05/0.1062, allocations: 104.7 kB / 338.6 MB, free: 9.473 MB / 286.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.332e-05/0.1062, allocations: 11.94 kB / 338.6 MB, free: 9.461 MB / 286.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 8.045e-05/0.1063, allocations: 7.984 kB / 338.6 MB, free: 9.453 MB / 286.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.012e-05/0.1064, allocations: 15.98 kB / 338.7 MB, free: 9.438 MB / 286.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.281e-05/0.1064, allocations: 7.984 kB / 338.7 MB, free: 9.43 MB / 286.1 MB Notification: Performance of sorting global known variables: time 0.0004527/0.1069, allocations: 315 kB / 339 MB, free: 9.125 MB / 286.1 MB Notification: Performance of sort global known variables: time 2e-07/0.1069, allocations: 3.938 kB / 339 MB, free: 9.121 MB / 286.1 MB Notification: Performance of remove unused functions: time 0.0004554/0.1073, allocations: 51.98 kB / 339 MB, free: 9.07 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.0009077/0.1083, allocations: 418.2 kB / 339.4 MB, free: 8.664 MB / 286.1 MB Notification: Performance of simCode: created initialization part: time 0.0002876/0.1086, allocations: 115.9 kB / 339.5 MB, free: 8.551 MB / 286.1 MB Notification: Performance of simCode: created event and clocks part: time 3.426e-06/0.1086, allocations: 128 / 339.5 MB, free: 8.551 MB / 286.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0001223/0.1087, allocations: 68.14 kB / 339.6 MB, free: 8.484 MB / 286.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000468/0.1092, allocations: 77.31 kB / 339.7 MB, free: 8.406 MB / 286.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0007033/0.1099, allocations: 492.3 kB / 340.2 MB, free: 7.898 MB / 286.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003242/0.1102, allocations: 0.7752 MB / 340.9 MB, free: 7.098 MB / 286.1 MB Notification: Performance of simCode: alias equations: time 0.000107/0.1103, allocations: 46.25 kB / 341 MB, free: 7.051 MB / 286.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 6.158e-05/0.1104, allocations: 31.42 kB / 341 MB, free: 7.02 MB / 286.1 MB Notification: Performance of SimCode: time 2.8e-07/0.1104, allocations: 4 kB / 341 MB, free: 7.016 MB / 286.1 MB Notification: Performance of Templates: time 0.007605/0.118, allocations: 3.837 MB / 344.9 MB, free: 3.18 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 -s cvode -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/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v3.2.3+build.4/Modelica/Blocks/Examples/LogicalNetwork1/LogicalNetwork1.csv","/var/lib/jenkins1/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