Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.0.0_Modelica.Electrical.Analog.Examples.OvervoltageProtection.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 4.0.0+maint.om/package.mo", uses=false) Using package Modelica with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+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.Electrical.Analog.Examples.OvervoltageProtection,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|CL.v",fileNamePrefix="Modelica_4.0.0_Modelica.Electrical.Analog.Examples.OvervoltageProtection") translateModel(Modelica.Electrical.Analog.Examples.OvervoltageProtection,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|CL.v",fileNamePrefix="Modelica_4.0.0_Modelica.Electrical.Analog.Examples.OvervoltageProtection") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001261/0.001261, allocations: 111.8 kB / 17.68 MB, free: 5.355 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.001143/0.001143, allocations: 190.9 kB / 18.62 MB, free: 4.434 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.412/1.412, allocations: 222.9 MB / 242.3 MB, free: 15.16 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001053/0.001053, allocations: 55.3 kB / 302 MB, free: 5.176 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09083/0.09191, allocations: 49.45 MB / 351.5 MB, free: 3.703 MB / 286.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Analog.Examples.OvervoltageProtection): time 0.003563/0.09551, allocations: 2.684 MB / 354.2 MB, free: 1 MB / 286.1 MB Notification: Performance of NFInst.instExpressions: time 0.00117/0.0967, allocations: 0.6778 MB / 354.9 MB, free: 324 kB / 286.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001295/0.09685, allocations: 4 kB / 354.9 MB, free: 320 kB / 286.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001566/0.09703, allocations: 43.56 kB / 354.9 MB, free: 276 kB / 286.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001382/0.09717, allocations: 83.27 kB / 355 MB, free: 192 kB / 286.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.000293/0.09747, allocations: 95.8 kB / 355.1 MB, free: 96 kB / 286.1 MB Notification: Performance of NFFlatten.flatten: time 0.0003612/0.09784, allocations: 362.5 kB / 355.4 MB, free: 15.74 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001897/0.09804, allocations: 88.7 kB / 355.5 MB, free: 15.65 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.000189/0.09824, allocations: 139.5 kB / 355.7 MB, free: 15.51 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.000192/0.09844, allocations: 171.3 kB / 355.8 MB, free: 15.34 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 4.801e-05/0.0985, allocations: 32 kB / 355.9 MB, free: 15.31 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 4.581e-05/0.09855, allocations: 28 kB / 355.9 MB, free: 15.29 MB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 5.928e-05/0.09861, allocations: 67.75 kB / 355.9 MB, free: 15.22 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001316/0.09875, allocations: 143.3 kB / 356.1 MB, free: 15.08 MB / 302.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0002947/0.09905, allocations: 342.8 kB / 356.4 MB, free: 14.74 MB / 302.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.138e-06/0.09906, allocations: 0 / 356.4 MB, free: 14.74 MB / 302.1 MB Notification: Performance of FrontEnd: time 1.262e-06/0.09907, allocations: 0 / 356.4 MB, free: 14.74 MB / 302.1 MB Notification: Performance of Transformations before backend: time 9.367e-06/0.09909, allocations: 0 / 356.4 MB, free: 14.74 MB / 302.1 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.001424/0.1005, allocations: 0.6393 MB / 357.1 MB, free: 14.05 MB / 302.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.277e-05/0.1006, allocations: 8.031 kB / 357.1 MB, free: 14.05 MB / 302.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 6.861e-05/0.1006, allocations: 32.56 kB / 357.1 MB, free: 14.02 MB / 302.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.00032/0.101, allocations: 260.7 kB / 357.4 MB, free: 13.72 MB / 302.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.695e-05/0.101, allocations: 20.75 kB / 357.4 MB, free: 13.7 MB / 302.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.682e-05/0.101, allocations: 20.38 kB / 357.4 MB, free: 13.68 MB / 302.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0006294/0.1017, allocations: 298.9 kB / 357.7 MB, free: 13.38 MB / 302.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 9.769e-06/0.1017, allocations: 0 / 357.7 MB, free: 13.38 MB / 302.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.137e-05/0.1017, allocations: 12 kB / 357.7 MB, free: 13.36 MB / 302.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.943e-06/0.1017, allocations: 7.938 kB / 357.7 MB, free: 13.36 MB / 302.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0007807/0.1025, allocations: 273.5 kB / 358 MB, free: 13.09 MB / 302.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001603/0.1041, allocations: 1.058 MB / 359 MB, free: 11.95 MB / 302.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001951/0.1061, allocations: 438.3 kB / 359.5 MB, free: 11.51 MB / 302.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003876/0.1065, allocations: 144.8 kB / 359.6 MB, free: 11.36 MB / 302.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.491e-05/0.1065, allocations: 4 kB / 359.6 MB, free: 11.36 MB / 302.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.211e-05/0.1066, allocations: 38.56 kB / 359.6 MB, free: 11.31 MB / 302.1 MB Notification: Performance of pre-optimization done (n=14): time 1.452e-06/0.1066, allocations: 0 / 359.6 MB, free: 11.31 MB / 302.1 MB Notification: Performance of matching and sorting (n=14): time 0.006184/0.1128, allocations: 1.025 MB / 360.7 MB, free: 10.26 MB / 302.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.876e-05/0.1128, allocations: 51.41 kB / 360.7 MB, free: 10.2 MB / 302.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003183/0.1132, allocations: 224.1 kB / 360.9 MB, free: 9.965 MB / 302.1 MB Notification: Performance of collectPreVariables (initialization): time 3.529e-05/0.1132, allocations: 25.7 kB / 361 MB, free: 9.934 MB / 302.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001322/0.1134, allocations: 168.1 kB / 361.1 MB, free: 9.766 MB / 302.1 MB Notification: Performance of collectInitialBindings (initialization): time 6.048e-05/0.1134, allocations: 47.27 kB / 361.2 MB, free: 9.719 MB / 302.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.000128/0.1136, allocations: 37.69 kB / 361.2 MB, free: 9.676 MB / 302.1 MB Notification: Performance of setup shared object (initialization): time 0.0001486/0.1137, allocations: 326.8 kB / 361.5 MB, free: 9.348 MB / 302.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0005112/0.1142, allocations: 107.9 kB / 361.6 MB, free: 9.242 MB / 302.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0005176/0.1148, allocations: 121.6 kB / 361.8 MB, free: 9.117 MB / 302.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0009877/0.1158, allocations: 232.2 kB / 362 MB, free: 8.887 MB / 302.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.056e-06/0.1158, allocations: 0 / 362 MB, free: 8.887 MB / 302.1 MB Notification: Performance of matching and sorting (n=18) (initialization): time 0.004291/0.1201, allocations: 0.6344 MB / 362.6 MB, free: 8.242 MB / 302.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.167e-05/0.1201, allocations: 11.94 kB / 362.6 MB, free: 8.23 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.025e-06/0.1202, allocations: 0 / 362.6 MB, free: 8.23 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001058/0.1212, allocations: 224.6 kB / 362.8 MB, free: 8.008 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002486/0.1215, allocations: 31.92 kB / 362.9 MB, free: 7.977 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.009833/0.1313, allocations: 2.746 MB / 365.6 MB, free: 5.094 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0004174/0.1318, allocations: 35.88 kB / 365.7 MB, free: 5.059 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.803e-05/0.1318, allocations: 8.047 kB / 365.7 MB, free: 5.051 MB / 302.1 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 (not torn): 0 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 0 systems * Non-linear torn systems (#iteration vars, #inner vars): 1 system {(1,2)} Notification: Performance of prepare postOptimizeDAE: time 0.0002356/0.1321, allocations: 142.2 kB / 365.8 MB, free: 4.902 MB / 302.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 9.445e-05/0.1322, allocations: 19.72 kB / 365.8 MB, free: 4.883 MB / 302.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 7.023e-05/0.1323, allocations: 21.53 kB / 365.8 MB, free: 4.859 MB / 302.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.89e-06/0.1323, allocations: 7.984 kB / 365.9 MB, free: 4.852 MB / 302.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.866e-06/0.1323, allocations: 0 / 365.9 MB, free: 4.852 MB / 302.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.42e-06/0.1323, allocations: 96 / 365.9 MB, free: 4.852 MB / 302.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0006394/0.1329, allocations: 329.4 kB / 366.2 MB, free: 4.48 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.587e-06/0.133, allocations: 0 / 366.2 MB, free: 4.48 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002324/0.1332, allocations: 35.92 kB / 366.2 MB, free: 4.445 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0009381/0.1342, allocations: 212.7 kB / 366.4 MB, free: 4.234 MB / 302.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.532e-05/0.1342, allocations: 11.98 kB / 366.4 MB, free: 4.223 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.009604/0.1438, allocations: 2.723 MB / 369.2 MB, free: 1.359 MB / 302.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.725e-06/0.1439, allocations: 0 / 369.2 MB, free: 1.359 MB / 302.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.004624/0.1485, allocations: 0.8544 MB / 370 MB, free: 500 kB / 302.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001028/0.1486, allocations: 96.89 kB / 370.1 MB, free: 384 kB / 302.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.374e-05/0.1487, allocations: 4 kB / 370.1 MB, free: 380 kB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0004398/0.1491, allocations: 27.97 kB / 370.1 MB, free: 352 kB / 302.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.996e-05/0.1492, allocations: 15.98 kB / 370.1 MB, free: 336 kB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.971e-05/0.1493, allocations: 11.98 kB / 370.2 MB, free: 324 kB / 302.1 MB Notification: Performance of sorting global known variables: time 0.0001969/0.1495, allocations: 157.9 kB / 370.3 MB, free: 168 kB / 302.1 MB Notification: Performance of sort global known variables: time 1.7e-07/0.1495, allocations: 0 / 370.3 MB, free: 168 kB / 302.1 MB Notification: Performance of remove unused functions: time 0.0007887/0.1503, allocations: 75.84 kB / 370.4 MB, free: 92 kB / 302.1 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 (not torn): 0 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 0 systems * Non-linear torn systems (#iteration vars, #inner vars): 1 system {(1,2)} Notification: Performance of Backend phase and start with SimCode phase: time 0.1405/0.2908, allocations: 103.2 kB / 370.5 MB, free: 26.14 MB / 302.1 MB Notification: Performance of simCode: created initialization part: time 0.001834/0.2927, allocations: 449.1 kB / 370.9 MB, free: 26.03 MB / 302.1 MB Notification: Performance of simCode: created event and clocks part: time 4.318e-06/0.2927, allocations: 0 / 370.9 MB, free: 26.03 MB / 302.1 MB Notification: Performance of simCode: created simulation system equations: time 0.001109/0.2938, allocations: 329.1 kB / 371.2 MB, free: 25.92 MB / 302.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000398/0.2942, allocations: 34.11 kB / 371.3 MB, free: 25.92 MB / 302.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.00137/0.2956, allocations: 0.5561 MB / 371.8 MB, free: 25.7 MB / 302.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002191/0.2958, allocations: 0.7429 MB / 372.6 MB, free: 25 MB / 302.1 MB Notification: Performance of simCode: alias equations: time 9.192e-05/0.2959, allocations: 16.92 kB / 372.6 MB, free: 25 MB / 302.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.365e-05/0.296, allocations: 15.88 kB / 372.6 MB, free: 24.99 MB / 302.1 MB Notification: Performance of SimCode: time 8.72e-07/0.296, allocations: 0 / 372.6 MB, free: 24.99 MB / 302.1 MB Notification: Performance of Templates: time 0.01075/0.3067, allocations: 4.934 MB / 377.5 MB, free: 24.78 MB / 302.1 MB make -j1 -f Modelica_4.0.0_Modelica.Electrical.Analog.Examples.OvervoltageProtection.makefile (rm -f Modelica_4.0.0_Modelica.Electrical.Analog.Examples.OvervoltageProtection.pipe ; mkfifo Modelica_4.0.0_Modelica.Electrical.Analog.Examples.OvervoltageProtection.pipe ; head -c 1048576 < Modelica_4.0.0_Modelica.Electrical.Analog.Examples.OvervoltageProtection.pipe >> ../files/Modelica_4.0.0_Modelica.Electrical.Analog.Examples.OvervoltageProtection.sim & ./Modelica_4.0.0_Modelica.Electrical.Analog.Examples.OvervoltageProtection -abortSlowSimulation -alarm=480 -s gbode -emit_protected -lv LOG_STATS > Modelica_4.0.0_Modelica.Electrical.Analog.Examples.OvervoltageProtection.pipe 2>&1) diffSimulationResults("Modelica_4.0.0_Modelica.Electrical.Analog.Examples.OvervoltageProtection_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Electrical/Analog/Examples/OvervoltageProtection/OvervoltageProtection.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_4.0.0_Modelica.Electrical.Analog.Examples.OvervoltageProtection.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches