Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.0.0_Modelica.Blocks.Examples.RealNetwork1.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.RealNetwork1,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|multiSwitch.u.1.|multiSwitch.u.2.",fileNamePrefix="Modelica_4.0.0_Modelica.Blocks.Examples.RealNetwork1") translateModel(Modelica.Blocks.Examples.RealNetwork1,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|multiSwitch.u.1.|multiSwitch.u.2.",fileNamePrefix="Modelica_4.0.0_Modelica.Blocks.Examples.RealNetwork1") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.00124/0.00124, allocations: 110.6 kB / 16.62 MB, free: 6.961 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.001407/0.001407, allocations: 190 kB / 17.54 MB, free: 6.066 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.339/1.339, allocations: 222.9 MB / 241.2 MB, free: 15.43 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001762/0.001762, allocations: 47.3 kB / 300.1 MB, free: 6.223 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1072/0.109, allocations: 49.44 MB / 349.6 MB, free: 4.773 MB / 286.1 MB Notification: Performance of NFInst.instantiate(Modelica.Blocks.Examples.RealNetwork1): time 0.003576/0.1126, allocations: 1.914 MB / 351.5 MB, free: 2.836 MB / 286.1 MB Notification: Performance of NFInst.instExpressions: time 0.00132/0.114, allocations: 0.5765 MB / 352.1 MB, free: 2.258 MB / 286.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.00023/0.1142, allocations: 4 kB / 352.1 MB, free: 2.254 MB / 286.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0002028/0.1144, allocations: 15.8 kB / 352.1 MB, free: 2.238 MB / 286.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0002618/0.1148, allocations: 31.78 kB / 352.1 MB, free: 2.207 MB / 286.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003941/0.1152, allocations: 63.88 kB / 352.2 MB, free: 2.145 MB / 286.1 MB Notification: Performance of NFFlatten.flatten: time 0.0003117/0.1155, allocations: 163.3 kB / 352.3 MB, free: 1.984 MB / 286.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002024/0.1157, allocations: 61.64 kB / 352.4 MB, free: 1.926 MB / 286.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001587/0.1159, allocations: 67.7 kB / 352.5 MB, free: 1.859 MB / 286.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001905/0.1161, allocations: 83.56 kB / 352.5 MB, free: 1.777 MB / 286.1 MB Notification: Performance of NFPackage.collectConstants: time 4.414e-05/0.1161, allocations: 12 kB / 352.5 MB, free: 1.766 MB / 286.1 MB Notification: Performance of NFFlatten.collectFunctions: time 8.616e-05/0.1162, allocations: 19.98 kB / 352.6 MB, free: 1.746 MB / 286.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001013/0.1163, allocations: 47.83 kB / 352.6 MB, free: 1.699 MB / 286.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001068/0.1164, allocations: 87.47 kB / 352.7 MB, free: 1.613 MB / 286.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0002808/0.1167, allocations: 175.6 kB / 352.9 MB, free: 1.441 MB / 286.1 MB Notification: Performance of FrontEnd - DAE generated: time 6.052e-06/0.1167, allocations: 3.984 kB / 352.9 MB, free: 1.438 MB / 286.1 MB Notification: Performance of FrontEnd: time 1.213e-06/0.1168, allocations: 0 / 352.9 MB, free: 1.438 MB / 286.1 MB Notification: Performance of Transformations before backend: time 7.274e-06/0.1168, allocations: 0 / 352.9 MB, free: 1.438 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: 34 * Number of variables: 34 Notification: Performance of Generate backend data structure: time 0.0009388/0.1177, allocations: 0.4989 MB / 353.4 MB, free: 0.8867 MB / 286.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.646e-05/0.1178, allocations: 12.03 kB / 353.4 MB, free: 0.875 MB / 286.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 6.796e-05/0.1178, allocations: 24.66 kB / 353.4 MB, free: 0.8516 MB / 286.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000275/0.1181, allocations: 247.6 kB / 353.6 MB, free: 0.5703 MB / 286.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.955e-05/0.1181, allocations: 8.656 kB / 353.7 MB, free: 0.5625 MB / 286.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.854e-05/0.1182, allocations: 20.12 kB / 353.7 MB, free: 0.543 MB / 286.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003863/0.1186, allocations: 191.8 kB / 353.9 MB, free: 348 kB / 286.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 9.778e-06/0.1186, allocations: 0 / 353.9 MB, free: 348 kB / 286.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.377e-05/0.1186, allocations: 11.98 kB / 353.9 MB, free: 336 kB / 286.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.075e-05/0.1186, allocations: 4 kB / 353.9 MB, free: 332 kB / 286.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0003156/0.119, allocations: 147.8 kB / 354 MB, free: 184 kB / 286.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001066/0.12, allocations: 0.7739 MB / 354.8 MB, free: 15.34 MB / 302.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003049/0.1204, allocations: 165.1 kB / 355 MB, free: 15.16 MB / 302.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001515/0.1205, allocations: 89.72 kB / 355 MB, free: 15.07 MB / 302.1 MB Notification: Performance of preOpt evalFunc (simulation): time 4.409e-05/0.1206, allocations: 8.141 kB / 355.1 MB, free: 15.06 MB / 302.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002673/0.1209, allocations: 152.9 kB / 355.2 MB, free: 14.89 MB / 302.1 MB Notification: Performance of pre-optimization done (n=15): time 1.533e-06/0.1209, allocations: 0 / 355.2 MB, free: 14.89 MB / 302.1 MB Notification: Performance of matching and sorting (n=15): time 0.0006098/0.1215, allocations: 253.3 kB / 355.5 MB, free: 14.64 MB / 302.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.163e-05/0.1215, allocations: 77.11 kB / 355.5 MB, free: 14.55 MB / 302.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002023/0.1218, allocations: 199 kB / 355.7 MB, free: 14.34 MB / 302.1 MB Notification: Performance of collectPreVariables (initialization): time 3.015e-05/0.1218, allocations: 33.7 kB / 355.8 MB, free: 14.3 MB / 302.1 MB Notification: Performance of collectInitialEqns (initialization): time 9.307e-05/0.1219, allocations: 144.1 kB / 355.9 MB, free: 14.16 MB / 302.1 MB Notification: Performance of collectInitialBindings (initialization): time 3.764e-05/0.1219, allocations: 39.45 kB / 355.9 MB, free: 14.12 MB / 302.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 7.907e-05/0.122, allocations: 45.81 kB / 356 MB, free: 14.07 MB / 302.1 MB Notification: Performance of setup shared object (initialization): time 0.0001248/0.1222, allocations: 338.7 kB / 356.3 MB, free: 13.73 MB / 302.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001571/0.1223, allocations: 67.95 kB / 356.4 MB, free: 13.66 MB / 302.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001787/0.1225, allocations: 130.8 kB / 356.5 MB, free: 13.51 MB / 302.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003351/0.1229, allocations: 202.7 kB / 356.7 MB, free: 13.29 MB / 302.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.476e-06/0.1229, allocations: 3.938 kB / 356.7 MB, free: 13.29 MB / 302.1 MB Notification: Performance of matching and sorting (n=23) (initialization): time 0.0004204/0.1233, allocations: 241.1 kB / 356.9 MB, free: 13.04 MB / 302.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.753e-05/0.1233, allocations: 4 kB / 356.9 MB, free: 13.04 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.157e-06/0.1233, allocations: 8.188 kB / 357 MB, free: 13.03 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.429e-05/0.1234, allocations: 4 kB / 357 MB, free: 13.03 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001693/0.1235, allocations: 39.91 kB / 357 MB, free: 12.99 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 9.588e-06/0.1235, allocations: 4 kB / 357 MB, free: 12.98 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001589/0.1237, allocations: 23.83 kB / 357 MB, free: 12.96 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.406e-05/0.1237, allocations: 8 kB / 357 MB, free: 12.95 MB / 302.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 8 * Number of states: 0 () * Number of discrete variables: 11 ($PRE.multiSwitch.u[1],$PRE.multiSwitch.u[2],$whenCondition2,$whenCondition1,booleanPulse2.pulseStart,$PRE.booleanPulse2.pulseStart,multiSwitch.firstActiveIndex,multiSwitch.u[2],multiSwitch.u[1],booleanPulse1.pulseStart,$PRE.booleanPulse1.pulseStart) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (23): * Single equations (assignments): 23 * 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.0001363/0.1239, allocations: 149.6 kB / 357.2 MB, free: 12.8 MB / 302.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.876e-05/0.1239, allocations: 15.81 kB / 357.2 MB, free: 12.78 MB / 302.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0004341/0.1244, allocations: 211.7 kB / 357.4 MB, free: 12.56 MB / 302.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.992e-06/0.1244, allocations: 4 kB / 357.4 MB, free: 12.56 MB / 302.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.591e-06/0.1244, allocations: 0 / 357.4 MB, free: 12.56 MB / 302.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.472e-06/0.1244, allocations: 3.984 kB / 357.4 MB, free: 12.55 MB / 302.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002563/0.1247, allocations: 273.4 kB / 357.7 MB, free: 12.24 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.044e-06/0.1247, allocations: 0 / 357.7 MB, free: 12.24 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.000121/0.1248, allocations: 19.98 kB / 357.7 MB, free: 12.22 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 3.326e-06/0.1248, allocations: 4 kB / 357.7 MB, free: 12.21 MB / 302.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.527e-05/0.1248, allocations: 4 kB / 357.7 MB, free: 12.21 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 6.231e-06/0.1248, allocations: 7.984 kB / 357.7 MB, free: 12.2 MB / 302.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.082e-06/0.1249, allocations: 0 / 357.7 MB, free: 12.2 MB / 302.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003793/0.1252, allocations: 225.5 kB / 357.9 MB, free: 11.96 MB / 302.1 MB Notification: Performance of postOpt removeConstants (simulation): time 5.568e-05/0.1253, allocations: 92.92 kB / 358 MB, free: 11.85 MB / 302.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.349e-05/0.1253, allocations: 12 kB / 358 MB, free: 11.84 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001318/0.1255, allocations: 15.97 kB / 358 MB, free: 11.82 MB / 302.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.101e-05/0.1256, allocations: 15.98 kB / 358.1 MB, free: 11.81 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.167e-05/0.1256, allocations: 4 kB / 358.1 MB, free: 11.8 MB / 302.1 MB Notification: Performance of sorting global known variables: time 0.0001361/0.1257, allocations: 144.6 kB / 358.2 MB, free: 11.66 MB / 302.1 MB Notification: Performance of sort global known variables: time 1.3e-07/0.1257, allocations: 0 / 358.2 MB, free: 11.66 MB / 302.1 MB Notification: Performance of remove unused functions: time 0.000279/0.126, allocations: 47.77 kB / 358.3 MB, free: 11.62 MB / 302.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 2 * Number of states: 0 () * Number of discrete variables: 7 ($whenCondition2,$whenCondition1,booleanPulse1.pulseStart,multiSwitch.u[1],multiSwitch.u[2],multiSwitch.firstActiveIndex,booleanPulse2.pulseStart) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (15): * Single equations (assignments): 13 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 2 * 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.0001627/0.1262, allocations: 127 kB / 358.4 MB, free: 11.48 MB / 302.1 MB Notification: Performance of simCode: created initialization part: time 0.0003912/0.1266, allocations: 179.8 kB / 358.6 MB, free: 11.31 MB / 302.1 MB Notification: Performance of simCode: created event and clocks part: time 1.984e-06/0.1266, allocations: 288 / 358.6 MB, free: 11.31 MB / 302.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0001797/0.1268, allocations: 83.89 kB / 358.6 MB, free: 11.23 MB / 302.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003749/0.1272, allocations: 43.52 kB / 358.7 MB, free: 11.19 MB / 302.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0007324/0.1279, allocations: 437.4 kB / 359.1 MB, free: 10.73 MB / 302.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003034/0.1282, allocations: 0.7358 MB / 359.8 MB, free: 9.969 MB / 302.1 MB Notification: Performance of simCode: alias equations: time 0.00012/0.1283, allocations: 33.52 kB / 359.9 MB, free: 9.938 MB / 302.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 5.074e-05/0.1284, allocations: 15.44 kB / 359.9 MB, free: 9.922 MB / 302.1 MB Notification: Performance of SimCode: time 2.21e-07/0.1284, allocations: 0 / 359.9 MB, free: 9.922 MB / 302.1 MB Notification: Performance of Templates: time 0.005483/0.1339, allocations: 1.985 MB / 361.9 MB, free: 7.965 MB / 302.1 MB make -j1 -f Modelica_4.0.0_Modelica.Blocks.Examples.RealNetwork1.makefile (rm -f Modelica_4.0.0_Modelica.Blocks.Examples.RealNetwork1.pipe ; mkfifo Modelica_4.0.0_Modelica.Blocks.Examples.RealNetwork1.pipe ; head -c 1048576 < Modelica_4.0.0_Modelica.Blocks.Examples.RealNetwork1.pipe >> ../files/Modelica_4.0.0_Modelica.Blocks.Examples.RealNetwork1.sim & ./Modelica_4.0.0_Modelica.Blocks.Examples.RealNetwork1 -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Modelica_4.0.0_Modelica.Blocks.Examples.RealNetwork1.pipe 2>&1) diffSimulationResults("Modelica_4.0.0_Modelica.Blocks.Examples.RealNetwork1_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Blocks/Examples/RealNetwork1/RealNetwork1.csv","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_4.0.0_Modelica.Blocks.Examples.RealNetwork1.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches