Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_3.2.3_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 3.2.3+maint.om/package.mo", uses=false) 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 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_3.2.3_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_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.001322/0.001322, allocations: 109.4 kB / 18.4 MB, free: 4.668 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.0013/0.0013, allocations: 185.2 kB / 19.33 MB, free: 3.75 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.413/1.413, allocations: 205.1 MB / 225.2 MB, free: 12.22 MB / 190.1 MB Notification: Modelica requested package Complex of version 3.2.3. Complex 4.0.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Modelica requested package ModelicaServices of version 3.2.3. ModelicaServices 4.0.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Performance of FrontEnd - loaded program: time 0.001229/0.001229, allocations: 47.92 kB / 329.2 MB, free: 3.297 MB / 270.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09611/0.09735, allocations: 46.61 MB / 375.8 MB, free: 4.574 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Analog.Examples.OvervoltageProtection): time 0.003771/0.1012, allocations: 2.665 MB / 378.5 MB, free: 1.895 MB / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.00124/0.1024, allocations: 0.7057 MB / 379.2 MB, free: 1.18 MB / 318.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001216/0.1026, allocations: 4 kB / 379.2 MB, free: 1.176 MB / 318.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001722/0.1028, allocations: 43.56 kB / 379.2 MB, free: 1.133 MB / 318.1 MB Notification: Performance of NFTyping.typeBindings: time 0.000158/0.1029, allocations: 79.28 kB / 379.3 MB, free: 1.055 MB / 318.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002876/0.1032, allocations: 103.8 kB / 379.4 MB, free: 0.9531 MB / 318.1 MB Notification: Performance of NFFlatten.flatten: time 0.0003396/0.1036, allocations: 362.5 kB / 379.8 MB, free: 0.5977 MB / 318.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001969/0.1038, allocations: 96.56 kB / 379.9 MB, free: 0.5039 MB / 318.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002105/0.104, allocations: 143.5 kB / 380 MB, free: 372 kB / 318.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001912/0.1042, allocations: 155.4 kB / 380.2 MB, free: 216 kB / 318.1 MB Notification: Performance of NFPackage.collectConstants: time 8.477e-05/0.1043, allocations: 32 kB / 380.2 MB, free: 184 kB / 318.1 MB Notification: Performance of NFFlatten.collectFunctions: time 5.376e-05/0.1044, allocations: 35.94 kB / 380.2 MB, free: 148 kB / 318.1 MB Notification: Performance of NFScalarize.scalarize: time 6.249e-05/0.1044, allocations: 71.73 kB / 380.3 MB, free: 76 kB / 318.1 MB Notification: Performance of NFVerifyModel.verify: time 0.2676/0.372, allocations: 137.5 kB / 380.4 MB, free: 10.1 MB / 318.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0006276/0.3727, allocations: 343 kB / 380.8 MB, free: 10.09 MB / 318.1 MB Notification: Performance of FrontEnd - DAE generated: time 7.564e-06/0.3727, allocations: 0 / 380.8 MB, free: 10.09 MB / 318.1 MB Notification: Performance of FrontEnd: time 2.976e-06/0.3728, allocations: 0 / 380.8 MB, free: 10.09 MB / 318.1 MB Notification: Performance of Transformations before backend: time 1.005e-05/0.3728, allocations: 0 / 380.8 MB, free: 10.09 MB / 318.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.00169/0.3745, allocations: 0.6422 MB / 381.4 MB, free: 9.66 MB / 318.1 MB Notification: Performance of prepare preOptimizeDAE: time 8.167e-05/0.3746, allocations: 8.25 kB / 381.4 MB, free: 9.66 MB / 318.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001123/0.3747, allocations: 29.05 kB / 381.4 MB, free: 9.648 MB / 318.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0005375/0.3752, allocations: 265.7 kB / 381.7 MB, free: 9.422 MB / 318.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.442e-05/0.3753, allocations: 11.81 kB / 381.7 MB, free: 9.422 MB / 318.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 6.823e-05/0.3753, allocations: 20.55 kB / 381.7 MB, free: 9.422 MB / 318.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0008711/0.3762, allocations: 300.7 kB / 382 MB, free: 9.359 MB / 318.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.786e-05/0.3762, allocations: 8.781 kB / 382 MB, free: 9.355 MB / 318.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.891e-05/0.3763, allocations: 4.5 kB / 382 MB, free: 9.355 MB / 318.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.267e-05/0.3763, allocations: 7.094 kB / 382 MB, free: 9.355 MB / 318.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.000837/0.3772, allocations: 268.1 kB / 382.3 MB, free: 9.355 MB / 318.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002016/0.3792, allocations: 1.062 MB / 383.4 MB, free: 8.785 MB / 318.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.002097/0.3813, allocations: 440 kB / 383.8 MB, free: 8.75 MB / 318.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0004247/0.3818, allocations: 143.6 kB / 383.9 MB, free: 8.742 MB / 318.1 MB Notification: Performance of preOpt evalFunc (simulation): time 3.732e-05/0.3818, allocations: 6.422 kB / 383.9 MB, free: 8.738 MB / 318.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.98e-05/0.3818, allocations: 32.62 kB / 384 MB, free: 8.699 MB / 318.1 MB Notification: Performance of pre-optimization done (n=14): time 2.705e-06/0.3819, allocations: 0.9688 kB / 384 MB, free: 8.699 MB / 318.1 MB Notification: Performance of matching and sorting (n=14): time 0.005146/0.387, allocations: 1.017 MB / 385 MB, free: 8.531 MB / 318.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.153e-05/0.3871, allocations: 57.44 kB / 385 MB, free: 8.465 MB / 318.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003101/0.3874, allocations: 215.8 kB / 385.3 MB, free: 8.359 MB / 318.1 MB Notification: Performance of collectPreVariables (initialization): time 3.779e-05/0.3875, allocations: 32.25 kB / 385.3 MB, free: 8.324 MB / 318.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001082/0.3876, allocations: 157.9 kB / 385.4 MB, free: 8.215 MB / 318.1 MB Notification: Performance of collectInitialBindings (initialization): time 5.189e-05/0.3876, allocations: 50.94 kB / 385.5 MB, free: 8.184 MB / 318.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 9.617e-05/0.3877, allocations: 38.75 kB / 385.5 MB, free: 8.168 MB / 318.1 MB Notification: Performance of setup shared object (initialization): time 9.098e-05/0.3878, allocations: 327.2 kB / 385.9 MB, free: 7.855 MB / 318.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003624/0.3882, allocations: 109.6 kB / 386 MB, free: 7.852 MB / 318.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003973/0.3886, allocations: 123.4 kB / 386.1 MB, free: 7.836 MB / 318.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0007012/0.3893, allocations: 234.4 kB / 386.3 MB, free: 7.812 MB / 318.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.677e-06/0.3893, allocations: 4 kB / 386.3 MB, free: 7.809 MB / 318.1 MB Notification: Performance of matching and sorting (n=18) (initialization): time 0.003041/0.3924, allocations: 0.6298 MB / 386.9 MB, free: 7.742 MB / 318.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.802e-05/0.3924, allocations: 5.844 kB / 386.9 MB, free: 7.742 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.127e-05/0.3925, allocations: 1.469 kB / 386.9 MB, free: 7.742 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0008134/0.3933, allocations: 223.5 kB / 387.2 MB, free: 7.723 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002068/0.3935, allocations: 36.38 kB / 387.2 MB, free: 7.723 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.006881/0.4004, allocations: 2.742 MB / 389.9 MB, free: 5.996 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003527/0.4008, allocations: 38.11 kB / 390 MB, free: 5.984 MB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.468e-05/0.4008, allocations: 7.969 kB / 390 MB, free: 5.984 MB / 318.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.0001744/0.401, allocations: 146.2 kB / 390.1 MB, free: 5.844 MB / 318.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 6.181e-05/0.4011, allocations: 18.19 kB / 390.2 MB, free: 5.836 MB / 318.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 5.542e-05/0.4011, allocations: 24.67 kB / 390.2 MB, free: 5.82 MB / 318.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.318e-06/0.4011, allocations: 2.375 kB / 390.2 MB, free: 5.82 MB / 318.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.048e-06/0.4011, allocations: 0 / 390.2 MB, free: 5.82 MB / 318.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.91e-06/0.4012, allocations: 0.7031 kB / 390.2 MB, free: 5.82 MB / 318.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0004302/0.4016, allocations: 338.8 kB / 390.5 MB, free: 5.562 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.617e-06/0.4016, allocations: 0.9375 kB / 390.5 MB, free: 5.562 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.000164/0.4018, allocations: 28.08 kB / 390.5 MB, free: 5.562 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0007291/0.4025, allocations: 220 kB / 390.8 MB, free: 5.512 MB / 318.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.455e-05/0.4025, allocations: 4.125 kB / 390.8 MB, free: 5.512 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.006519/0.4091, allocations: 2.737 MB / 393.5 MB, free: 3.715 MB / 318.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.958e-06/0.4092, allocations: 5.125 kB / 393.5 MB, free: 3.711 MB / 318.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.003626/0.4128, allocations: 0.8451 MB / 394.3 MB, free: 3.43 MB / 318.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.00017/0.413, allocations: 98.81 kB / 394.4 MB, free: 3.32 MB / 318.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.672e-05/0.4131, allocations: 2.641 kB / 394.4 MB, free: 3.32 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003034/0.4134, allocations: 34.45 kB / 394.5 MB, free: 3.316 MB / 318.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 9.532e-05/0.4135, allocations: 11.88 kB / 394.5 MB, free: 3.312 MB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.04e-05/0.4135, allocations: 6.219 kB / 394.5 MB, free: 3.312 MB / 318.1 MB Notification: Performance of sorting global known variables: time 0.0002523/0.4138, allocations: 160.8 kB / 394.6 MB, free: 3.211 MB / 318.1 MB Notification: Performance of sort global known variables: time 5.91e-07/0.4138, allocations: 0 / 394.6 MB, free: 3.211 MB / 318.1 MB Notification: Performance of remove unused functions: time 0.0007164/0.4145, allocations: 78.59 kB / 394.7 MB, free: 3.199 MB / 318.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.0001837/0.4147, allocations: 102 kB / 394.8 MB, free: 3.105 MB / 318.1 MB Notification: Performance of simCode: created initialization part: time 0.001928/0.4166, allocations: 445.3 kB / 395.3 MB, free: 2.934 MB / 318.1 MB Notification: Performance of simCode: created event and clocks part: time 5.771e-06/0.4167, allocations: 0 / 395.3 MB, free: 2.934 MB / 318.1 MB Notification: Performance of simCode: created simulation system equations: time 0.001213/0.4179, allocations: 337.5 kB / 395.6 MB, free: 2.781 MB / 318.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004433/0.4183, allocations: 33.56 kB / 395.6 MB, free: 2.77 MB / 318.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001618/0.42, allocations: 0.5844 MB / 396.2 MB, free: 2.426 MB / 318.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003052/0.4203, allocations: 0.7433 MB / 397 MB, free: 1.723 MB / 318.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 6.478e-05/0.4204, allocations: 17.34 kB / 397 MB, free: 1.715 MB / 318.1 MB Notification: Performance of SimCode: time 1.292e-06/0.4204, allocations: 0 / 397 MB, free: 1.715 MB / 318.1 MB Notification: Performance of Templates: time 0.008908/0.4293, allocations: 4.129 MB / 401.1 MB, free: 0.5117 MB / 318.1 MB make -j1 -f Modelica_3.2.3_Modelica.Electrical.Analog.Examples.OvervoltageProtection.makefile (rm -f Modelica_3.2.3_Modelica.Electrical.Analog.Examples.OvervoltageProtection.pipe ; mkfifo Modelica_3.2.3_Modelica.Electrical.Analog.Examples.OvervoltageProtection.pipe ; head -c 1048576 < Modelica_3.2.3_Modelica.Electrical.Analog.Examples.OvervoltageProtection.pipe >> ../files/Modelica_3.2.3_Modelica.Electrical.Analog.Examples.OvervoltageProtection.sim & ./Modelica_3.2.3_Modelica.Electrical.Analog.Examples.OvervoltageProtection -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Modelica_3.2.3_Modelica.Electrical.Analog.Examples.OvervoltageProtection.pipe 2>&1) diffSimulationResults("Modelica_3.2.3_Modelica.Electrical.Analog.Examples.OvervoltageProtection_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v3.2.3+build.4/Modelica/Electrical/Analog/Examples/OvervoltageProtection/OvervoltageProtection.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_3.2.3_Modelica.Electrical.Analog.Examples.OvervoltageProtection.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches