Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_3.2.3_cpp_Modelica.Electrical.Analog.Examples.OvervoltageProtection.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.Electrical.Analog.Examples.OvervoltageProtection,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|CL.v",fileNamePrefix="Modelica_3.2.3_cpp_Modelica.Electrical.Analog.Examples.OvervoltageProtection") translateModel(Modelica.Electrical.Analog.Examples.OvervoltageProtection,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|CL.v",fileNamePrefix="Modelica_3.2.3_cpp_Modelica.Electrical.Analog.Examples.OvervoltageProtection") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo): time 0.001621/0.001621, allocations: 175.2 kB / 16.72 MB, free: 5.082 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.526/1.526, allocations: 205.4 MB / 222.9 MB, free: 8.938 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.0007612/0.0007612, allocations: 88.8 kB / 271.2 MB, free: 8.238 MB / 218.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0003229/0.0003229, allocations: 8 kB / 327.5 MB, free: 15.89 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2527/0.2531, allocations: 47.57 MB / 375.1 MB, free: 45.41 MB / 298.7 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Analog.Examples.OvervoltageProtection): time 0.002424/0.2555, allocations: 2.259 MB / 377.3 MB, free: 43.63 MB / 298.7 MB Notification: Performance of NFInst.instExpressions: time 0.001117/0.2567, allocations: 0.6891 MB / 378 MB, free: 43.06 MB / 298.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001324/0.2568, allocations: 4.594 kB / 378 MB, free: 43.06 MB / 298.7 MB Notification: Performance of NFTyping.typeComponents: time 0.000123/0.257, allocations: 31.02 kB / 378.1 MB, free: 43.04 MB / 298.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0001217/0.2571, allocations: 68.58 kB / 378.1 MB, free: 42.98 MB / 298.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002559/0.2574, allocations: 82.2 kB / 378.2 MB, free: 42.91 MB / 298.7 MB Notification: Performance of NFFlatten.flatten: time 0.0002997/0.2577, allocations: 317.3 kB / 378.5 MB, free: 42.72 MB / 298.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002008/0.2579, allocations: 72.45 kB / 378.6 MB, free: 42.68 MB / 298.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001932/0.2581, allocations: 117.9 kB / 378.7 MB, free: 42.62 MB / 298.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001597/0.2582, allocations: 142 kB / 378.8 MB, free: 42.52 MB / 298.7 MB Notification: Performance of NFPackage.collectConstants: time 4.05e-05/0.2583, allocations: 16.28 kB / 378.9 MB, free: 42.52 MB / 298.7 MB Notification: Performance of NFFlatten.collectFunctions: time 4.431e-05/0.2583, allocations: 15.16 kB / 378.9 MB, free: 42.52 MB / 298.7 MB Notification: Performance of NFScalarize.scalarize: time 4.025e-05/0.2584, allocations: 55.16 kB / 378.9 MB, free: 42.48 MB / 298.7 MB Notification: Performance of NFVerifyModel.verify: time 0.0001139/0.2585, allocations: 147.3 kB / 379.1 MB, free: 42.37 MB / 298.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0001995/0.2587, allocations: 238 kB / 379.3 MB, free: 42.19 MB / 298.7 MB Notification: Performance of FrontEnd - DAE generated: time 6.633e-06/0.2587, allocations: 1.125 kB / 379.3 MB, free: 42.19 MB / 298.7 MB Notification: Performance of FrontEnd: time 2.434e-06/0.2587, allocations: 3.938 kB / 379.3 MB, free: 42.19 MB / 298.7 MB Notification: Performance of Transformations before backend: time 5.55e-06/0.2588, allocations: 3.938 kB / 379.3 MB, free: 42.18 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: 49 * Number of variables: 49 Notification: Performance of Generate backend data structure: time 0.00129/0.26, allocations: 0.6134 MB / 379.9 MB, free: 41.68 MB / 298.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.418e-05/0.2601, allocations: 9.781 kB / 379.9 MB, free: 41.68 MB / 298.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 8.432e-05/0.2602, allocations: 26.34 kB / 380 MB, free: 41.66 MB / 298.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002696/0.2605, allocations: 257.2 kB / 380.2 MB, free: 41.39 MB / 298.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.014e-05/0.2605, allocations: 17.06 kB / 380.2 MB, free: 41.39 MB / 298.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.287e-05/0.2606, allocations: 25.56 kB / 380.3 MB, free: 41.38 MB / 298.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.000642/0.2612, allocations: 308.6 kB / 380.6 MB, free: 41.18 MB / 298.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.069e-05/0.2612, allocations: 3.938 kB / 380.6 MB, free: 41.18 MB / 298.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.06e-05/0.2613, allocations: 10.03 kB / 380.6 MB, free: 41.17 MB / 298.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.017e-05/0.2613, allocations: 5.312 kB / 380.6 MB, free: 41.17 MB / 298.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0007815/0.2621, allocations: 284.9 kB / 380.8 MB, free: 41.05 MB / 298.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001495/0.2636, allocations: 1.076 MB / 381.9 MB, free: 40.13 MB / 298.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001842/0.2654, allocations: 484.6 kB / 382.4 MB, free: 39.94 MB / 298.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003902/0.2658, allocations: 160.2 kB / 382.6 MB, free: 39.87 MB / 298.7 MB Notification: Performance of preOpt evalFunc (simulation): time 2.926e-05/0.2659, allocations: 0 / 382.6 MB, free: 39.87 MB / 298.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.438e-05/0.2659, allocations: 36.31 kB / 382.6 MB, free: 39.83 MB / 298.7 MB Notification: Performance of pre-optimization done (n=14): time 1.383e-06/0.2659, allocations: 0 / 382.6 MB, free: 39.83 MB / 298.7 MB Notification: Performance of matching and sorting (n=14): time 0.004874/0.2708, allocations: 1.131 MB / 383.7 MB, free: 39.33 MB / 298.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.339e-05/0.2709, allocations: 52.59 kB / 383.8 MB, free: 39.27 MB / 298.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002216/0.2711, allocations: 218.8 kB / 384 MB, free: 39.1 MB / 298.7 MB Notification: Performance of collectPreVariables (initialization): time 2.323e-05/0.2711, allocations: 26.77 kB / 384 MB, free: 39.07 MB / 298.7 MB Notification: Performance of collectInitialEqns (initialization): time 7.415e-05/0.2712, allocations: 160.2 kB / 384.2 MB, free: 38.92 MB / 298.7 MB Notification: Performance of collectInitialBindings (initialization): time 3.88e-05/0.2713, allocations: 53.33 kB / 384.2 MB, free: 38.88 MB / 298.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 1.572e-05/0.2713, allocations: 1.125 kB / 384.2 MB, free: 38.88 MB / 298.7 MB Notification: Performance of setup shared object (initialization): time 6.078e-05/0.2713, allocations: 330.9 kB / 384.5 MB, free: 38.55 MB / 298.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003298/0.2717, allocations: 116 kB / 384.7 MB, free: 38.5 MB / 298.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003256/0.272, allocations: 134.6 kB / 384.8 MB, free: 38.43 MB / 298.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0006411/0.2727, allocations: 242.9 kB / 385 MB, free: 38.33 MB / 298.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.367e-06/0.2727, allocations: 1.719 kB / 385 MB, free: 38.33 MB / 298.7 MB Notification: Performance of matching and sorting (n=18) (initialization): time 0.002684/0.2754, allocations: 0.6933 MB / 385.7 MB, free: 37.76 MB / 298.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.168e-05/0.2754, allocations: 8 kB / 385.7 MB, free: 37.75 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.225e-06/0.2754, allocations: 4 kB / 385.7 MB, free: 37.75 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0006481/0.2761, allocations: 240.6 kB / 386 MB, free: 37.51 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001595/0.2763, allocations: 27.98 kB / 386 MB, free: 37.48 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.005643/0.2819, allocations: 2.614 MB / 388.6 MB, free: 34.73 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003058/0.2822, allocations: 39.89 kB / 388.7 MB, free: 34.7 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.128e-05/0.2823, allocations: 11.98 kB / 388.7 MB, free: 34.68 MB / 298.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 2 * Number of states: 0 () * Number of discrete variables: 0 () * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (16): * Single equations (assignments): 15 * 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: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 0 * Non-linear torn systems: 1 {1 2} Notification: Performance of prepare postOptimizeDAE: time 0.0001419/0.2824, allocations: 125.8 kB / 388.8 MB, free: 34.55 MB / 298.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.618e-05/0.2825, allocations: 27.66 kB / 388.8 MB, free: 34.52 MB / 298.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.977e-05/0.2825, allocations: 21.52 kB / 388.8 MB, free: 34.5 MB / 298.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.615e-06/0.2825, allocations: 4.094 kB / 388.8 MB, free: 34.5 MB / 298.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.318e-06/0.2825, allocations: 11.92 kB / 388.8 MB, free: 34.49 MB / 298.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.667e-06/0.2825, allocations: 4 kB / 388.9 MB, free: 34.48 MB / 298.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002928/0.2828, allocations: 321.4 kB / 389.2 MB, free: 34.12 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.156e-06/0.2829, allocations: 0 / 389.2 MB, free: 34.12 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001422/0.283, allocations: 31.92 kB / 389.2 MB, free: 34.09 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0005665/0.2836, allocations: 236.7 kB / 389.4 MB, free: 33.86 MB / 298.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.92e-05/0.2836, allocations: 3.984 kB / 389.4 MB, free: 33.85 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.005379/0.289, allocations: 2.599 MB / 392 MB, free: 31.12 MB / 298.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.903e-06/0.289, allocations: 0 / 392 MB, free: 31.12 MB / 298.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002898/0.2919, allocations: 0.9135 MB / 392.9 MB, free: 30.18 MB / 298.7 MB Notification: Performance of postOpt removeConstants (simulation): time 7.227e-05/0.292, allocations: 92.89 kB / 393 MB, free: 30.07 MB / 298.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.238e-05/0.2921, allocations: 15.92 kB / 393.1 MB, free: 30.06 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.000267/0.2923, allocations: 32.05 kB / 393.1 MB, free: 30.03 MB / 298.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.71e-05/0.2924, allocations: 15.98 kB / 393.1 MB, free: 30.01 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.86e-05/0.2924, allocations: 7.922 kB / 393.1 MB, free: 30 MB / 298.7 MB Notification: Performance of sorting global known variables: time 0.0001134/0.2925, allocations: 165.6 kB / 393.3 MB, free: 29.84 MB / 298.7 MB Notification: Performance of sort global known variables: time 1.3e-07/0.2925, allocations: 0 / 393.3 MB, free: 29.84 MB / 298.7 MB Notification: Performance of remove unused functions: time 0.0004325/0.293, allocations: 75.84 kB / 393.3 MB, free: 29.77 MB / 298.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * Number of states: 1 (CL.v) * Number of discrete variables: 0 () * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (12): * Single equations (assignments): 11 * 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: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 0 * Non-linear torn systems: 1 {1 2} Notification: Performance of Backend phase and start with SimCode phase: time 0.0001246/0.2931, allocations: 98.88 kB / 393.4 MB, free: 29.66 MB / 298.7 MB Notification: Performance of simCode: created initialization part: time 0.001403/0.2945, allocations: 486.3 kB / 393.9 MB, free: 29.18 MB / 298.7 MB Notification: Performance of simCode: created event and clocks part: time 2.705e-06/0.2945, allocations: 0 / 393.9 MB, free: 29.18 MB / 298.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0009309/0.2955, allocations: 350.5 kB / 394.3 MB, free: 28.82 MB / 298.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003756/0.2958, allocations: 32.66 kB / 394.3 MB, free: 28.79 MB / 298.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001096/0.297, allocations: 0.6924 MB / 395 MB, free: 28.07 MB / 298.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001442/0.2971, allocations: 0.7478 MB / 395.7 MB, free: 27.3 MB / 298.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.686e-05/0.2972, allocations: 19.44 kB / 395.7 MB, free: 27.28 MB / 298.7 MB Notification: Performance of SimCode: time 4.81e-07/0.2972, allocations: 0 / 395.7 MB, free: 27.28 MB / 298.7 MB Notification: Performance of Templates: time 0.004641/0.3018, allocations: 4.059 MB / 399.8 MB, free: 23.23 MB / 298.7 MB make -j1 -f Modelica_3.2.3_cpp_Modelica.Electrical.Analog.Examples.OvervoltageProtection.makefile (rm -f Modelica_3.2.3_cpp_Modelica.Electrical.Analog.Examples.OvervoltageProtection.pipe ; mkfifo Modelica_3.2.3_cpp_Modelica.Electrical.Analog.Examples.OvervoltageProtection.pipe ; head -c 1048576 < Modelica_3.2.3_cpp_Modelica.Electrical.Analog.Examples.OvervoltageProtection.pipe >> ../files/Modelica_3.2.3_cpp_Modelica.Electrical.Analog.Examples.OvervoltageProtection.sim & ./Modelica_3.2.3_cpp_Modelica.Electrical.Analog.Examples.OvervoltageProtection --alarm=480 -emit_protected > Modelica_3.2.3_cpp_Modelica.Electrical.Analog.Examples.OvervoltageProtection.pipe 2>&1) diffSimulationResults("Modelica_3.2.3_cpp_Modelica.Electrical.Analog.Examples.OvervoltageProtection_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v3.2.3+build.4/Modelica/Electrical/Analog/Examples/OvervoltageProtection/OvervoltageProtection.csv","../files/Modelica_3.2.3_cpp_Modelica.Electrical.Analog.Examples.OvervoltageProtection.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches