Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_3.2.3_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 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.RealNetwork1,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|multiSwitch.u.1.|multiSwitch.u.2.",fileNamePrefix="Modelica_3.2.3_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_3.2.3_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.001416/0.001416, allocations: 113.4 kB / 17.73 MB, free: 5.359 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.001742/0.001742, allocations: 188.1 kB / 18.66 MB, free: 4.438 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.476/1.476, allocations: 205.1 MB / 224.5 MB, free: 12.25 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.001122/0.001122, allocations: 59.92 kB / 328.5 MB, free: 3.316 MB / 270.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09678/0.09791, allocations: 46.62 MB / 375.1 MB, free: 4.59 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.Blocks.Examples.RealNetwork1): time 0.002936/0.1009, allocations: 1.855 MB / 377 MB, free: 2.719 MB / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.001088/0.102, allocations: 0.6365 MB / 377.6 MB, free: 2.074 MB / 318.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 8.944e-05/0.1021, allocations: 0 / 377.6 MB, free: 2.074 MB / 318.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001359/0.1023, allocations: 31.61 kB / 377.7 MB, free: 2.043 MB / 318.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001509/0.1024, allocations: 35.66 kB / 377.7 MB, free: 2.008 MB / 318.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002617/0.1027, allocations: 63.88 kB / 377.8 MB, free: 1.945 MB / 318.1 MB Notification: Performance of NFFlatten.flatten: time 0.0002178/0.1029, allocations: 167.4 kB / 377.9 MB, free: 1.781 MB / 318.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001803/0.1031, allocations: 73.48 kB / 378 MB, free: 1.711 MB / 318.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001224/0.1032, allocations: 75.7 kB / 378.1 MB, free: 1.637 MB / 318.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001419/0.1034, allocations: 75.56 kB / 378.1 MB, free: 1.562 MB / 318.1 MB Notification: Performance of NFPackage.collectConstants: time 2.817e-05/0.1034, allocations: 16 kB / 378.2 MB, free: 1.547 MB / 318.1 MB Notification: Performance of NFFlatten.collectFunctions: time 7.119e-05/0.1035, allocations: 27.92 kB / 378.2 MB, free: 1.52 MB / 318.1 MB Notification: Performance of NFScalarize.scalarize: time 7.881e-05/0.1036, allocations: 39.89 kB / 378.2 MB, free: 1.48 MB / 318.1 MB Notification: Performance of NFVerifyModel.verify: time 8.256e-05/0.1037, allocations: 79.48 kB / 378.3 MB, free: 1.402 MB / 318.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0002261/0.1039, allocations: 191.2 kB / 378.5 MB, free: 1.215 MB / 318.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.46e-06/0.1039, allocations: 4 kB / 378.5 MB, free: 1.211 MB / 318.1 MB Notification: Performance of FrontEnd: time 2.825e-06/0.1039, allocations: 3.984 kB / 378.5 MB, free: 1.207 MB / 318.1 MB Notification: Performance of Transformations before backend: time 5.841e-06/0.104, allocations: 0 / 378.5 MB, free: 1.207 MB / 318.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.0008199/0.1048, allocations: 0.5026 MB / 379 MB, free: 0.6562 MB / 318.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.607e-05/0.1048, allocations: 8.031 kB / 379 MB, free: 0.6484 MB / 318.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 5.645e-05/0.1049, allocations: 24.66 kB / 379 MB, free: 0.625 MB / 318.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002614/0.1051, allocations: 239.7 kB / 379.3 MB, free: 360 kB / 318.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.198e-05/0.1052, allocations: 12.66 kB / 379.3 MB, free: 348 kB / 318.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.649e-05/0.1052, allocations: 20.38 kB / 379.3 MB, free: 328 kB / 318.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.000346/0.1056, allocations: 195.3 kB / 379.5 MB, free: 116 kB / 318.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 9.388e-06/0.1056, allocations: 0 / 379.5 MB, free: 116 kB / 318.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.794e-05/0.1056, allocations: 0 / 379.5 MB, free: 116 kB / 318.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.477e-05/0.1056, allocations: 15.94 kB / 379.5 MB, free: 100 kB / 318.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.205/0.3107, allocations: 135 kB / 379.6 MB, free: 13.12 MB / 318.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001376/0.3121, allocations: 0.7737 MB / 380.4 MB, free: 12.62 MB / 318.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003776/0.3125, allocations: 156.9 kB / 380.6 MB, free: 12.57 MB / 318.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001902/0.3127, allocations: 78.08 kB / 380.6 MB, free: 12.55 MB / 318.1 MB Notification: Performance of preOpt evalFunc (simulation): time 4.405e-05/0.3128, allocations: 10.33 kB / 380.6 MB, free: 12.55 MB / 318.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0003184/0.3131, allocations: 145.5 kB / 380.8 MB, free: 12.49 MB / 318.1 MB Notification: Performance of pre-optimization done (n=15): time 3.006e-06/0.3131, allocations: 1.688 kB / 380.8 MB, free: 12.49 MB / 318.1 MB Notification: Performance of matching and sorting (n=15): time 0.0007749/0.3139, allocations: 251.7 kB / 381 MB, free: 12.46 MB / 318.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.043e-05/0.3139, allocations: 83.48 kB / 381.1 MB, free: 12.36 MB / 318.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002255/0.3142, allocations: 204.6 kB / 381.3 MB, free: 12.26 MB / 318.1 MB Notification: Performance of collectPreVariables (initialization): time 2.24e-05/0.3142, allocations: 31.7 kB / 381.3 MB, free: 12.23 MB / 318.1 MB Notification: Performance of collectInitialEqns (initialization): time 9.298e-05/0.3143, allocations: 145.1 kB / 381.5 MB, free: 12.13 MB / 318.1 MB Notification: Performance of collectInitialBindings (initialization): time 4.479e-05/0.3144, allocations: 43.72 kB / 381.5 MB, free: 12.11 MB / 318.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 9.138e-05/0.3145, allocations: 41.67 kB / 381.6 MB, free: 12.1 MB / 318.1 MB Notification: Performance of setup shared object (initialization): time 7.841e-05/0.3146, allocations: 336 kB / 381.9 MB, free: 11.79 MB / 318.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002052/0.3148, allocations: 67.47 kB / 382 MB, free: 11.79 MB / 318.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002304/0.315, allocations: 131.2 kB / 382.1 MB, free: 11.72 MB / 318.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0004315/0.3155, allocations: 202.8 kB / 382.3 MB, free: 11.66 MB / 318.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.266e-06/0.3155, allocations: 0 / 382.3 MB, free: 11.66 MB / 318.1 MB Notification: Performance of matching and sorting (n=23) (initialization): time 0.0006674/0.3162, allocations: 252.3 kB / 382.5 MB, free: 11.61 MB / 318.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.008e-05/0.3162, allocations: 5.969 kB / 382.5 MB, free: 11.61 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.835e-06/0.3162, allocations: 3.016 kB / 382.5 MB, free: 11.61 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.784e-05/0.3162, allocations: 2.875 kB / 382.5 MB, free: 11.61 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002373/0.3165, allocations: 36.67 kB / 382.6 MB, free: 11.6 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 9.217e-06/0.3165, allocations: 4.078 kB / 382.6 MB, free: 11.6 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002307/0.3167, allocations: 28.56 kB / 382.6 MB, free: 11.59 MB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.861e-05/0.3168, allocations: 13.91 kB / 382.6 MB, free: 11.59 MB / 318.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.000144/0.3169, allocations: 145.4 kB / 382.8 MB, free: 11.47 MB / 318.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.113e-05/0.317, allocations: 20.61 kB / 382.8 MB, free: 11.46 MB / 318.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0006201/0.3176, allocations: 213.4 kB / 383 MB, free: 11.41 MB / 318.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.963e-06/0.3176, allocations: 7.016 kB / 383 MB, free: 11.41 MB / 318.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.035e-06/0.3176, allocations: 0 / 383 MB, free: 11.41 MB / 318.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.041e-06/0.3177, allocations: 2.422 kB / 383 MB, free: 11.41 MB / 318.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002816/0.3179, allocations: 267.8 kB / 383.3 MB, free: 11.2 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.196e-06/0.318, allocations: 1.531 kB / 383.3 MB, free: 11.2 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.000146/0.3181, allocations: 29.97 kB / 383.3 MB, free: 11.19 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 4.258e-06/0.3181, allocations: 1.641 kB / 383.3 MB, free: 11.19 MB / 318.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.511e-05/0.3182, allocations: 1.719 kB / 383.3 MB, free: 11.19 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.755e-06/0.3182, allocations: 2.031 kB / 383.3 MB, free: 11.19 MB / 318.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.212e-06/0.3182, allocations: 1.281 kB / 383.3 MB, free: 11.19 MB / 318.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0004882/0.3187, allocations: 231.3 kB / 383.5 MB, free: 11.07 MB / 318.1 MB Notification: Performance of postOpt removeConstants (simulation): time 5.201e-05/0.3187, allocations: 98.22 kB / 383.6 MB, free: 10.96 MB / 318.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.951e-05/0.3188, allocations: 2.281 kB / 383.6 MB, free: 10.96 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.000173/0.319, allocations: 18.84 kB / 383.6 MB, free: 10.96 MB / 318.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.658e-05/0.319, allocations: 17.31 kB / 383.7 MB, free: 10.95 MB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.711e-05/0.3191, allocations: 8.562 kB / 383.7 MB, free: 10.95 MB / 318.1 MB Notification: Performance of sorting global known variables: time 0.0001352/0.3192, allocations: 147.7 kB / 383.8 MB, free: 10.86 MB / 318.1 MB Notification: Performance of sort global known variables: time 1.7e-07/0.3192, allocations: 0 / 383.8 MB, free: 10.86 MB / 318.1 MB Notification: Performance of remove unused functions: time 0.0003649/0.3196, allocations: 42.06 kB / 383.9 MB, free: 10.84 MB / 318.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.0001186/0.3197, allocations: 104.8 kB / 384 MB, free: 10.75 MB / 318.1 MB Notification: Performance of simCode: created initialization part: time 0.000487/0.3202, allocations: 179 kB / 384.1 MB, free: 10.71 MB / 318.1 MB Notification: Performance of simCode: created event and clocks part: time 1.363e-06/0.3202, allocations: 0 / 384.1 MB, free: 10.71 MB / 318.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0002186/0.3204, allocations: 82.86 kB / 384.2 MB, free: 10.69 MB / 318.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004065/0.3209, allocations: 48.06 kB / 384.3 MB, free: 10.67 MB / 318.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.000699/0.3216, allocations: 370.6 kB / 384.6 MB, free: 10.44 MB / 318.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001781/0.3218, allocations: 0.7328 MB / 385.4 MB, free: 9.742 MB / 318.1 MB Notification: Performance of simCode: alias equations: time 0.0001435/0.3219, allocations: 36.3 kB / 385.4 MB, free: 9.738 MB / 318.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 5.509e-05/0.322, allocations: 17.05 kB / 385.4 MB, free: 9.73 MB / 318.1 MB Notification: Performance of SimCode: time 3.7e-07/0.322, allocations: 1.75 kB / 385.4 MB, free: 9.73 MB / 318.1 MB Notification: Performance of Templates: time 0.006981/0.329, allocations: 2.133 MB / 387.5 MB, free: 9.582 MB / 318.1 MB make -j1 -f Modelica_3.2.3_Modelica.Blocks.Examples.RealNetwork1.makefile (rm -f Modelica_3.2.3_Modelica.Blocks.Examples.RealNetwork1.pipe ; mkfifo Modelica_3.2.3_Modelica.Blocks.Examples.RealNetwork1.pipe ; head -c 1048576 < Modelica_3.2.3_Modelica.Blocks.Examples.RealNetwork1.pipe >> ../files/Modelica_3.2.3_Modelica.Blocks.Examples.RealNetwork1.sim & ./Modelica_3.2.3_Modelica.Blocks.Examples.RealNetwork1 -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Modelica_3.2.3_Modelica.Blocks.Examples.RealNetwork1.pipe 2>&1) diffSimulationResults("Modelica_3.2.3_Modelica.Blocks.Examples.RealNetwork1_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v3.2.3+build.4/Modelica/Blocks/Examples/RealNetwork1/RealNetwork1.csv","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_3.2.3_Modelica.Blocks.Examples.RealNetwork1.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches