Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.1.0-beta.om_Modelica.Blocks.Examples.RealNetwork1.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0-beta.om/package.mo", uses=false) Using package Modelica with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0-beta.om/package.mo) Using package Complex with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo) Using package ModelicaServices with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/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.1.0-beta.om_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.1.0-beta.om_Modelica.Blocks.Examples.RealNetwork1") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.001691/0.001691, allocations: 118.1 kB / 17.83 MB, free: 5.34 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001999/0.001999, allocations: 209.1 kB / 18.79 MB, free: 4.383 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0-beta.om/package.mo): time 1.452/1.452, allocations: 230.4 MB / 250 MB, free: 9.004 MB / 206.1 MB Warning: Requested package Modelica of version trunk, but this package was already loaded with version 4.1.0. OpenModelica cannot reason about compatibility between the two packages since they are not semantic versions. Warning: Requested package Complex of version 4.1.0, but this package was already loaded with version trunk. OpenModelica cannot reason about compatibility between the two packages since they are not semantic versions. Warning: Requested package ModelicaServices of version 4.1.0, but this package was already loaded with version trunk. OpenModelica cannot reason about compatibility between the two packages since they are not semantic versions. Notification: Performance of FrontEnd - loaded program: time 0.001859/0.001859, allocations: 63.84 kB / 367.3 MB, free: 7.047 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2901/0.292, allocations: 53.33 MB / 420.7 MB, free: 8.355 MB / 334.1 MB Notification: Performance of NFInst.instantiate(Modelica.Blocks.Examples.RealNetwork1): time 0.003072/0.295, allocations: 1.893 MB / 422.5 MB, free: 6.461 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.001275/0.2963, allocations: 0.6505 MB / 423.2 MB, free: 5.805 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 9.629e-05/0.2964, allocations: 4 kB / 423.2 MB, free: 5.801 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001372/0.2966, allocations: 27.66 kB / 423.2 MB, free: 5.773 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001506/0.2967, allocations: 39.66 kB / 423.3 MB, free: 5.734 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002897/0.297, allocations: 83.78 kB / 423.4 MB, free: 5.652 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.0002481/0.2972, allocations: 163.4 kB / 423.5 MB, free: 5.492 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001623/0.2974, allocations: 52.28 kB / 423.6 MB, free: 5.441 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001714/0.2976, allocations: 79.62 kB / 423.6 MB, free: 5.363 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001608/0.2977, allocations: 87.61 kB / 423.7 MB, free: 5.277 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 2.949e-05/0.2978, allocations: 12 kB / 423.7 MB, free: 5.266 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 8.493e-05/0.2979, allocations: 27.98 kB / 423.8 MB, free: 5.238 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 7.989e-05/0.2979, allocations: 35.84 kB / 423.8 MB, free: 5.203 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001022/0.298, allocations: 87.42 kB / 423.9 MB, free: 5.117 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.000317/0.2984, allocations: 199.1 kB / 424.1 MB, free: 4.922 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.228e-06/0.2984, allocations: 0 / 424.1 MB, free: 4.922 MB / 334.1 MB Notification: Performance of FrontEnd: time 1.343e-06/0.2984, allocations: 0 / 424.1 MB, free: 4.922 MB / 334.1 MB Notification: Performance of Transformations before backend: time 6.172e-06/0.2984, allocations: 0 / 424.1 MB, free: 4.922 MB / 334.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.001005/0.2994, allocations: 0.5142 MB / 424.6 MB, free: 4.355 MB / 334.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.124e-05/0.2994, allocations: 12.03 kB / 424.6 MB, free: 4.344 MB / 334.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001869/0.2996, allocations: 36.72 kB / 424.6 MB, free: 4.309 MB / 334.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003343/0.2999, allocations: 236.1 kB / 424.9 MB, free: 4.039 MB / 334.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.378e-05/0.3, allocations: 12.66 kB / 424.9 MB, free: 4.027 MB / 334.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.282e-05/0.3, allocations: 16.31 kB / 424.9 MB, free: 4.012 MB / 334.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003987/0.3004, allocations: 204.1 kB / 425.1 MB, free: 3.797 MB / 334.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.166e-05/0.3004, allocations: 0 / 425.1 MB, free: 3.797 MB / 334.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.309e-05/0.3004, allocations: 11.94 kB / 425.1 MB, free: 3.785 MB / 334.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.362e-05/0.3004, allocations: 4 kB / 425.1 MB, free: 3.781 MB / 334.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0003252/0.3008, allocations: 143.8 kB / 425.3 MB, free: 3.641 MB / 334.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001213/0.302, allocations: 0.7819 MB / 426 MB, free: 2.797 MB / 334.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003487/0.3023, allocations: 153 kB / 426.2 MB, free: 2.629 MB / 334.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.000155/0.3025, allocations: 69.75 kB / 426.3 MB, free: 2.555 MB / 334.1 MB Notification: Performance of preOpt evalFunc (simulation): time 4.29e-05/0.3025, allocations: 7.984 kB / 426.3 MB, free: 2.547 MB / 334.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002806/0.3028, allocations: 145 kB / 426.4 MB, free: 2.387 MB / 334.1 MB Notification: Performance of pre-optimization done (n=15): time 1.373e-06/0.3028, allocations: 0 / 426.4 MB, free: 2.387 MB / 334.1 MB Notification: Performance of matching and sorting (n=15): time 0.0006255/0.3034, allocations: 258.2 kB / 426.7 MB, free: 2.129 MB / 334.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.766e-05/0.3035, allocations: 81.11 kB / 426.7 MB, free: 2.031 MB / 334.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002149/0.3037, allocations: 207.1 kB / 426.9 MB, free: 1.816 MB / 334.1 MB Notification: Performance of collectPreVariables (initialization): time 3.018e-05/0.3037, allocations: 37.7 kB / 427 MB, free: 1.773 MB / 334.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001117/0.3039, allocations: 144.2 kB / 427.1 MB, free: 1.629 MB / 334.1 MB Notification: Performance of collectInitialBindings (initialization): time 4.986e-05/0.3039, allocations: 51.62 kB / 427.2 MB, free: 1.578 MB / 334.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 8.205e-05/0.304, allocations: 41.7 kB / 427.2 MB, free: 1.531 MB / 334.1 MB Notification: Performance of setup shared object (initialization): time 0.000149/0.3041, allocations: 330.8 kB / 427.5 MB, free: 1.199 MB / 334.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001525/0.3043, allocations: 67.95 kB / 427.6 MB, free: 1.133 MB / 334.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001989/0.3045, allocations: 126.8 kB / 427.7 MB, free: 0.9844 MB / 334.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003454/0.3048, allocations: 210.7 kB / 427.9 MB, free: 0.7539 MB / 334.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.594e-06/0.3048, allocations: 0 / 427.9 MB, free: 0.7539 MB / 334.1 MB Notification: Performance of matching and sorting (n=23) (initialization): time 0.0004444/0.3053, allocations: 245.3 kB / 428.2 MB, free: 0.5078 MB / 334.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.615e-05/0.3053, allocations: 8.188 kB / 428.2 MB, free: 0.5 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.644e-06/0.3053, allocations: 4 kB / 428.2 MB, free: 0.4961 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.71e-05/0.3053, allocations: 4 kB / 428.2 MB, free: 0.4922 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001669/0.3055, allocations: 31.92 kB / 428.2 MB, free: 472 kB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.37e-05/0.3055, allocations: 8.094 kB / 428.2 MB, free: 464 kB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001569/0.3057, allocations: 31.81 kB / 428.2 MB, free: 432 kB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.457e-05/0.3057, allocations: 4 kB / 428.3 MB, free: 428 kB / 334.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.0001611/0.3058, allocations: 157.7 kB / 428.4 MB, free: 260 kB / 334.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.14e-05/0.3059, allocations: 15.91 kB / 428.4 MB, free: 244 kB / 334.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0004706/0.3063, allocations: 214.9 kB / 428.6 MB, free: 24 kB / 334.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.41e-06/0.3063, allocations: 4 kB / 428.6 MB, free: 20 kB / 334.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.949e-06/0.3063, allocations: 0 / 428.6 MB, free: 20 kB / 334.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.727e-06/0.3063, allocations: 0 / 428.6 MB, free: 20 kB / 334.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0003238/0.3067, allocations: 273.4 kB / 428.9 MB, free: 15.7 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.733e-06/0.3067, allocations: 0 / 428.9 MB, free: 15.7 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001243/0.3068, allocations: 24.08 kB / 428.9 MB, free: 15.68 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 4.378e-06/0.3068, allocations: 11.94 kB / 428.9 MB, free: 15.67 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.564e-05/0.3068, allocations: 4 kB / 428.9 MB, free: 15.66 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.684e-06/0.3068, allocations: 0 / 428.9 MB, free: 15.66 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.172e-06/0.3068, allocations: 0 / 428.9 MB, free: 15.66 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0004166/0.3072, allocations: 229.6 kB / 429.2 MB, free: 15.42 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 6.925e-05/0.3073, allocations: 100.9 kB / 429.3 MB, free: 15.3 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.594e-05/0.3073, allocations: 4 kB / 429.3 MB, free: 15.3 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001288/0.3075, allocations: 19.98 kB / 429.3 MB, free: 15.28 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.928e-05/0.3075, allocations: 11.97 kB / 429.3 MB, free: 15.27 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.435e-05/0.3075, allocations: 8 kB / 429.3 MB, free: 15.26 MB / 350.1 MB Notification: Performance of sorting global known variables: time 0.0001359/0.3077, allocations: 140.7 kB / 429.4 MB, free: 15.12 MB / 350.1 MB Notification: Performance of sort global known variables: time 7e-08/0.3077, allocations: 0 / 429.4 MB, free: 15.12 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.0002652/0.3079, allocations: 39.95 kB / 429.5 MB, free: 15.08 MB / 350.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.0001771/0.3081, allocations: 115.1 kB / 429.6 MB, free: 14.96 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.0003926/0.3085, allocations: 163.8 kB / 429.8 MB, free: 14.8 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 1.653e-06/0.3085, allocations: 0 / 429.8 MB, free: 14.8 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 0.000179/0.3087, allocations: 79.94 kB / 429.8 MB, free: 14.72 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003226/0.309, allocations: 51.56 kB / 429.9 MB, free: 14.67 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0007217/0.3097, allocations: 369.1 kB / 430.2 MB, free: 14.28 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003651/0.3101, allocations: 0.7396 MB / 431 MB, free: 13.52 MB / 350.1 MB Notification: Performance of simCode: alias equations: time 0.0001083/0.3102, allocations: 41.5 kB / 431 MB, free: 13.48 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 5.08e-05/0.3103, allocations: 19.44 kB / 431 MB, free: 13.46 MB / 350.1 MB Notification: Performance of SimCode: time 2.91e-07/0.3103, allocations: 0 / 431 MB, free: 13.46 MB / 350.1 MB Notification: Performance of Templates: time 0.006028/0.3163, allocations: 2.157 MB / 433.2 MB, free: 11.33 MB / 350.1 MB make -j1 -f Modelica_4.1.0-beta.om_Modelica.Blocks.Examples.RealNetwork1.makefile (rm -f Modelica_4.1.0-beta.om_Modelica.Blocks.Examples.RealNetwork1.pipe ; mkfifo Modelica_4.1.0-beta.om_Modelica.Blocks.Examples.RealNetwork1.pipe ; head -c 1048576 < Modelica_4.1.0-beta.om_Modelica.Blocks.Examples.RealNetwork1.pipe >> ../files/Modelica_4.1.0-beta.om_Modelica.Blocks.Examples.RealNetwork1.sim & ./Modelica_4.1.0-beta.om_Modelica.Blocks.Examples.RealNetwork1 -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Modelica_4.1.0-beta.om_Modelica.Blocks.Examples.RealNetwork1.pipe 2>&1) diffSimulationResults("Modelica_4.1.0-beta.om_Modelica.Blocks.Examples.RealNetwork1_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.1.0/Modelica/Blocks/Examples/RealNetwork1/RealNetwork1.csv","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_4.1.0-beta.om_Modelica.Blocks.Examples.RealNetwork1.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches