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.001267/0.001268, allocations: 111.9 kB / 17.68 MB, free: 5.332 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.001221/0.00122, allocations: 192 kB / 18.62 MB, free: 4.41 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.318/1.318, allocations: 222.9 MB / 242.3 MB, free: 15.14 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0009508/0.0009509, allocations: 54.92 kB / 302 MB, free: 5.172 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.08553/0.08649, allocations: 49.44 MB / 351.5 MB, free: 3.707 MB / 286.1 MB Notification: Performance of NFInst.instantiate(Modelica.Blocks.Examples.LogicalNetwork1): time 0.003129/0.08966, allocations: 1.985 MB / 353.5 MB, free: 1.695 MB / 286.1 MB Notification: Performance of NFInst.instExpressions: time 0.001634/0.09131, allocations: 1.134 MB / 354.6 MB, free: 0.5586 MB / 286.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 9.202e-05/0.09142, allocations: 4 kB / 354.6 MB, free: 0.5547 MB / 286.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0007218/0.09215, allocations: 307.1 kB / 354.9 MB, free: 260 kB / 286.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0003949/0.09255, allocations: 203.3 kB / 355.1 MB, free: 56 kB / 286.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0006129/0.09318, allocations: 289.9 kB / 355.4 MB, free: 15.78 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 0.0003358/0.09352, allocations: 347.1 kB / 355.7 MB, free: 15.44 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001359/0.09367, allocations: 64.38 kB / 355.8 MB, free: 15.37 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.000164/0.09384, allocations: 139.5 kB / 355.9 MB, free: 15.23 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001574/0.094, allocations: 151.4 kB / 356.1 MB, free: 15.09 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 3.101e-05/0.09404, allocations: 16 kB / 356.1 MB, free: 15.07 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001556/0.0942, allocations: 75.95 kB / 356.2 MB, free: 15 MB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 9.442e-05/0.09431, allocations: 87.67 kB / 356.3 MB, free: 14.91 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001173/0.09443, allocations: 127.2 kB / 356.4 MB, free: 14.79 MB / 302.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0003407/0.09478, allocations: 350.8 kB / 356.7 MB, free: 14.44 MB / 302.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.406e-06/0.09479, allocations: 0 / 356.7 MB, free: 14.44 MB / 302.1 MB Notification: Performance of FrontEnd: time 1.262e-06/0.0948, allocations: 0 / 356.7 MB, free: 14.44 MB / 302.1 MB Notification: Performance of Transformations before backend: time 8.797e-06/0.09481, 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.0008303/0.09565, allocations: 0.6533 MB / 357.4 MB, free: 13.73 MB / 302.1 MB Notification: Performance of prepare preOptimizeDAE: time 2.814e-05/0.09568, allocations: 8.031 kB / 357.4 MB, free: 13.72 MB / 302.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 6.801e-05/0.09575, allocations: 36.55 kB / 357.4 MB, free: 13.68 MB / 302.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000386/0.09615, allocations: 335.9 kB / 357.8 MB, free: 13.32 MB / 302.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.833e-05/0.09617, allocations: 11.94 kB / 357.8 MB, free: 13.3 MB / 302.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.3e-05/0.0962, allocations: 12 kB / 357.8 MB, free: 13.29 MB / 302.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002634/0.09647, allocations: 153.5 kB / 357.9 MB, free: 13.13 MB / 302.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 7.204e-06/0.09649, allocations: 4 kB / 357.9 MB, free: 13.12 MB / 302.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.561e-05/0.09651, allocations: 4 kB / 357.9 MB, free: 13.12 MB / 302.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.461e-06/0.09652, allocations: 7.938 kB / 357.9 MB, free: 13.11 MB / 302.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001614/0.09669, allocations: 71.95 kB / 358 MB, free: 13.04 MB / 302.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0006122/0.09731, allocations: 492.3 kB / 358.5 MB, free: 12.51 MB / 302.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.000299/0.09762, allocations: 134.7 kB / 358.6 MB, free: 12.37 MB / 302.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001041/0.09773, allocations: 56.83 kB / 358.7 MB, free: 12.31 MB / 302.1 MB Notification: Performance of preOpt evalFunc (simulation): time 3.011e-05/0.09777, allocations: 0 / 358.7 MB, free: 12.31 MB / 302.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002173/0.09799, allocations: 119.3 kB / 358.8 MB, free: 12.18 MB / 302.1 MB Notification: Performance of pre-optimization done (n=15): time 1.443e-06/0.09801, allocations: 0 / 358.8 MB, free: 12.18 MB / 302.1 MB Notification: Performance of matching and sorting (n=15): time 0.0004544/0.09846, allocations: 211.6 kB / 359 MB, free: 11.97 MB / 302.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.746e-05/0.09853, allocations: 114.8 kB / 359.1 MB, free: 11.84 MB / 302.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0004248/0.09896, allocations: 424.5 kB / 359.5 MB, free: 11.41 MB / 302.1 MB Notification: Performance of collectPreVariables (initialization): time 2.376e-05/0.09899, allocations: 33.7 kB / 359.6 MB, free: 11.38 MB / 302.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001107/0.09911, allocations: 167.9 kB / 359.7 MB, free: 11.21 MB / 302.1 MB Notification: Performance of collectInitialBindings (initialization): time 3.641e-05/0.09915, allocations: 39.55 kB / 359.8 MB, free: 11.17 MB / 302.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 5.914e-05/0.09922, allocations: 41.7 kB / 359.8 MB, free: 11.12 MB / 302.1 MB Notification: Performance of setup shared object (initialization): time 0.0001181/0.09934, allocations: 342.8 kB / 360.1 MB, free: 10.78 MB / 302.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001136/0.09946, allocations: 47.94 kB / 360.2 MB, free: 10.73 MB / 302.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001427/0.09961, allocations: 106 kB / 360.3 MB, free: 10.61 MB / 302.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001846/0.09981, allocations: 103.3 kB / 360.4 MB, free: 10.5 MB / 302.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.356e-06/0.09982, allocations: 4 kB / 360.4 MB, free: 10.49 MB / 302.1 MB Notification: Performance of matching and sorting (n=20) (initialization): time 0.0003022/0.1001, allocations: 182 kB / 360.6 MB, free: 10.31 MB / 302.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.2e-05/0.1001, allocations: 4 kB / 360.6 MB, free: 10.3 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.178e-06/0.1002, allocations: 4 kB / 360.6 MB, free: 10.3 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.12e-05/0.1002, allocations: 0 / 360.6 MB, free: 10.3 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001095/0.1003, allocations: 23.98 kB / 360.6 MB, free: 10.28 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.722e-06/0.1003, allocations: 3.938 kB / 360.6 MB, free: 10.27 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.000102/0.1004, allocations: 23.83 kB / 360.6 MB, free: 10.25 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.184e-05/0.1004, allocations: 4 kB / 360.6 MB, free: 10.25 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.0001457/0.1006, allocations: 175.6 kB / 360.8 MB, free: 10.07 MB / 302.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.258e-05/0.1006, allocations: 31.56 kB / 360.8 MB, free: 10.04 MB / 302.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 6.558e-05/0.1007, allocations: 34.92 kB / 360.9 MB, free: 10 MB / 302.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.036e-06/0.1007, allocations: 7.938 kB / 360.9 MB, free: 9.992 MB / 302.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.727e-06/0.1007, allocations: 0 / 360.9 MB, free: 9.992 MB / 302.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.427e-06/0.1007, allocations: 0 / 360.9 MB, free: 9.992 MB / 302.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002435/0.101, allocations: 301.4 kB / 361.2 MB, free: 9.648 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.525e-06/0.101, allocations: 3.938 kB / 361.2 MB, free: 9.645 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 3.655e-05/0.101, allocations: 7.938 kB / 361.2 MB, free: 9.637 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 3.126e-06/0.101, allocations: 8 kB / 361.2 MB, free: 9.629 MB / 302.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.303e-05/0.1011, allocations: 4 kB / 361.2 MB, free: 9.625 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.443e-06/0.1011, allocations: 0 / 361.2 MB, free: 9.625 MB / 302.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.074e-06/0.1011, allocations: 7.922 kB / 361.2 MB, free: 9.617 MB / 302.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003156/0.1014, allocations: 196.1 kB / 361.4 MB, free: 9.41 MB / 302.1 MB Notification: Performance of postOpt removeConstants (simulation): time 7.398e-05/0.1015, allocations: 112.6 kB / 361.5 MB, free: 9.281 MB / 302.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.19e-05/0.1015, allocations: 8 kB / 361.5 MB, free: 9.273 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 8.103e-05/0.1016, allocations: 11.98 kB / 361.5 MB, free: 9.262 MB / 302.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.43e-05/0.1017, allocations: 19.98 kB / 361.5 MB, free: 9.242 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.584e-05/0.1017, allocations: 4 kB / 361.5 MB, free: 9.238 MB / 302.1 MB Notification: Performance of sorting global known variables: time 0.0003169/0.102, allocations: 315 kB / 361.9 MB, free: 8.934 MB / 302.1 MB Notification: Performance of sort global known variables: time 1.31e-07/0.102, allocations: 0 / 361.9 MB, free: 8.934 MB / 302.1 MB Notification: Performance of remove unused functions: time 0.000268/0.1023, allocations: 48 kB / 361.9 MB, free: 8.887 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.0008942/0.1032, allocations: 437.7 kB / 362.3 MB, free: 8.613 MB / 302.1 MB Notification: Performance of simCode: created initialization part: time 0.0002815/0.1035, allocations: 115.8 kB / 362.4 MB, free: 8.5 MB / 302.1 MB Notification: Performance of simCode: created event and clocks part: time 2.033e-06/0.1035, allocations: 3.938 kB / 362.4 MB, free: 8.496 MB / 302.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0001235/0.1036, allocations: 63.91 kB / 362.5 MB, free: 8.434 MB / 302.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003756/0.104, allocations: 88.28 kB / 362.6 MB, free: 8.352 MB / 302.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0006926/0.1047, allocations: 496.2 kB / 363.1 MB, free: 7.84 MB / 302.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002994/0.105, allocations: 0.7715 MB / 363.9 MB, free: 7.039 MB / 302.1 MB Notification: Performance of simCode: alias equations: time 0.0001017/0.1051, allocations: 46.27 kB / 363.9 MB, free: 6.996 MB / 302.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 5.829e-05/0.1052, allocations: 27.44 kB / 363.9 MB, free: 6.969 MB / 302.1 MB Notification: Performance of SimCode: time 2.01e-07/0.1052, allocations: 0 / 363.9 MB, free: 6.969 MB / 302.1 MB Notification: Performance of Templates: time 0.007444/0.1127, allocations: 3.821 MB / 367.7 MB, free: 3.18 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 gbode -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