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.001221/0.001221, allocations: 109.8 kB / 17.73 MB, free: 5.234 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.001325/0.001325, allocations: 187.1 kB / 18.66 MB, free: 4.305 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.536/1.536, allocations: 205.1 MB / 224.5 MB, free: 12.22 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.001454/0.001454, allocations: 47.92 kB / 328.5 MB, free: 3.305 MB / 270.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1123/0.1138, allocations: 46.61 MB / 375.1 MB, free: 4.582 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.Blocks.Examples.RealNetwork1): time 0.003755/0.1176, allocations: 1.848 MB / 377 MB, free: 2.719 MB / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.001418/0.119, allocations: 0.6364 MB / 377.6 MB, free: 2.074 MB / 318.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001659/0.1192, allocations: 3.938 kB / 377.6 MB, free: 2.07 MB / 318.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001867/0.1194, allocations: 35.66 kB / 377.7 MB, free: 2.035 MB / 318.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0002121/0.1196, allocations: 31.66 kB / 377.7 MB, free: 2.004 MB / 318.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.00041/0.1201, allocations: 63.86 kB / 377.7 MB, free: 1.941 MB / 318.1 MB Notification: Performance of NFFlatten.flatten: time 0.0002908/0.1204, allocations: 163.5 kB / 377.9 MB, free: 1.781 MB / 318.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002326/0.1206, allocations: 69.5 kB / 378 MB, free: 1.715 MB / 318.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001944/0.1208, allocations: 79.62 kB / 378.1 MB, free: 1.637 MB / 318.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001815/0.121, allocations: 75.62 kB / 378.1 MB, free: 1.562 MB / 318.1 MB Notification: Performance of NFPackage.collectConstants: time 4.103e-05/0.1211, allocations: 15.94 kB / 378.1 MB, free: 1.547 MB / 318.1 MB Notification: Performance of NFFlatten.collectFunctions: time 9.293e-05/0.1212, allocations: 23.94 kB / 378.2 MB, free: 1.523 MB / 318.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001155/0.1213, allocations: 51.81 kB / 378.2 MB, free: 1.473 MB / 318.1 MB Notification: Performance of NFVerifyModel.verify: time 0.000104/0.1214, allocations: 75.55 kB / 378.3 MB, free: 1.398 MB / 318.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0003311/0.1217, allocations: 187.1 kB / 378.5 MB, free: 1.215 MB / 318.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.959e-06/0.1217, allocations: 3.938 kB / 378.5 MB, free: 1.211 MB / 318.1 MB Notification: Performance of FrontEnd: time 1.763e-06/0.1217, allocations: 0 / 378.5 MB, free: 1.211 MB / 318.1 MB Notification: Performance of Transformations before backend: time 1.106e-05/0.1218, allocations: 0 / 378.5 MB, free: 1.211 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.001033/0.1228, allocations: 0.5141 MB / 379 MB, free: 0.6484 MB / 318.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.28e-05/0.1229, allocations: 12.03 kB / 379 MB, free: 0.6367 MB / 318.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 7.307e-05/0.1229, allocations: 20.8 kB / 379 MB, free: 0.6172 MB / 318.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003114/0.1232, allocations: 243.8 kB / 379.3 MB, free: 348 kB / 318.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.229e-05/0.1233, allocations: 12.66 kB / 379.3 MB, free: 336 kB / 318.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.17e-05/0.1233, allocations: 16.38 kB / 379.3 MB, free: 320 kB / 318.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003853/0.1237, allocations: 199.3 kB / 379.5 MB, free: 104 kB / 318.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.2e-05/0.1237, allocations: 3.938 kB / 379.5 MB, free: 100 kB / 318.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.926e-05/0.1238, allocations: 4 kB / 379.5 MB, free: 96 kB / 318.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.419e-05/0.1238, allocations: 4 kB / 379.5 MB, free: 92 kB / 318.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.2477/0.3715, allocations: 138.7 kB / 379.6 MB, free: 13.16 MB / 318.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001173/0.3727, allocations: 0.7786 MB / 380.4 MB, free: 12.66 MB / 318.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003189/0.3731, allocations: 163.5 kB / 380.6 MB, free: 12.61 MB / 318.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001433/0.3732, allocations: 73.02 kB / 380.6 MB, free: 12.59 MB / 318.1 MB Notification: Performance of preOpt evalFunc (simulation): time 4.67e-05/0.3733, allocations: 9.969 kB / 380.7 MB, free: 12.59 MB / 318.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002524/0.3736, allocations: 146.9 kB / 380.8 MB, free: 12.53 MB / 318.1 MB Notification: Performance of pre-optimization done (n=15): time 1.793e-06/0.3736, allocations: 1.484 kB / 380.8 MB, free: 12.53 MB / 318.1 MB Notification: Performance of matching and sorting (n=15): time 0.0005562/0.3741, allocations: 254.2 kB / 381 MB, free: 12.49 MB / 318.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 2.851e-05/0.3742, allocations: 81.2 kB / 381.1 MB, free: 12.4 MB / 318.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001681/0.3743, allocations: 208.2 kB / 381.3 MB, free: 12.29 MB / 318.1 MB Notification: Performance of collectPreVariables (initialization): time 1.675e-05/0.3744, allocations: 31.3 kB / 381.4 MB, free: 12.26 MB / 318.1 MB Notification: Performance of collectInitialEqns (initialization): time 7.243e-05/0.3744, allocations: 142.3 kB / 381.5 MB, free: 12.16 MB / 318.1 MB Notification: Performance of collectInitialBindings (initialization): time 3.091e-05/0.3745, allocations: 45.55 kB / 381.5 MB, free: 12.14 MB / 318.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 6.851e-05/0.3746, allocations: 47.77 kB / 381.6 MB, free: 12.12 MB / 318.1 MB Notification: Performance of setup shared object (initialization): time 5.776e-05/0.3746, allocations: 334 kB / 381.9 MB, free: 11.81 MB / 318.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001457/0.3748, allocations: 70.36 kB / 382 MB, free: 11.81 MB / 318.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001627/0.3749, allocations: 128 kB / 382.1 MB, free: 11.75 MB / 318.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003403/0.3753, allocations: 205.6 kB / 382.3 MB, free: 11.68 MB / 318.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.715e-06/0.3753, allocations: 1.062 kB / 382.3 MB, free: 11.68 MB / 318.1 MB Notification: Performance of matching and sorting (n=23) (initialization): time 0.0004317/0.3757, allocations: 241.2 kB / 382.5 MB, free: 11.63 MB / 318.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.692e-05/0.3758, allocations: 6.156 kB / 382.6 MB, free: 11.63 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.782e-06/0.3758, allocations: 3.969 kB / 382.6 MB, free: 11.63 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.88e-05/0.3758, allocations: 6.25 kB / 382.6 MB, free: 11.63 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001987/0.376, allocations: 35.83 kB / 382.6 MB, free: 11.63 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.006e-05/0.376, allocations: 3.406 kB / 382.6 MB, free: 11.63 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001669/0.3762, allocations: 32.09 kB / 382.6 MB, free: 11.62 MB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.24e-05/0.3762, allocations: 12.28 kB / 382.6 MB, free: 11.62 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.0001043/0.3763, allocations: 144.1 kB / 382.8 MB, free: 11.5 MB / 318.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.46e-05/0.3764, allocations: 25.39 kB / 382.8 MB, free: 11.49 MB / 318.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0004764/0.3769, allocations: 210 kB / 383 MB, free: 11.45 MB / 318.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.739e-06/0.3769, allocations: 1.438 kB / 383 MB, free: 11.45 MB / 318.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.43e-06/0.3769, allocations: 1.531 kB / 383 MB, free: 11.45 MB / 318.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.24e-06/0.3769, allocations: 0.75 kB / 383 MB, free: 11.45 MB / 318.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002145/0.3771, allocations: 277.6 kB / 383.3 MB, free: 11.23 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.637e-06/0.3771, allocations: 6 kB / 383.3 MB, free: 11.23 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001178/0.3773, allocations: 23.5 kB / 383.3 MB, free: 11.22 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 5.21e-06/0.3773, allocations: 1.031 kB / 383.3 MB, free: 11.22 MB / 318.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.831e-05/0.3773, allocations: 6.922 kB / 383.3 MB, free: 11.22 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 4.128e-06/0.3773, allocations: 3.172 kB / 383.3 MB, free: 11.22 MB / 318.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.002e-06/0.3773, allocations: 0.625 kB / 383.3 MB, free: 11.22 MB / 318.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003571/0.3777, allocations: 230.1 kB / 383.6 MB, free: 11.1 MB / 318.1 MB Notification: Performance of postOpt removeConstants (simulation): time 3.529e-05/0.3777, allocations: 99.61 kB / 383.7 MB, free: 10.99 MB / 318.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.255e-05/0.3778, allocations: 5.094 kB / 383.7 MB, free: 10.98 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001331/0.3779, allocations: 23.44 kB / 383.7 MB, free: 10.98 MB / 318.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.698e-05/0.378, allocations: 17.06 kB / 383.7 MB, free: 10.98 MB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.27e-05/0.378, allocations: 8 kB / 383.7 MB, free: 10.98 MB / 318.1 MB Notification: Performance of sorting global known variables: time 0.0001135/0.3781, allocations: 148.5 kB / 383.8 MB, free: 10.88 MB / 318.1 MB Notification: Performance of sort global known variables: time 1.31e-07/0.3781, allocations: 4 kB / 383.9 MB, free: 10.88 MB / 318.1 MB Notification: Performance of remove unused functions: time 0.0002564/0.3784, allocations: 37.12 kB / 383.9 MB, free: 10.87 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.0001253/0.3785, allocations: 98.17 kB / 384 MB, free: 10.78 MB / 318.1 MB Notification: Performance of simCode: created initialization part: time 0.0003875/0.3789, allocations: 172 kB / 384.2 MB, free: 10.74 MB / 318.1 MB Notification: Performance of simCode: created event and clocks part: time 1.883e-06/0.3789, allocations: 0 / 384.2 MB, free: 10.74 MB / 318.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0001758/0.3791, allocations: 92.62 kB / 384.2 MB, free: 10.71 MB / 318.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003225/0.3794, allocations: 45.27 kB / 384.3 MB, free: 10.7 MB / 318.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.000643/0.3801, allocations: 369.8 kB / 384.6 MB, free: 10.47 MB / 318.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001803/0.3803, allocations: 0.7397 MB / 385.4 MB, free: 9.766 MB / 318.1 MB Notification: Performance of simCode: alias equations: time 0.0001131/0.3804, allocations: 35.84 kB / 385.4 MB, free: 9.766 MB / 318.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.633e-05/0.3804, allocations: 22.48 kB / 385.4 MB, free: 9.754 MB / 318.1 MB Notification: Performance of SimCode: time 6.41e-07/0.3805, allocations: 0 / 385.4 MB, free: 9.754 MB / 318.1 MB Notification: Performance of Templates: time 0.005746/0.3862, allocations: 2.139 MB / 387.6 MB, free: 9.594 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