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.0009083/0.0009083, allocations: 93.02 kB / 17.31 MB, free: 6.535 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.001008/0.001008, allocations: 173.9 kB / 18.21 MB, free: 5.684 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.286/1.286, allocations: 223.3 MB / 242.3 MB, free: 212 kB / 190.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0002273/0.0002274, allocations: 4.75 kB / 302.1 MB, free: 6.137 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.07262/0.07286, allocations: 50.42 MB / 352.5 MB, free: 3.707 MB / 286.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Analog.Examples.OvervoltageProtection): time 0.002421/0.07531, allocations: 2.378 MB / 354.9 MB, free: 1.312 MB / 286.1 MB Notification: Performance of NFInst.instExpressions: time 0.000993/0.07633, allocations: 0.6545 MB / 355.5 MB, free: 0.6523 MB / 286.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001213/0.07646, allocations: 4 kB / 355.5 MB, free: 0.6484 MB / 286.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001042/0.07658, allocations: 27.77 kB / 355.6 MB, free: 0.6211 MB / 286.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001442/0.07673, allocations: 71.41 kB / 355.6 MB, free: 0.5508 MB / 286.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002576/0.07699, allocations: 87.89 kB / 355.7 MB, free: 476 kB / 286.1 MB Notification: Performance of NFFlatten.flatten: time 0.0003186/0.07732, allocations: 338.5 kB / 356 MB, free: 136 kB / 286.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001596/0.07749, allocations: 81.12 kB / 356.1 MB, free: 52 kB / 286.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001918/0.07769, allocations: 119.5 kB / 356.2 MB, free: 15.93 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001714/0.07787, allocations: 143.4 kB / 356.4 MB, free: 15.79 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 3.735e-05/0.07792, allocations: 16 kB / 356.4 MB, free: 15.78 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 3.948e-05/0.07796, allocations: 16 kB / 356.4 MB, free: 15.76 MB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 4.916e-05/0.07802, allocations: 55.75 kB / 356.5 MB, free: 15.71 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001254/0.07815, allocations: 157 kB / 356.6 MB, free: 15.55 MB / 302.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0002108/0.07836, allocations: 243.6 kB / 356.9 MB, free: 15.31 MB / 302.1 MB Notification: Performance of FrontEnd - DAE generated: time 2.735e-06/0.07837, allocations: 0 / 356.9 MB, free: 15.31 MB / 302.1 MB Notification: Performance of FrontEnd: time 1.052e-06/0.07838, allocations: 0 / 356.9 MB, free: 15.31 MB / 302.1 MB Notification: Performance of Transformations before backend: time 8.076e-06/0.07839, allocations: 0 / 356.9 MB, free: 15.31 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.001287/0.07969, allocations: 0.6121 MB / 357.5 MB, free: 14.65 MB / 302.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.084e-05/0.07972, allocations: 8.031 kB / 357.5 MB, free: 14.64 MB / 302.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 6.115e-05/0.07979, allocations: 28.66 kB / 357.5 MB, free: 14.61 MB / 302.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002536/0.08005, allocations: 264.6 kB / 357.8 MB, free: 14.31 MB / 302.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.733e-05/0.08008, allocations: 20.81 kB / 357.8 MB, free: 14.29 MB / 302.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.428e-05/0.08013, allocations: 16.38 kB / 357.8 MB, free: 14.28 MB / 302.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0006601/0.0808, allocations: 314.9 kB / 358.1 MB, free: 13.96 MB / 302.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.002e-05/0.08082, allocations: 3.984 kB / 358.1 MB, free: 13.95 MB / 302.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.954e-05/0.08085, allocations: 8 kB / 358.1 MB, free: 13.95 MB / 302.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.966e-06/0.08087, allocations: 8 kB / 358.1 MB, free: 13.94 MB / 302.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0007939/0.08167, allocations: 281.6 kB / 358.4 MB, free: 13.66 MB / 302.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.00156/0.08324, allocations: 1.073 MB / 359.5 MB, free: 12.5 MB / 302.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001982/0.08523, allocations: 490.2 kB / 360 MB, free: 12.02 MB / 302.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0004086/0.08565, allocations: 156.8 kB / 360.1 MB, free: 11.86 MB / 302.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.854e-05/0.08568, allocations: 0 / 360.1 MB, free: 11.86 MB / 302.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.104e-05/0.08571, allocations: 34.56 kB / 360.1 MB, free: 11.82 MB / 302.1 MB Notification: Performance of pre-optimization done (n=14): time 1.062e-06/0.08572, allocations: 4 kB / 360.1 MB, free: 11.81 MB / 302.1 MB Notification: Performance of matching and sorting (n=14): time 0.005114/0.09084, allocations: 1.131 MB / 361.3 MB, free: 10.66 MB / 302.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 2.647e-05/0.09088, allocations: 59.34 kB / 361.3 MB, free: 10.59 MB / 302.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001921/0.09108, allocations: 220.2 kB / 361.5 MB, free: 10.36 MB / 302.1 MB Notification: Performance of collectPreVariables (initialization): time 2.383e-05/0.09111, allocations: 25.7 kB / 361.6 MB, free: 10.32 MB / 302.1 MB Notification: Performance of collectInitialEqns (initialization): time 8.785e-05/0.0912, allocations: 164 kB / 361.7 MB, free: 10.16 MB / 302.1 MB Notification: Performance of collectInitialBindings (initialization): time 4.341e-05/0.09125, allocations: 47.36 kB / 361.8 MB, free: 10.11 MB / 302.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 4.021e-05/0.0913, allocations: 17.72 kB / 361.8 MB, free: 10.09 MB / 302.1 MB Notification: Performance of setup shared object (initialization): time 9.863e-05/0.0914, allocations: 330.8 kB / 362.1 MB, free: 9.758 MB / 302.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003593/0.09177, allocations: 111.9 kB / 362.2 MB, free: 9.648 MB / 302.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003585/0.09214, allocations: 133.6 kB / 362.4 MB, free: 9.512 MB / 302.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0007041/0.09285, allocations: 252.1 kB / 362.6 MB, free: 9.262 MB / 302.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.944e-06/0.09286, allocations: 4 kB / 362.6 MB, free: 9.258 MB / 302.1 MB Notification: Performance of matching and sorting (n=18) (initialization): time 0.003046/0.09591, allocations: 0.6969 MB / 363.3 MB, free: 8.551 MB / 302.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.353e-05/0.09594, allocations: 4 kB / 363.3 MB, free: 8.547 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.238e-06/0.09595, allocations: 0 / 363.3 MB, free: 8.547 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0007164/0.09667, allocations: 236.7 kB / 363.5 MB, free: 8.312 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000167/0.09685, allocations: 35.97 kB / 363.6 MB, free: 8.277 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.006547/0.1034, allocations: 2.614 MB / 366.2 MB, free: 5.535 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002735/0.1037, allocations: 35.89 kB / 366.2 MB, free: 5.5 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.109e-05/0.1037, allocations: 11.98 kB / 366.2 MB, free: 5.488 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.0001223/0.1039, allocations: 133.7 kB / 366.4 MB, free: 5.348 MB / 302.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.317e-05/0.1039, allocations: 31.81 kB / 366.4 MB, free: 5.316 MB / 302.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 5.076e-05/0.104, allocations: 21.52 kB / 366.4 MB, free: 5.293 MB / 302.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.094e-06/0.104, allocations: 0 / 366.4 MB, free: 5.293 MB / 302.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.573e-06/0.104, allocations: 0 / 366.4 MB, free: 5.293 MB / 302.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.956e-06/0.104, allocations: 0 / 366.4 MB, free: 5.293 MB / 302.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0003444/0.1043, allocations: 329.3 kB / 366.7 MB, free: 4.922 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.282e-06/0.1044, allocations: 0 / 366.7 MB, free: 4.922 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001585/0.1045, allocations: 31.92 kB / 366.8 MB, free: 4.891 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0006491/0.1052, allocations: 236.6 kB / 367 MB, free: 4.656 MB / 302.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.772e-05/0.1052, allocations: 4 kB / 367 MB, free: 4.652 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.006294/0.1115, allocations: 2.595 MB / 369.6 MB, free: 1.922 MB / 302.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.102e-06/0.1115, allocations: 0 / 369.6 MB, free: 1.922 MB / 302.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.003348/0.1149, allocations: 0.9135 MB / 370.5 MB, free: 0.9883 MB / 302.1 MB Notification: Performance of postOpt removeConstants (simulation): time 5.393e-05/0.1149, allocations: 100.9 kB / 370.6 MB, free: 0.8711 MB / 302.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.456e-05/0.115, allocations: 7.938 kB / 370.6 MB, free: 0.8633 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003097/0.1153, allocations: 40.12 kB / 370.7 MB, free: 0.8242 MB / 302.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.382e-05/0.1153, allocations: 15.91 kB / 370.7 MB, free: 0.8086 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.823e-05/0.1154, allocations: 8 kB / 370.7 MB, free: 0.8008 MB / 302.1 MB Notification: Performance of sorting global known variables: time 0.0001283/0.1155, allocations: 157.8 kB / 370.8 MB, free: 0.6484 MB / 302.1 MB Notification: Performance of sort global known variables: time 1.4e-07/0.1155, allocations: 0 / 370.8 MB, free: 0.6484 MB / 302.1 MB Notification: Performance of remove unused functions: time 0.0004269/0.1159, allocations: 79.84 kB / 370.9 MB, free: 0.5703 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 (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.0001035/0.116, allocations: 103.2 kB / 371 MB, free: 472 kB / 302.1 MB Notification: Performance of simCode: created initialization part: time 0.1357/0.2517, allocations: 471.3 kB / 371.5 MB, free: 25.15 MB / 302.1 MB Notification: Performance of simCode: created event and clocks part: time 4.258e-06/0.2518, allocations: 2.094 kB / 371.5 MB, free: 25.15 MB / 302.1 MB Notification: Performance of simCode: created simulation system equations: time 0.001192/0.253, allocations: 355.8 kB / 371.8 MB, free: 25.04 MB / 302.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003986/0.2534, allocations: 29.69 kB / 371.9 MB, free: 25.04 MB / 302.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001237/0.2546, allocations: 0.725 MB / 372.6 MB, free: 24.69 MB / 302.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001402/0.2548, allocations: 0.7447 MB / 373.3 MB, free: 23.99 MB / 302.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.979e-05/0.2548, allocations: 16.73 kB / 373.3 MB, free: 23.98 MB / 302.1 MB Notification: Performance of SimCode: time 4.71e-07/0.2548, allocations: 0 / 373.3 MB, free: 23.98 MB / 302.1 MB Notification: Performance of Templates: time 0.005952/0.2608, allocations: 4.04 MB / 377.4 MB, free: 23.8 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/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