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.002021/0.002021, allocations: 116 kB / 17.69 MB, free: 5.312 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.002017/0.002016, allocations: 191 kB / 18.63 MB, free: 4.379 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.475/1.475, allocations: 222.9 MB / 242.3 MB, free: 15.17 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001305/0.001305, allocations: 51.67 kB / 302.1 MB, free: 5.176 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1217/0.123, allocations: 49.44 MB / 351.5 MB, free: 3.703 MB / 286.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Analog.Examples.OvervoltageProtection): time 0.005042/0.1281, allocations: 2.695 MB / 354.2 MB, free: 0.9922 MB / 286.1 MB Notification: Performance of NFInst.instExpressions: time 0.001584/0.1297, allocations: 0.6699 MB / 354.9 MB, free: 324 kB / 286.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002636/0.13, allocations: 4 kB / 354.9 MB, free: 320 kB / 286.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0002061/0.1302, allocations: 43.58 kB / 354.9 MB, free: 276 kB / 286.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0002571/0.1305, allocations: 83.27 kB / 355 MB, free: 192 kB / 286.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003758/0.1309, allocations: 95.8 kB / 355.1 MB, free: 96 kB / 286.1 MB Notification: Performance of NFFlatten.flatten: time 0.0005093/0.1314, allocations: 358.6 kB / 355.4 MB, free: 15.74 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002281/0.1317, allocations: 92.69 kB / 355.5 MB, free: 15.65 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0003242/0.132, allocations: 143.5 kB / 355.7 MB, free: 15.51 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002442/0.1322, allocations: 163.3 kB / 355.8 MB, free: 15.35 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 5.856e-05/0.1323, allocations: 32 kB / 355.9 MB, free: 15.32 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 6.66e-05/0.1324, allocations: 32 kB / 355.9 MB, free: 15.29 MB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 7.696e-05/0.1325, allocations: 67.73 kB / 356 MB, free: 15.22 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001672/0.1326, allocations: 147.3 kB / 356.1 MB, free: 15.07 MB / 302.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0003769/0.133, allocations: 338.8 kB / 356.4 MB, free: 14.74 MB / 302.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.62e-06/0.133, allocations: 0 / 356.4 MB, free: 14.74 MB / 302.1 MB Notification: Performance of FrontEnd: time 1.563e-06/0.1331, allocations: 0 / 356.4 MB, free: 14.74 MB / 302.1 MB Notification: Performance of Transformations before backend: time 1.693e-05/0.1331, allocations: 4 kB / 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.001597/0.1347, allocations: 0.6471 MB / 357.1 MB, free: 14.04 MB / 302.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.33e-05/0.1347, allocations: 8.031 kB / 357.1 MB, free: 14.04 MB / 302.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 8.641e-05/0.1348, allocations: 28.56 kB / 357.1 MB, free: 14.01 MB / 302.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004349/0.1353, allocations: 260.7 kB / 357.4 MB, free: 13.71 MB / 302.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.735e-05/0.1353, allocations: 12.81 kB / 357.4 MB, free: 13.7 MB / 302.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 5.657e-05/0.1354, allocations: 20.38 kB / 357.4 MB, free: 13.68 MB / 302.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0006949/0.1361, allocations: 306.9 kB / 357.7 MB, free: 13.37 MB / 302.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.179e-05/0.1361, allocations: 0 / 357.7 MB, free: 13.37 MB / 302.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.501e-05/0.1361, allocations: 11.94 kB / 357.7 MB, free: 13.36 MB / 302.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.032e-05/0.1361, allocations: 4 kB / 357.7 MB, free: 13.35 MB / 302.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0007823/0.1369, allocations: 269.5 kB / 358 MB, free: 13.09 MB / 302.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001762/0.1387, allocations: 1.062 MB / 359 MB, free: 11.94 MB / 302.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001936/0.1407, allocations: 446.2 kB / 359.5 MB, free: 11.5 MB / 302.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003891/0.1411, allocations: 144.8 kB / 359.6 MB, free: 11.35 MB / 302.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.619e-05/0.1411, allocations: 0 / 359.6 MB, free: 11.35 MB / 302.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.276e-05/0.1411, allocations: 38.56 kB / 359.7 MB, free: 11.3 MB / 302.1 MB Notification: Performance of pre-optimization done (n=14): time 1.412e-06/0.1411, allocations: 3.938 kB / 359.7 MB, free: 11.3 MB / 302.1 MB Notification: Performance of matching and sorting (n=14): time 0.005/0.1461, allocations: 1.018 MB / 360.7 MB, free: 10.25 MB / 302.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.932e-05/0.1462, allocations: 55.41 kB / 360.7 MB, free: 10.19 MB / 302.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002599/0.1465, allocations: 216.1 kB / 361 MB, free: 9.961 MB / 302.1 MB Notification: Performance of collectPreVariables (initialization): time 2.995e-05/0.1465, allocations: 29.7 kB / 361 MB, free: 9.926 MB / 302.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.000118/0.1467, allocations: 164.1 kB / 361.1 MB, free: 9.762 MB / 302.1 MB Notification: Performance of collectInitialBindings (initialization): time 5.063e-05/0.1467, allocations: 51.25 kB / 361.2 MB, free: 9.711 MB / 302.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 8.803e-05/0.1468, allocations: 33.7 kB / 361.2 MB, free: 9.672 MB / 302.1 MB Notification: Performance of setup shared object (initialization): time 0.0001417/0.147, allocations: 330.8 kB / 361.5 MB, free: 9.34 MB / 302.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003504/0.1473, allocations: 103.9 kB / 361.6 MB, free: 9.238 MB / 302.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003377/0.1477, allocations: 125.6 kB / 361.8 MB, free: 9.109 MB / 302.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0006749/0.1483, allocations: 228.2 kB / 362 MB, free: 8.883 MB / 302.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.805e-06/0.1484, allocations: 0 / 362 MB, free: 8.883 MB / 302.1 MB Notification: Performance of matching and sorting (n=18) (initialization): time 0.002936/0.1513, allocations: 0.6344 MB / 362.6 MB, free: 8.238 MB / 302.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.137e-05/0.1513, allocations: 4 kB / 362.6 MB, free: 8.234 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.486e-06/0.1514, allocations: 0 / 362.6 MB, free: 8.234 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0007546/0.1521, allocations: 224.7 kB / 362.9 MB, free: 8.012 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001826/0.1523, allocations: 35.97 kB / 362.9 MB, free: 7.977 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.006939/0.1593, allocations: 2.746 MB / 365.6 MB, free: 5.094 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003071/0.1596, allocations: 31.91 kB / 365.7 MB, free: 5.062 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.499e-05/0.1596, allocations: 12 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.0001739/0.1598, allocations: 142.2 kB / 365.8 MB, free: 4.902 MB / 302.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 7.928e-05/0.1599, allocations: 23.81 kB / 365.8 MB, free: 4.879 MB / 302.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 5.383e-05/0.16, allocations: 29.5 kB / 365.9 MB, free: 4.848 MB / 302.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.804e-06/0.16, allocations: 3.938 kB / 365.9 MB, free: 4.844 MB / 302.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.857e-06/0.16, allocations: 4 kB / 365.9 MB, free: 4.84 MB / 302.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.066e-06/0.16, allocations: 0 / 365.9 MB, free: 4.84 MB / 302.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0003668/0.1604, allocations: 313.4 kB / 366.2 MB, free: 4.484 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.264e-06/0.1604, allocations: 0 / 366.2 MB, free: 4.484 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001626/0.1605, allocations: 39.97 kB / 366.2 MB, free: 4.445 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0006434/0.1612, allocations: 216.7 kB / 366.4 MB, free: 4.23 MB / 302.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.852e-05/0.1612, allocations: 3.938 kB / 366.4 MB, free: 4.227 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.00652/0.1677, allocations: 2.735 MB / 369.2 MB, free: 1.352 MB / 302.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.548e-06/0.1678, allocations: 3.938 kB / 369.2 MB, free: 1.348 MB / 302.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.003129/0.1709, allocations: 0.8472 MB / 370 MB, free: 492 kB / 302.1 MB Notification: Performance of postOpt removeConstants (simulation): time 7.798e-05/0.171, allocations: 92.89 kB / 370.1 MB, free: 380 kB / 302.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.091e-05/0.171, allocations: 0 / 370.1 MB, free: 380 kB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002908/0.1713, allocations: 35.97 kB / 370.1 MB, free: 344 kB / 302.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.333e-05/0.1714, allocations: 7.984 kB / 370.2 MB, free: 336 kB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.399e-05/0.1714, allocations: 12.05 kB / 370.2 MB, free: 324 kB / 302.1 MB Notification: Performance of sorting global known variables: time 0.000153/0.1716, allocations: 157.8 kB / 370.3 MB, free: 168 kB / 302.1 MB Notification: Performance of sort global known variables: time 4.21e-07/0.1716, allocations: 0 / 370.3 MB, free: 168 kB / 302.1 MB Notification: Performance of remove unused functions: time 0.0004871/0.1721, allocations: 83.84 kB / 370.4 MB, free: 84 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.1998/0.3719, allocations: 98.25 kB / 370.5 MB, free: 26.75 MB / 302.1 MB Notification: Performance of simCode: created initialization part: time 0.002687/0.3746, allocations: 443.7 kB / 370.9 MB, free: 26.65 MB / 302.1 MB Notification: Performance of simCode: created event and clocks part: time 7.724e-06/0.3746, allocations: 0.7188 kB / 370.9 MB, free: 26.65 MB / 302.1 MB Notification: Performance of simCode: created simulation system equations: time 0.001721/0.3764, allocations: 332.8 kB / 371.3 MB, free: 26.54 MB / 302.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0006615/0.3771, allocations: 31.59 kB / 371.3 MB, free: 26.54 MB / 302.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002117/0.3792, allocations: 0.5528 MB / 371.8 MB, free: 26.31 MB / 302.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003819/0.3796, allocations: 0.7446 MB / 372.6 MB, free: 25.62 MB / 302.1 MB Notification: Performance of simCode: alias equations: time 0.0001101/0.3797, allocations: 16.17 kB / 372.6 MB, free: 25.62 MB / 302.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 7.279e-05/0.3798, allocations: 19.81 kB / 372.6 MB, free: 25.61 MB / 302.1 MB Notification: Performance of SimCode: time 1.292e-06/0.3798, allocations: 0 / 372.6 MB, free: 25.61 MB / 302.1 MB Notification: Performance of Templates: time 0.01602/0.3958, allocations: 4.938 MB / 377.6 MB, free: 25.39 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 cvode -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