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.001508/0.001508, allocations: 109.6 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.001774/0.001774, 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.317/1.317, allocations: 222.9 MB / 242.3 MB, free: 15.09 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001112/0.001112, allocations: 47.23 kB / 302 MB, free: 5.164 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.08876/0.08989, allocations: 49.45 MB / 351.5 MB, free: 3.695 MB / 286.1 MB Notification: Performance of NFInst.instantiate(Modelica.Blocks.Examples.RealNetwork1): time 0.002914/0.09284, allocations: 1.852 MB / 353.3 MB, free: 1.82 MB / 286.1 MB Notification: Performance of NFInst.instExpressions: time 0.000945/0.0938, allocations: 0.5882 MB / 353.9 MB, free: 1.23 MB / 286.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 7.795e-05/0.09389, allocations: 4 kB / 353.9 MB, free: 1.227 MB / 286.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001027/0.094, allocations: 23.67 kB / 354 MB, free: 1.203 MB / 286.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001179/0.09414, allocations: 39.66 kB / 354 MB, free: 1.164 MB / 286.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002208/0.09437, allocations: 71.86 kB / 354.1 MB, free: 1.094 MB / 286.1 MB Notification: Performance of NFFlatten.flatten: time 0.0002016/0.09458, allocations: 167.3 kB / 354.2 MB, free: 0.9297 MB / 286.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001471/0.09473, allocations: 69.62 kB / 354.3 MB, free: 0.8633 MB / 286.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001008/0.09484, allocations: 67.72 kB / 354.4 MB, free: 0.7969 MB / 286.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001159/0.09497, allocations: 79.55 kB / 354.4 MB, free: 0.7188 MB / 286.1 MB Notification: Performance of NFPackage.collectConstants: time 2.798e-05/0.095, allocations: 16 kB / 354.5 MB, free: 0.7031 MB / 286.1 MB Notification: Performance of NFFlatten.collectFunctions: time 5.857e-05/0.09506, allocations: 23.98 kB / 354.5 MB, free: 0.6797 MB / 286.1 MB Notification: Performance of NFScalarize.scalarize: time 7.131e-05/0.09514, allocations: 39.84 kB / 354.5 MB, free: 0.6406 MB / 286.1 MB Notification: Performance of NFVerifyModel.verify: time 8.407e-05/0.09523, allocations: 79.48 kB / 354.6 MB, free: 0.5625 MB / 286.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0002041/0.09544, allocations: 183.2 kB / 354.8 MB, free: 392 kB / 286.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.597e-06/0.09545, allocations: 0 / 354.8 MB, free: 392 kB / 286.1 MB Notification: Performance of FrontEnd: time 1.092e-06/0.09547, allocations: 4 kB / 354.8 MB, free: 388 kB / 286.1 MB Notification: Performance of Transformations before backend: time 4.989e-06/0.09548, allocations: 0 / 354.8 MB, free: 388 kB / 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.0007764/0.09626, allocations: 0.5067 MB / 355.3 MB, free: 15.82 MB / 302.1 MB Notification: Performance of prepare preOptimizeDAE: time 2.9e-05/0.09629, allocations: 8.031 kB / 355.3 MB, free: 15.81 MB / 302.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.715e-05/0.09634, allocations: 24.66 kB / 355.3 MB, free: 15.79 MB / 302.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002466/0.0966, allocations: 239.7 kB / 355.6 MB, free: 15.52 MB / 302.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.637e-05/0.09662, allocations: 16.59 kB / 355.6 MB, free: 15.5 MB / 302.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.586e-05/0.09665, allocations: 16.12 kB / 355.6 MB, free: 15.48 MB / 302.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003308/0.09699, allocations: 195.8 kB / 355.8 MB, free: 15.28 MB / 302.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 8.415e-06/0.09701, allocations: 0 / 355.8 MB, free: 15.28 MB / 302.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.671e-05/0.09703, allocations: 15.92 kB / 355.8 MB, free: 15.26 MB / 302.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.733e-05/0.09705, allocations: 8 kB / 355.8 MB, free: 15.25 MB / 302.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002818/0.09734, allocations: 147.8 kB / 355.9 MB, free: 15.11 MB / 302.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0009712/0.09832, allocations: 0.77 MB / 356.7 MB, free: 14.28 MB / 302.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002763/0.09861, allocations: 157.1 kB / 356.9 MB, free: 14.11 MB / 302.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001367/0.09876, allocations: 85.77 kB / 356.9 MB, free: 14.02 MB / 302.1 MB Notification: Performance of preOpt evalFunc (simulation): time 3.345e-05/0.0988, allocations: 8 kB / 357 MB, free: 14.01 MB / 302.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002194/0.09902, allocations: 151.9 kB / 357.1 MB, free: 13.84 MB / 302.1 MB Notification: Performance of pre-optimization done (n=15): time 1.323e-06/0.09904, allocations: 0 / 357.1 MB, free: 13.84 MB / 302.1 MB Notification: Performance of matching and sorting (n=15): time 0.0004991/0.09954, allocations: 253.5 kB / 357.4 MB, free: 13.59 MB / 302.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.191e-05/0.09959, allocations: 85.11 kB / 357.4 MB, free: 13.49 MB / 302.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001654/0.09976, allocations: 199 kB / 357.6 MB, free: 13.29 MB / 302.1 MB Notification: Performance of collectPreVariables (initialization): time 1.997e-05/0.09979, allocations: 29.7 kB / 357.7 MB, free: 13.25 MB / 302.1 MB Notification: Performance of collectInitialEqns (initialization): time 8.278e-05/0.09988, allocations: 144.1 kB / 357.8 MB, free: 13.11 MB / 302.1 MB Notification: Performance of collectInitialBindings (initialization): time 3.329e-05/0.09992, allocations: 43.44 kB / 357.8 MB, free: 13.06 MB / 302.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 6.03e-05/0.09999, allocations: 41.7 kB / 357.9 MB, free: 13.02 MB / 302.1 MB Notification: Performance of setup shared object (initialization): time 0.0001029/0.1001, allocations: 334.8 kB / 358.2 MB, free: 12.68 MB / 302.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001421/0.1002, allocations: 71.95 kB / 358.3 MB, free: 12.61 MB / 302.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001587/0.1004, allocations: 130.8 kB / 358.4 MB, free: 12.46 MB / 302.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002863/0.1007, allocations: 194.7 kB / 358.6 MB, free: 12.24 MB / 302.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.507e-06/0.1007, allocations: 112 / 358.6 MB, free: 12.24 MB / 302.1 MB Notification: Performance of matching and sorting (n=23) (initialization): time 0.0004002/0.1011, allocations: 253.1 kB / 358.8 MB, free: 11.99 MB / 302.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.353e-05/0.1011, allocations: 8 kB / 358.9 MB, free: 11.98 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.799e-06/0.1012, allocations: 0 / 358.9 MB, free: 11.98 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.404e-05/0.1012, allocations: 4 kB / 358.9 MB, free: 11.98 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001571/0.1013, allocations: 31.97 kB / 358.9 MB, free: 11.95 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.604e-06/0.1014, allocations: 8.031 kB / 358.9 MB, free: 11.94 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001427/0.1015, allocations: 31.77 kB / 358.9 MB, free: 11.91 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.553e-05/0.1015, allocations: 12.19 kB / 358.9 MB, free: 11.89 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.0001092/0.1016, allocations: 154.1 kB / 359.1 MB, free: 11.73 MB / 302.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.942e-05/0.1017, allocations: 15.81 kB / 359.1 MB, free: 11.72 MB / 302.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0003918/0.1021, allocations: 219.7 kB / 359.3 MB, free: 11.49 MB / 302.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.815e-06/0.1021, allocations: 0 / 359.3 MB, free: 11.49 MB / 302.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.848e-06/0.1021, allocations: 0 / 359.3 MB, free: 11.49 MB / 302.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.402e-06/0.1021, allocations: 7.984 kB / 359.3 MB, free: 11.48 MB / 302.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002364/0.1023, allocations: 269.4 kB / 359.6 MB, free: 11.17 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.443e-06/0.1024, allocations: 0 / 359.6 MB, free: 11.17 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001101/0.1025, allocations: 23.98 kB / 359.6 MB, free: 11.15 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.264e-06/0.1025, allocations: 0 / 359.6 MB, free: 11.15 MB / 302.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.168e-05/0.1025, allocations: 4 kB / 359.6 MB, free: 11.14 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.873e-06/0.1025, allocations: 0 / 359.6 MB, free: 11.14 MB / 302.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.525e-06/0.1025, allocations: 3.984 kB / 359.6 MB, free: 11.14 MB / 302.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003615/0.1029, allocations: 237.5 kB / 359.9 MB, free: 10.89 MB / 302.1 MB Notification: Performance of postOpt removeConstants (simulation): time 5.241e-05/0.1029, allocations: 92.92 kB / 359.9 MB, free: 10.78 MB / 302.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.55e-05/0.103, allocations: 4 kB / 359.9 MB, free: 10.77 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001238/0.1031, allocations: 19.97 kB / 360 MB, free: 10.75 MB / 302.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.562e-05/0.1032, allocations: 11.98 kB / 360 MB, free: 10.74 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.164e-05/0.1032, allocations: 8 kB / 360 MB, free: 10.73 MB / 302.1 MB Notification: Performance of sorting global known variables: time 0.0001033/0.1033, allocations: 136.6 kB / 360.1 MB, free: 10.6 MB / 302.1 MB Notification: Performance of sort global known variables: time 1.7e-07/0.1033, allocations: 4 kB / 360.1 MB, free: 10.6 MB / 302.1 MB Notification: Performance of remove unused functions: time 0.0002502/0.1036, allocations: 51.77 kB / 360.2 MB, free: 10.55 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.0001147/0.1037, allocations: 103.2 kB / 360.3 MB, free: 10.44 MB / 302.1 MB Notification: Performance of simCode: created initialization part: time 0.0003423/0.104, allocations: 171.9 kB / 360.4 MB, free: 10.27 MB / 302.1 MB Notification: Performance of simCode: created event and clocks part: time 1.643e-06/0.104, allocations: 0 / 360.4 MB, free: 10.27 MB / 302.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0001586/0.1042, allocations: 88.25 kB / 360.5 MB, free: 10.18 MB / 302.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002969/0.1045, allocations: 44.09 kB / 360.6 MB, free: 10.14 MB / 302.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0005738/0.1051, allocations: 377.3 kB / 360.9 MB, free: 9.742 MB / 302.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000247/0.1054, allocations: 0.7358 MB / 361.7 MB, free: 8.98 MB / 302.1 MB Notification: Performance of simCode: alias equations: time 9.434e-05/0.1055, allocations: 37.5 kB / 361.7 MB, free: 8.945 MB / 302.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.663e-05/0.1055, allocations: 19.44 kB / 361.7 MB, free: 8.926 MB / 302.1 MB Notification: Performance of SimCode: time 2.11e-07/0.1055, allocations: 0 / 361.7 MB, free: 8.926 MB / 302.1 MB Notification: Performance of Templates: time 0.004611/0.1101, allocations: 2.106 MB / 363.8 MB, free: 6.848 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 -s gbode -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/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Blocks/Examples/RealNetwork1/RealNetwork1.csv","/var/lib/jenkins1/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