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.001024/0.001024, allocations: 95.94 kB / 16.3 MB, free: 5.992 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.001014/0.001014, allocations: 181.6 kB / 17.2 MB, free: 5.906 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.515/1.515, allocations: 223.2 MB / 241.1 MB, free: 5.445 MB / 190.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0002751/0.0002751, allocations: 11.53 kB / 300.7 MB, free: 5.949 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1008/0.1011, allocations: 50.42 MB / 351.1 MB, free: 11.74 MB / 286.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Analog.Examples.OvervoltageProtection): time 0.003424/0.1046, allocations: 2.171 MB / 353.3 MB, free: 9.559 MB / 286.1 MB Notification: Performance of NFInst.instExpressions: time 0.001283/0.1059, allocations: 0.6666 MB / 354 MB, free: 8.887 MB / 286.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002214/0.1062, allocations: 4 kB / 354 MB, free: 8.883 MB / 286.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001036/0.1063, allocations: 31.75 kB / 354 MB, free: 8.852 MB / 286.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0003072/0.1066, allocations: 99.72 kB / 354.1 MB, free: 8.754 MB / 286.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003413/0.1069, allocations: 71.83 kB / 354.2 MB, free: 8.684 MB / 286.1 MB Notification: Performance of NFFlatten.flatten: time 0.0004343/0.1074, allocations: 231.5 kB / 354.4 MB, free: 8.457 MB / 286.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002087/0.1076, allocations: 69 kB / 354.5 MB, free: 8.387 MB / 286.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002357/0.1079, allocations: 119.5 kB / 354.6 MB, free: 8.27 MB / 286.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001955/0.1081, allocations: 139.5 kB / 354.7 MB, free: 8.133 MB / 286.1 MB Notification: Performance of NFPackage.collectConstants: time 3.927e-05/0.1081, allocations: 16 kB / 354.7 MB, free: 8.117 MB / 286.1 MB Notification: Performance of NFFlatten.collectFunctions: time 4.302e-05/0.1082, allocations: 19.94 kB / 354.8 MB, free: 8.098 MB / 286.1 MB Notification: Performance of NFScalarize.scalarize: time 5.468e-05/0.1082, allocations: 55.8 kB / 354.8 MB, free: 8.043 MB / 286.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001308/0.1084, allocations: 69.58 kB / 354.9 MB, free: 7.969 MB / 286.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0002399/0.1086, allocations: 243.3 kB / 355.1 MB, free: 7.73 MB / 286.1 MB Notification: Performance of FrontEnd - DAE generated: time 2.535e-06/0.1086, allocations: 0 / 355.1 MB, free: 7.73 MB / 286.1 MB Notification: Performance of FrontEnd: time 1.333e-06/0.1086, allocations: 0 / 355.1 MB, free: 7.73 MB / 286.1 MB Notification: Performance of Transformations before backend: time 6.041e-06/0.1086, allocations: 0 / 355.1 MB, free: 7.73 MB / 286.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.001383/0.11, allocations: 0.6119 MB / 355.7 MB, free: 7.07 MB / 286.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.311e-05/0.1101, allocations: 8.031 kB / 355.7 MB, free: 7.062 MB / 286.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 7.285e-05/0.1101, allocations: 31.67 kB / 355.8 MB, free: 7.031 MB / 286.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003098/0.1105, allocations: 259.4 kB / 356 MB, free: 6.734 MB / 286.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.945e-05/0.1105, allocations: 16.44 kB / 356 MB, free: 6.719 MB / 286.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.268e-05/0.1105, allocations: 16 kB / 356 MB, free: 6.703 MB / 286.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0006488/0.1112, allocations: 302.6 kB / 356.3 MB, free: 6.395 MB / 286.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.127e-05/0.1113, allocations: 4 kB / 356.3 MB, free: 6.391 MB / 286.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.098e-05/0.1113, allocations: 12 kB / 356.4 MB, free: 6.379 MB / 286.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.416e-06/0.1114, allocations: 4 kB / 356.4 MB, free: 6.375 MB / 286.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0007496/0.1121, allocations: 289.5 kB / 356.6 MB, free: 6.09 MB / 286.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001634/0.1138, allocations: 1.081 MB / 357.7 MB, free: 4.926 MB / 286.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001905/0.1157, allocations: 490.2 kB / 358.2 MB, free: 4.438 MB / 286.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.422e-05/0.1157, allocations: 4 kB / 358.2 MB, free: 4.434 MB / 286.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.446e-05/0.1157, allocations: 30.56 kB / 358.2 MB, free: 4.395 MB / 286.1 MB Notification: Performance of pre-optimization done (n=14): time 1.563e-06/0.1157, allocations: 0 / 358.2 MB, free: 4.395 MB / 286.1 MB Notification: Performance of matching and sorting (n=14): time 0.004963/0.1207, allocations: 1.127 MB / 359.4 MB, free: 3.238 MB / 286.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.806e-05/0.1208, allocations: 51.66 kB / 359.4 MB, free: 3.176 MB / 286.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002474/0.121, allocations: 212.2 kB / 359.6 MB, free: 2.953 MB / 286.1 MB Notification: Performance of collectPreVariables (initialization): time 4.049e-05/0.1211, allocations: 33.7 kB / 359.7 MB, free: 2.914 MB / 286.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001156/0.1212, allocations: 160.1 kB / 359.8 MB, free: 2.754 MB / 286.1 MB Notification: Performance of collectInitialBindings (initialization): time 4.736e-05/0.1213, allocations: 43.3 kB / 359.9 MB, free: 2.711 MB / 286.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.727e-05/0.1213, allocations: 8 kB / 359.9 MB, free: 2.703 MB / 286.1 MB Notification: Performance of setup shared object (initialization): time 0.0001171/0.1214, allocations: 326.8 kB / 360.2 MB, free: 2.375 MB / 286.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003434/0.1218, allocations: 115.9 kB / 360.3 MB, free: 2.262 MB / 286.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003464/0.1221, allocations: 143.7 kB / 360.4 MB, free: 2.117 MB / 286.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003377/0.1225, allocations: 112 kB / 360.5 MB, free: 2.008 MB / 286.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.445e-06/0.1225, allocations: 0 / 360.5 MB, free: 2.008 MB / 286.1 MB Notification: Performance of matching and sorting (n=18) (initialization): time 0.002834/0.1253, allocations: 0.6952 MB / 361.2 MB, free: 1.305 MB / 286.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.091e-05/0.1254, allocations: 8 kB / 361.2 MB, free: 1.297 MB / 286.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.711e-06/0.1254, allocations: 0 / 361.2 MB, free: 1.297 MB / 286.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0007252/0.1261, allocations: 236.7 kB / 361.5 MB, free: 1.062 MB / 286.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001712/0.1263, allocations: 31.98 kB / 361.5 MB, free: 1.031 MB / 286.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.006724/0.133, allocations: 2.681 MB / 364.2 MB, free: 14.22 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002983/0.1333, allocations: 39.92 kB / 364.2 MB, free: 14.18 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.879e-05/0.1334, allocations: 11.98 kB / 364.2 MB, free: 14.17 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 (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.0001823/0.1336, allocations: 137.7 kB / 364.4 MB, free: 14.02 MB / 302.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 6.233e-05/0.1336, allocations: 15.81 kB / 364.4 MB, free: 14.01 MB / 302.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 5.306e-05/0.1337, allocations: 25.52 kB / 364.4 MB, free: 13.98 MB / 302.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.729e-06/0.1337, allocations: 8 kB / 364.4 MB, free: 13.97 MB / 302.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.267e-06/0.1337, allocations: 0 / 364.4 MB, free: 13.97 MB / 302.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.052e-05/0.1337, allocations: 4 kB / 364.4 MB, free: 13.97 MB / 302.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.000425/0.1342, allocations: 329.3 kB / 364.7 MB, free: 13.6 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.066e-06/0.1342, allocations: 3.938 kB / 364.8 MB, free: 13.59 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001602/0.1343, allocations: 31.98 kB / 364.8 MB, free: 13.56 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0006561/0.135, allocations: 232.6 kB / 365 MB, free: 13.33 MB / 302.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.246e-05/0.135, allocations: 7.984 kB / 365 MB, free: 13.32 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.006801/0.1418, allocations: 2.677 MB / 367.7 MB, free: 10.51 MB / 302.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.349e-06/0.1419, allocations: 3.953 kB / 367.7 MB, free: 10.51 MB / 302.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.003332/0.1452, allocations: 0.9051 MB / 368.6 MB, free: 9.586 MB / 302.1 MB Notification: Performance of postOpt removeConstants (simulation): time 7.884e-05/0.1453, allocations: 96.86 kB / 368.7 MB, free: 9.473 MB / 302.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.226e-05/0.1454, allocations: 16 kB / 368.7 MB, free: 9.457 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003039/0.1457, allocations: 35.92 kB / 368.8 MB, free: 9.422 MB / 302.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.779e-05/0.1457, allocations: 7.984 kB / 368.8 MB, free: 9.414 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.384e-05/0.1458, allocations: 11.98 kB / 368.8 MB, free: 9.402 MB / 302.1 MB Notification: Performance of sorting global known variables: time 0.0001361/0.1459, allocations: 153.6 kB / 368.9 MB, free: 9.254 MB / 302.1 MB Notification: Performance of sort global known variables: time 1.4e-07/0.1459, allocations: 4 kB / 368.9 MB, free: 9.25 MB / 302.1 MB Notification: Performance of remove unused functions: time 0.0004841/0.1464, allocations: 79.84 kB / 369 MB, free: 9.172 MB / 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 (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.0001424/0.1466, allocations: 103.2 kB / 369.1 MB, free: 9.062 MB / 302.1 MB Notification: Performance of simCode: created initialization part: time 0.001594/0.1482, allocations: 478.4 kB / 369.6 MB, free: 8.582 MB / 302.1 MB Notification: Performance of simCode: created event and clocks part: time 3.116e-06/0.1482, allocations: 0 / 369.6 MB, free: 8.582 MB / 302.1 MB Notification: Performance of simCode: created simulation system equations: time 0.001083/0.1493, allocations: 354.5 kB / 369.9 MB, free: 8.223 MB / 302.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002837/0.1496, allocations: 28.59 kB / 369.9 MB, free: 8.195 MB / 302.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001322/0.1509, allocations: 0.6791 MB / 370.6 MB, free: 7.488 MB / 302.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003284/0.1512, allocations: 0.7479 MB / 371.4 MB, free: 6.715 MB / 302.1 MB Notification: Performance of simCode: alias equations: time 8.087e-05/0.1513, allocations: 13.55 kB / 371.4 MB, free: 6.703 MB / 302.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.94e-05/0.1514, allocations: 15.44 kB / 371.4 MB, free: 6.688 MB / 302.1 MB Notification: Performance of SimCode: time 2.81e-07/0.1514, allocations: 0 / 371.4 MB, free: 6.688 MB / 302.1 MB Notification: Performance of Templates: time 0.008396/0.1598, allocations: 4.446 MB / 375.8 MB, free: 2.266 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 -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/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Electrical/Analog/Examples/OvervoltageProtection/OvervoltageProtection.csv","../files/Modelica_4.0.0_Modelica.Electrical.Analog.Examples.OvervoltageProtection.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches