Running: ./testmodel.py --libraries=/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/converted-libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_3.2.3_Modelica.Blocks.Examples.RealNetwork1.conf.json loadFile("/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/converted-libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo", uses=false) loadFile("/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/converted-libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo", uses=false) loadFile("/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/converted-libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo", uses=false) Using package ModelicaServices with version 3.2.3 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/converted-libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo) Using package Modelica with version 3.2.3 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/converted-libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo) Using package Complex with version 3.2.3 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/converted-libraries/.openmodelica/libraries/Complex 3.2.3+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(/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/converted-libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo): time 0.001262/0.001262, allocations: 174.2 kB / 17.36 MB, free: 4.445 MB / 13.93 MB Notification: Performance of loadFile(/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/converted-libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.456/1.456, allocations: 205.6 MB / 223.7 MB, free: 8.938 MB / 186.7 MB Notification: Performance of loadFile(/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/converted-libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo): time 0.0007837/0.0007838, allocations: 91.75 kB / 272.1 MB, free: 8.121 MB / 218.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0003671/0.0003672, allocations: 4 kB / 329 MB, free: 15.07 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2473/0.2477, allocations: 47.58 MB / 376.6 MB, free: 45.59 MB / 298.7 MB Notification: Performance of NFInst.instantiate(Modelica.Blocks.Examples.RealNetwork1): time 0.00196/0.2497, allocations: 1.527 MB / 378.1 MB, free: 44.39 MB / 298.7 MB Notification: Performance of NFInst.instExpressions: time 0.001079/0.2508, allocations: 0.6662 MB / 378.8 MB, free: 43.83 MB / 298.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001142/0.251, allocations: 2.562 kB / 378.8 MB, free: 43.83 MB / 298.7 MB Notification: Performance of NFTyping.typeComponents: time 0.000134/0.2511, allocations: 21.2 kB / 378.8 MB, free: 43.81 MB / 298.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0001413/0.2513, allocations: 24.17 kB / 378.8 MB, free: 43.79 MB / 298.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002404/0.2515, allocations: 61.28 kB / 378.9 MB, free: 43.74 MB / 298.7 MB Notification: Performance of NFFlatten.flatten: time 0.0002281/0.2517, allocations: 152.7 kB / 379 MB, free: 43.66 MB / 298.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.000217/0.252, allocations: 71.7 kB / 379.1 MB, free: 43.61 MB / 298.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001225/0.2521, allocations: 53.56 kB / 379.2 MB, free: 43.58 MB / 298.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001324/0.2522, allocations: 72.23 kB / 379.2 MB, free: 43.53 MB / 298.7 MB Notification: Performance of NFPackage.collectConstants: time 2.97e-05/0.2523, allocations: 5.406 kB / 379.2 MB, free: 43.53 MB / 298.7 MB Notification: Performance of NFFlatten.collectFunctions: time 6.758e-05/0.2524, allocations: 15.75 kB / 379.2 MB, free: 43.52 MB / 298.7 MB Notification: Performance of NFScalarize.scalarize: time 8.585e-05/0.2524, allocations: 34.03 kB / 379.3 MB, free: 43.5 MB / 298.7 MB Notification: Performance of NFVerifyModel.verify: time 8.712e-05/0.2525, allocations: 99.66 kB / 379.4 MB, free: 43.41 MB / 298.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0001931/0.2527, allocations: 158.9 kB / 379.5 MB, free: 43.3 MB / 298.7 MB Notification: Performance of FrontEnd - DAE generated: time 4.919e-06/0.2528, allocations: 4 kB / 379.5 MB, free: 43.3 MB / 298.7 MB Notification: Performance of FrontEnd: time 1.623e-06/0.2528, allocations: 3.938 kB / 379.5 MB, free: 43.29 MB / 298.7 MB Notification: Performance of Transformations before backend: time 5.34e-06/0.2528, allocations: 1.188 kB / 379.5 MB, free: 43.29 MB / 298.7 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.0008228/0.2536, allocations: 493.6 kB / 380 MB, free: 42.84 MB / 298.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.568e-05/0.2537, allocations: 9.375 kB / 380 MB, free: 42.84 MB / 298.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 6.348e-05/0.2537, allocations: 23.16 kB / 380.1 MB, free: 42.82 MB / 298.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002227/0.254, allocations: 247.5 kB / 380.3 MB, free: 42.57 MB / 298.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.435e-05/0.254, allocations: 15 kB / 380.3 MB, free: 42.56 MB / 298.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.975e-05/0.254, allocations: 14.16 kB / 380.3 MB, free: 42.55 MB / 298.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003535/0.2544, allocations: 198.1 kB / 380.5 MB, free: 42.42 MB / 298.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.11e-05/0.2544, allocations: 0 / 380.5 MB, free: 42.42 MB / 298.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.774e-05/0.2544, allocations: 10.02 kB / 380.5 MB, free: 42.41 MB / 298.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.275e-05/0.2545, allocations: 5.219 kB / 380.5 MB, free: 42.41 MB / 298.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.000289/0.2548, allocations: 152.8 kB / 380.7 MB, free: 42.35 MB / 298.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0009301/0.2557, allocations: 0.7817 MB / 381.5 MB, free: 41.65 MB / 298.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002958/0.256, allocations: 175.6 kB / 381.6 MB, free: 41.54 MB / 298.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001396/0.2562, allocations: 78.42 kB / 381.7 MB, free: 41.49 MB / 298.7 MB Notification: Performance of preOpt evalFunc (simulation): time 4.149e-05/0.2562, allocations: 10.84 kB / 381.7 MB, free: 41.48 MB / 298.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002329/0.2564, allocations: 149 kB / 381.9 MB, free: 41.37 MB / 298.7 MB Notification: Performance of pre-optimization done (n=15): time 1.352e-06/0.2565, allocations: 0 / 381.9 MB, free: 41.37 MB / 298.7 MB Notification: Performance of matching and sorting (n=15): time 0.0005411/0.257, allocations: 268 kB / 382.1 MB, free: 41.24 MB / 298.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.095e-05/0.257, allocations: 83.83 kB / 382.2 MB, free: 41.14 MB / 298.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001653/0.2572, allocations: 209.5 kB / 382.4 MB, free: 40.98 MB / 298.7 MB Notification: Performance of collectPreVariables (initialization): time 1.664e-05/0.2573, allocations: 34.94 kB / 382.5 MB, free: 40.95 MB / 298.7 MB Notification: Performance of collectInitialEqns (initialization): time 6.838e-05/0.2573, allocations: 134.8 kB / 382.6 MB, free: 40.82 MB / 298.7 MB Notification: Performance of collectInitialBindings (initialization): time 3.094e-05/0.2574, allocations: 37.73 kB / 382.6 MB, free: 40.79 MB / 298.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 1.067e-05/0.2574, allocations: 9.469 kB / 382.6 MB, free: 40.78 MB / 298.7 MB Notification: Performance of setup shared object (initialization): time 6.634e-05/0.2575, allocations: 331.3 kB / 383 MB, free: 40.45 MB / 298.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001465/0.2576, allocations: 70.95 kB / 383 MB, free: 40.42 MB / 298.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001704/0.2578, allocations: 133.8 kB / 383.2 MB, free: 40.32 MB / 298.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002939/0.2581, allocations: 212.1 kB / 383.4 MB, free: 40.18 MB / 298.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.136e-06/0.2581, allocations: 5.25 kB / 383.4 MB, free: 40.17 MB / 298.7 MB Notification: Performance of matching and sorting (n=23) (initialization): time 0.0003976/0.2585, allocations: 254.4 kB / 383.6 MB, free: 40.04 MB / 298.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.852e-05/0.2585, allocations: 5.781 kB / 383.6 MB, free: 40.04 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.773e-06/0.2586, allocations: 2.062 kB / 383.6 MB, free: 40.04 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.963e-05/0.2586, allocations: 3.656 kB / 383.6 MB, free: 40.04 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001717/0.2588, allocations: 37.78 kB / 383.7 MB, free: 40.03 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.015e-05/0.2588, allocations: 3.375 kB / 383.7 MB, free: 40.03 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001481/0.2589, allocations: 38.52 kB / 383.7 MB, free: 40.01 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.651e-05/0.259, allocations: 5.656 kB / 383.7 MB, free: 40.01 MB / 298.7 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,$PRE.booleanPulse1.pulseStart,booleanPulse1.pulseStart,multiSwitch.u[1],multiSwitch.u[2],multiSwitch.firstActiveIndex,$PRE.booleanPulse2.pulseStart,booleanPulse2.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.0001051/0.2591, allocations: 144.7 kB / 383.9 MB, free: 39.87 MB / 298.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.58e-05/0.2591, allocations: 16.12 kB / 383.9 MB, free: 39.86 MB / 298.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0004198/0.2595, allocations: 222.2 kB / 384.1 MB, free: 39.74 MB / 298.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.508e-06/0.2595, allocations: 2.438 kB / 384.1 MB, free: 39.74 MB / 298.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.301e-06/0.2596, allocations: 1.312 kB / 384.1 MB, free: 39.74 MB / 298.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.659e-06/0.2596, allocations: 3.984 kB / 384.1 MB, free: 39.73 MB / 298.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002083/0.2598, allocations: 271.7 kB / 384.4 MB, free: 39.47 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.166e-06/0.2598, allocations: 0.9688 kB / 384.4 MB, free: 39.47 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001139/0.2599, allocations: 25.33 kB / 384.4 MB, free: 39.46 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.935e-06/0.2599, allocations: 5.312 kB / 384.4 MB, free: 39.46 MB / 298.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.321e-05/0.2599, allocations: 5.297 kB / 384.4 MB, free: 39.45 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.466e-06/0.26, allocations: 5.219 kB / 384.4 MB, free: 39.45 MB / 298.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.164e-06/0.26, allocations: 1.156 kB / 384.4 MB, free: 39.45 MB / 298.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003589/0.2603, allocations: 237.6 kB / 384.6 MB, free: 39.3 MB / 298.7 MB Notification: Performance of postOpt removeConstants (simulation): time 3.902e-05/0.2604, allocations: 94.7 kB / 384.7 MB, free: 39.19 MB / 298.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.752e-05/0.2604, allocations: 0.9062 kB / 384.7 MB, free: 39.19 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001294/0.2605, allocations: 27.25 kB / 384.8 MB, free: 39.18 MB / 298.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.794e-05/0.2606, allocations: 15.33 kB / 384.8 MB, free: 39.17 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.193e-05/0.2606, allocations: 3.25 kB / 384.8 MB, free: 39.17 MB / 298.7 MB Notification: Performance of sorting global known variables: time 0.0001027/0.2607, allocations: 151.1 kB / 384.9 MB, free: 39.06 MB / 298.7 MB Notification: Performance of sort global known variables: time 1.31e-07/0.2607, allocations: 0 / 384.9 MB, free: 39.06 MB / 298.7 MB Notification: Performance of remove unused functions: time 0.0002432/0.261, allocations: 40.72 kB / 385 MB, free: 39.05 MB / 298.7 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.2612, allocations: 116.5 kB / 385.1 MB, free: 38.95 MB / 298.7 MB Notification: Performance of simCode: created initialization part: time 0.0003735/0.2616, allocations: 180.6 kB / 385.2 MB, free: 38.88 MB / 298.7 MB Notification: Performance of simCode: created event and clocks part: time 2.395e-06/0.2616, allocations: 288 / 385.2 MB, free: 38.88 MB / 298.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0001683/0.2617, allocations: 85.33 kB / 385.3 MB, free: 38.85 MB / 298.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003153/0.2621, allocations: 46.67 kB / 385.4 MB, free: 38.82 MB / 298.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0006112/0.2627, allocations: 447.2 kB / 385.8 MB, free: 38.48 MB / 298.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001599/0.2629, allocations: 0.7363 MB / 386.5 MB, free: 37.76 MB / 298.7 MB Notification: Performance of simCode: alias equations: time 0.0001121/0.263, allocations: 41.53 kB / 386.6 MB, free: 37.74 MB / 298.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.387e-05/0.263, allocations: 16.06 kB / 386.6 MB, free: 37.73 MB / 298.7 MB Notification: Performance of SimCode: time 2.31e-07/0.263, allocations: 0 / 386.6 MB, free: 37.73 MB / 298.7 MB Notification: Performance of Templates: time 0.004386/0.2674, allocations: 1.895 MB / 388.5 MB, free: 36.1 MB / 298.7 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","../files/Modelica_3.2.3_Modelica.Blocks.Examples.RealNetwork1.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches