Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_3.2.3_cpp_Modelica.Blocks.Examples.RealNetwork1.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo", uses=false) Using package ModelicaServices with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo) 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 3.2.3 (/home/hudson/saved_omc/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_cpp_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_cpp_Modelica.Blocks.Examples.RealNetwork1") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo): time 0.001298/0.001298, allocations: 169.2 kB / 16.72 MB, free: 5.051 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.334/1.334, allocations: 205.4 MB / 222.9 MB, free: 9.016 MB / 186.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo): time 0.000772/0.0007721, allocations: 96.95 kB / 271.2 MB, free: 8.258 MB / 218.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0003035/0.0003036, allocations: 8 kB / 327.5 MB, free: 15.91 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2368/0.2371, allocations: 47.57 MB / 375.1 MB, free: 45.4 MB / 298.7 MB Notification: Performance of NFInst.instantiate(Modelica.Blocks.Examples.RealNetwork1): time 0.001853/0.239, allocations: 1.516 MB / 376.6 MB, free: 44.21 MB / 298.7 MB Notification: Performance of NFInst.instExpressions: time 0.0009336/0.2399, allocations: 0.5836 MB / 377.2 MB, free: 43.75 MB / 298.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 9.945e-05/0.24, allocations: 2.219 kB / 377.2 MB, free: 43.75 MB / 298.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0001155/0.2402, allocations: 25.08 kB / 377.2 MB, free: 43.72 MB / 298.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0001264/0.2403, allocations: 28.25 kB / 377.2 MB, free: 43.7 MB / 298.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002323/0.2405, allocations: 53.09 kB / 377.3 MB, free: 43.66 MB / 298.7 MB Notification: Performance of NFFlatten.flatten: time 0.0002063/0.2408, allocations: 155 kB / 377.4 MB, free: 43.57 MB / 298.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001772/0.2409, allocations: 67.98 kB / 377.5 MB, free: 43.53 MB / 298.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001105/0.2411, allocations: 57.3 kB / 377.6 MB, free: 43.49 MB / 298.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001221/0.2412, allocations: 60.45 kB / 377.6 MB, free: 43.45 MB / 298.7 MB Notification: Performance of NFPackage.collectConstants: time 2.509e-05/0.2412, allocations: 5.469 kB / 377.6 MB, free: 43.45 MB / 298.7 MB Notification: Performance of NFFlatten.collectFunctions: time 6.614e-05/0.2413, allocations: 16 kB / 377.6 MB, free: 43.45 MB / 298.7 MB Notification: Performance of NFScalarize.scalarize: time 6.626e-05/0.2414, allocations: 29.36 kB / 377.7 MB, free: 43.43 MB / 298.7 MB Notification: Performance of NFVerifyModel.verify: time 8.321e-05/0.2415, allocations: 95.58 kB / 377.8 MB, free: 43.34 MB / 298.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0001534/0.2416, allocations: 105.8 kB / 377.9 MB, free: 43.27 MB / 298.7 MB Notification: Performance of FrontEnd - DAE generated: time 5.541e-06/0.2416, allocations: 0 / 377.9 MB, free: 43.27 MB / 298.7 MB Notification: Performance of FrontEnd: time 1.473e-06/0.2417, allocations: 0 / 377.9 MB, free: 43.27 MB / 298.7 MB Notification: Performance of Transformations before backend: time 4.94e-06/0.2417, allocations: 0.9062 kB / 377.9 MB, free: 43.27 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.000816/0.2425, allocations: 0.4938 MB / 378.4 MB, free: 42.8 MB / 298.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.092e-05/0.2425, allocations: 9.562 kB / 378.4 MB, free: 42.8 MB / 298.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 5.839e-05/0.2426, allocations: 27.53 kB / 378.4 MB, free: 42.79 MB / 298.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002223/0.2428, allocations: 239.8 kB / 378.6 MB, free: 42.54 MB / 298.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.757e-05/0.2429, allocations: 10.47 kB / 378.6 MB, free: 42.54 MB / 298.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.903e-05/0.2429, allocations: 22.98 kB / 378.7 MB, free: 42.52 MB / 298.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003761/0.2433, allocations: 204.8 kB / 378.9 MB, free: 42.38 MB / 298.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.224e-05/0.2433, allocations: 5.188 kB / 378.9 MB, free: 42.38 MB / 298.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.015e-05/0.2433, allocations: 8.984 kB / 378.9 MB, free: 42.37 MB / 298.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.314e-05/0.2434, allocations: 5.219 kB / 378.9 MB, free: 42.37 MB / 298.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0003265/0.2437, allocations: 149.1 kB / 379 MB, free: 42.31 MB / 298.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001046/0.2447, allocations: 0.7858 MB / 379.8 MB, free: 41.61 MB / 298.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003241/0.2451, allocations: 171.7 kB / 380 MB, free: 41.5 MB / 298.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001467/0.2452, allocations: 77.67 kB / 380.1 MB, free: 41.45 MB / 298.7 MB Notification: Performance of preOpt evalFunc (simulation): time 4.687e-05/0.2453, allocations: 4 kB / 380.1 MB, free: 41.45 MB / 298.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002384/0.2455, allocations: 153.2 kB / 380.2 MB, free: 41.34 MB / 298.7 MB Notification: Performance of pre-optimization done (n=15): time 1.613e-06/0.2456, allocations: 0 / 380.2 MB, free: 41.34 MB / 298.7 MB Notification: Performance of matching and sorting (n=15): time 0.0005893/0.2462, allocations: 267.4 kB / 380.5 MB, free: 41.21 MB / 298.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.521e-05/0.2462, allocations: 84 kB / 380.5 MB, free: 41.11 MB / 298.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001713/0.2464, allocations: 205.6 kB / 380.7 MB, free: 40.95 MB / 298.7 MB Notification: Performance of collectPreVariables (initialization): time 2.018e-05/0.2464, allocations: 32.33 kB / 380.8 MB, free: 40.91 MB / 298.7 MB Notification: Performance of collectInitialEqns (initialization): time 7.648e-05/0.2465, allocations: 137.8 kB / 380.9 MB, free: 40.79 MB / 298.7 MB Notification: Performance of collectInitialBindings (initialization): time 3.083e-05/0.2465, allocations: 38.86 kB / 381 MB, free: 40.75 MB / 298.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 1.083e-05/0.2465, allocations: 4 kB / 381 MB, free: 40.75 MB / 298.7 MB Notification: Performance of setup shared object (initialization): time 7.015e-05/0.2466, allocations: 332 kB / 381.3 MB, free: 40.42 MB / 298.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001525/0.2468, allocations: 75.14 kB / 381.4 MB, free: 40.39 MB / 298.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001622/0.2469, allocations: 134.7 kB / 381.5 MB, free: 40.29 MB / 298.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002942/0.2473, allocations: 212.9 kB / 381.7 MB, free: 40.14 MB / 298.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.737e-06/0.2473, allocations: 1.344 kB / 381.7 MB, free: 40.14 MB / 298.7 MB Notification: Performance of matching and sorting (n=23) (initialization): time 0.0004294/0.2477, allocations: 255.2 kB / 381.9 MB, free: 40.01 MB / 298.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.14e-05/0.2477, allocations: 9.531 kB / 382 MB, free: 40.01 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.026e-05/0.2477, allocations: 5.25 kB / 382 MB, free: 40 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.731e-05/0.2478, allocations: 2.906 kB / 382 MB, free: 40 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001707/0.2479, allocations: 35 kB / 382 MB, free: 40 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.047e-05/0.248, allocations: 7.125 kB / 382 MB, free: 39.99 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001615/0.2481, allocations: 38.47 kB / 382 MB, free: 39.97 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.884e-05/0.2482, allocations: 10.22 kB / 382 MB, free: 39.97 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 (linear and non-linear blocks): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.0001171/0.2483, allocations: 138.6 kB / 382.2 MB, free: 39.84 MB / 298.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.799e-05/0.2483, allocations: 20.95 kB / 382.2 MB, free: 39.82 MB / 298.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0004314/0.2488, allocations: 223.6 kB / 382.4 MB, free: 39.7 MB / 298.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.679e-06/0.2488, allocations: 2 kB / 382.4 MB, free: 39.7 MB / 298.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.41e-06/0.2488, allocations: 1.406 kB / 382.4 MB, free: 39.7 MB / 298.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.309e-06/0.2488, allocations: 0 / 382.4 MB, free: 39.7 MB / 298.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002317/0.249, allocations: 271.3 kB / 382.7 MB, free: 39.43 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.394e-06/0.249, allocations: 5.109 kB / 382.7 MB, free: 39.43 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001128/0.2492, allocations: 25.02 kB / 382.7 MB, free: 39.42 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 3.286e-06/0.2492, allocations: 5.234 kB / 382.7 MB, free: 39.42 MB / 298.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.344e-05/0.2492, allocations: 2.125 kB / 382.7 MB, free: 39.42 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.314e-06/0.2492, allocations: 1.312 kB / 382.7 MB, free: 39.42 MB / 298.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.193e-06/0.2492, allocations: 4 kB / 382.7 MB, free: 39.41 MB / 298.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003633/0.2496, allocations: 242.3 kB / 383 MB, free: 39.26 MB / 298.7 MB Notification: Performance of postOpt removeConstants (simulation): time 3.611e-05/0.2496, allocations: 90.7 kB / 383.1 MB, free: 39.16 MB / 298.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.744e-05/0.2497, allocations: 5.094 kB / 383.1 MB, free: 39.15 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001355/0.2498, allocations: 28 kB / 383.1 MB, free: 39.14 MB / 298.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.172e-05/0.2499, allocations: 14.19 kB / 383.1 MB, free: 39.13 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.143e-05/0.2499, allocations: 3.562 kB / 383.1 MB, free: 39.13 MB / 298.7 MB Notification: Performance of sorting global known variables: time 0.0001194/0.25, allocations: 146.5 kB / 383.3 MB, free: 39.02 MB / 298.7 MB Notification: Performance of sort global known variables: time 1.4e-07/0.25, allocations: 1.344 kB / 383.3 MB, free: 39.02 MB / 298.7 MB Notification: Performance of remove unused functions: time 0.0002486/0.2503, allocations: 44.28 kB / 383.3 MB, free: 39.01 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 (linear and non-linear blocks): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.0001381/0.2504, allocations: 108.1 kB / 383.4 MB, free: 38.91 MB / 298.7 MB Notification: Performance of simCode: created initialization part: time 0.0003718/0.2508, allocations: 173.4 kB / 383.6 MB, free: 38.85 MB / 298.7 MB Notification: Performance of simCode: created event and clocks part: time 2.164e-06/0.2508, allocations: 384 / 383.6 MB, free: 38.85 MB / 298.7 MB Notification: Performance of simCode: created simulation system equations: time 0.00017/0.251, allocations: 94.84 kB / 383.7 MB, free: 38.81 MB / 298.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003399/0.2513, allocations: 50.97 kB / 383.7 MB, free: 38.78 MB / 298.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.00065/0.252, allocations: 464.4 kB / 384.2 MB, free: 38.42 MB / 298.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001741/0.2522, allocations: 0.7329 MB / 384.9 MB, free: 37.7 MB / 298.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 5.753e-05/0.2522, allocations: 17.28 kB / 384.9 MB, free: 37.69 MB / 298.7 MB Notification: Performance of SimCode: time 3.51e-07/0.2522, allocations: 0 / 384.9 MB, free: 37.69 MB / 298.7 MB Notification: Performance of Templates: time 0.004098/0.2564, allocations: 2.394 MB / 387.3 MB, free: 36.01 MB / 298.7 MB make -j1 -f Modelica_3.2.3_cpp_Modelica.Blocks.Examples.RealNetwork1.makefile (rm -f Modelica_3.2.3_cpp_Modelica.Blocks.Examples.RealNetwork1.pipe ; mkfifo Modelica_3.2.3_cpp_Modelica.Blocks.Examples.RealNetwork1.pipe ; head -c 1048576 < Modelica_3.2.3_cpp_Modelica.Blocks.Examples.RealNetwork1.pipe >> ../files/Modelica_3.2.3_cpp_Modelica.Blocks.Examples.RealNetwork1.sim & ./Modelica_3.2.3_cpp_Modelica.Blocks.Examples.RealNetwork1 --alarm=480 -emit_protected > Modelica_3.2.3_cpp_Modelica.Blocks.Examples.RealNetwork1.pipe 2>&1) diffSimulationResults("Modelica_3.2.3_cpp_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_cpp_Modelica.Blocks.Examples.RealNetwork1.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches