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.001555/0.001554, allocations: 116.2 kB / 17.07 MB, free: 6.004 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.001581/0.001582, allocations: 190.9 kB / 18 MB, free: 5.082 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.605/1.605, allocations: 222.9 MB / 241.7 MB, free: 15.14 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001122/0.001122, allocations: 55.91 kB / 351.3 MB, free: 3.23 MB / 286.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.368/0.3691, allocations: 49.43 MB / 400.7 MB, free: 8.742 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Analog.Examples.OvervoltageProtection): time 0.00371/0.3729, allocations: 2.709 MB / 403.4 MB, free: 6.145 MB / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.001131/0.374, allocations: 0.67 MB / 404.1 MB, free: 5.469 MB / 318.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001116/0.3741, allocations: 4 kB / 404.1 MB, free: 5.465 MB / 318.1 MB Notification: Performance of NFTyping.typeComponents: time 0.000139/0.3743, allocations: 43.58 kB / 404.2 MB, free: 5.422 MB / 318.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001428/0.3745, allocations: 83.27 kB / 404.2 MB, free: 5.34 MB / 318.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002826/0.3747, allocations: 91.8 kB / 404.3 MB, free: 5.25 MB / 318.1 MB Notification: Performance of NFFlatten.flatten: time 0.0003443/0.3751, allocations: 362.5 kB / 404.7 MB, free: 4.895 MB / 318.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001958/0.3753, allocations: 88.7 kB / 404.8 MB, free: 4.805 MB / 318.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001995/0.3755, allocations: 135.5 kB / 404.9 MB, free: 4.672 MB / 318.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001962/0.3757, allocations: 163.4 kB / 405.1 MB, free: 4.512 MB / 318.1 MB Notification: Performance of NFPackage.collectConstants: time 4.788e-05/0.3758, allocations: 28 kB / 405.1 MB, free: 4.484 MB / 318.1 MB Notification: Performance of NFFlatten.collectFunctions: time 4.501e-05/0.3758, allocations: 32 kB / 405.1 MB, free: 4.453 MB / 318.1 MB Notification: Performance of NFScalarize.scalarize: time 6.259e-05/0.3759, allocations: 79.69 kB / 405.2 MB, free: 4.375 MB / 318.1 MB Notification: Performance of NFVerifyModel.verify: time 0.000137/0.376, allocations: 151.2 kB / 405.3 MB, free: 4.227 MB / 318.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0003144/0.3764, allocations: 340 kB / 405.7 MB, free: 3.898 MB / 318.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.566e-06/0.3764, allocations: 0 / 405.7 MB, free: 3.898 MB / 318.1 MB Notification: Performance of FrontEnd: time 9.82e-07/0.3764, allocations: 0 / 405.7 MB, free: 3.898 MB / 318.1 MB Notification: Performance of Transformations before backend: time 6.232e-06/0.3764, allocations: 0 / 405.7 MB, free: 3.898 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.00145/0.3778, allocations: 0.6393 MB / 406.3 MB, free: 3.211 MB / 318.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.871e-05/0.3779, allocations: 12.03 kB / 406.3 MB, free: 3.199 MB / 318.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 7.897e-05/0.378, allocations: 28.66 kB / 406.3 MB, free: 3.172 MB / 318.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003628/0.3783, allocations: 264.6 kB / 406.6 MB, free: 2.871 MB / 318.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.815e-05/0.3784, allocations: 16.8 kB / 406.6 MB, free: 2.855 MB / 318.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.584e-05/0.3784, allocations: 20.38 kB / 406.6 MB, free: 2.836 MB / 318.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0006665/0.3791, allocations: 302.9 kB / 406.9 MB, free: 2.523 MB / 318.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 9.077e-06/0.3791, allocations: 0 / 406.9 MB, free: 2.523 MB / 318.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.473e-05/0.3792, allocations: 12 kB / 407 MB, free: 2.512 MB / 318.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.634e-06/0.3792, allocations: 7.938 kB / 407 MB, free: 2.504 MB / 318.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0007809/0.38, allocations: 269.5 kB / 407.2 MB, free: 2.238 MB / 318.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001677/0.3816, allocations: 1.066 MB / 408.3 MB, free: 1.094 MB / 318.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001914/0.3836, allocations: 438.2 kB / 408.7 MB, free: 0.6562 MB / 318.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0004022/0.384, allocations: 147.5 kB / 408.9 MB, free: 0.5117 MB / 318.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.805e-05/0.384, allocations: 4 kB / 408.9 MB, free: 0.5078 MB / 318.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.9e-05/0.3841, allocations: 34.56 kB / 408.9 MB, free: 476 kB / 318.1 MB Notification: Performance of pre-optimization done (n=14): time 1.633e-06/0.3841, allocations: 0 / 408.9 MB, free: 476 kB / 318.1 MB Notification: Performance of matching and sorting (n=14): time 0.005012/0.3891, allocations: 1.026 MB / 409.9 MB, free: 15.41 MB / 334.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.393e-05/0.3892, allocations: 51.41 kB / 410 MB, free: 15.35 MB / 334.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002596/0.3894, allocations: 212.2 kB / 410.2 MB, free: 15.13 MB / 334.1 MB Notification: Performance of collectPreVariables (initialization): time 3.393e-05/0.3895, allocations: 29.7 kB / 410.2 MB, free: 15.09 MB / 334.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001149/0.3896, allocations: 156.1 kB / 410.4 MB, free: 14.94 MB / 334.1 MB Notification: Performance of collectInitialBindings (initialization): time 5.363e-05/0.3897, allocations: 51.3 kB / 410.4 MB, free: 14.89 MB / 334.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 8.473e-05/0.3898, allocations: 37.7 kB / 410.4 MB, free: 14.84 MB / 334.1 MB Notification: Performance of setup shared object (initialization): time 0.000136/0.3899, allocations: 334.8 kB / 410.8 MB, free: 14.51 MB / 334.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.000343/0.3902, allocations: 99.94 kB / 410.9 MB, free: 14.41 MB / 334.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003596/0.3906, allocations: 129.5 kB / 411 MB, free: 14.28 MB / 334.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0006727/0.3913, allocations: 232 kB / 411.2 MB, free: 14.04 MB / 334.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.595e-06/0.3913, allocations: 0 / 411.2 MB, free: 14.04 MB / 334.1 MB Notification: Performance of matching and sorting (n=18) (initialization): time 0.00287/0.3942, allocations: 0.6383 MB / 411.9 MB, free: 13.39 MB / 334.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.059e-05/0.3942, allocations: 11.94 kB / 411.9 MB, free: 13.38 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.662e-06/0.3942, allocations: 0 / 411.9 MB, free: 13.38 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0007226/0.395, allocations: 212.7 kB / 412.1 MB, free: 13.17 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001774/0.3952, allocations: 47.91 kB / 412.1 MB, free: 13.12 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.006895/0.4021, allocations: 2.739 MB / 414.9 MB, free: 10.25 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002983/0.4024, allocations: 39.84 kB / 414.9 MB, free: 10.21 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.925e-05/0.4024, allocations: 4 kB / 414.9 MB, free: 10.21 MB / 334.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.0001686/0.4026, allocations: 138.2 kB / 415 MB, free: 10.06 MB / 334.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.254e-05/0.4027, allocations: 23.88 kB / 415.1 MB, free: 10.04 MB / 334.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 5.182e-05/0.4027, allocations: 21.52 kB / 415.1 MB, free: 10.01 MB / 334.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.388e-06/0.4027, allocations: 4 kB / 415.1 MB, free: 10 MB / 334.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.194e-06/0.4027, allocations: 0 / 415.1 MB, free: 10 MB / 334.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.817e-06/0.4027, allocations: 0 / 415.1 MB, free: 10 MB / 334.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0003785/0.4031, allocations: 333.2 kB / 415.4 MB, free: 9.629 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.234e-06/0.4031, allocations: 0 / 415.4 MB, free: 9.629 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001565/0.4033, allocations: 23.98 kB / 415.4 MB, free: 9.605 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0006598/0.404, allocations: 228.6 kB / 415.7 MB, free: 9.379 MB / 334.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.93e-05/0.404, allocations: 0 / 415.7 MB, free: 9.379 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.006628/0.4106, allocations: 2.735 MB / 418.4 MB, free: 6.508 MB / 334.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.276e-06/0.4107, allocations: 7.922 kB / 418.4 MB, free: 6.5 MB / 334.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.003262/0.4139, allocations: 0.8317 MB / 419.2 MB, free: 5.648 MB / 334.1 MB Notification: Performance of postOpt removeConstants (simulation): time 9.635e-05/0.4141, allocations: 100.8 kB / 419.3 MB, free: 5.531 MB / 334.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.916e-05/0.4141, allocations: 8.062 kB / 419.3 MB, free: 5.523 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003019/0.4144, allocations: 31.97 kB / 419.4 MB, free: 5.492 MB / 334.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.444e-05/0.4145, allocations: 11.98 kB / 419.4 MB, free: 5.48 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.85e-05/0.4145, allocations: 7.938 kB / 419.4 MB, free: 5.473 MB / 334.1 MB Notification: Performance of sorting global known variables: time 0.0001571/0.4147, allocations: 161.8 kB / 419.6 MB, free: 5.316 MB / 334.1 MB Notification: Performance of sort global known variables: time 1.31e-07/0.4147, allocations: 0 / 419.6 MB, free: 5.316 MB / 334.1 MB Notification: Performance of remove unused functions: time 0.0004929/0.4152, allocations: 79.84 kB / 419.6 MB, free: 5.238 MB / 334.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.0001566/0.4153, allocations: 104.6 kB / 419.7 MB, free: 5.129 MB / 334.1 MB Notification: Performance of simCode: created initialization part: time 0.001638/0.417, allocations: 453.8 kB / 420.2 MB, free: 4.676 MB / 334.1 MB Notification: Performance of simCode: created event and clocks part: time 3.256e-06/0.417, allocations: 0 / 420.2 MB, free: 4.676 MB / 334.1 MB Notification: Performance of simCode: created simulation system equations: time 0.001094/0.4181, allocations: 330.5 kB / 420.5 MB, free: 4.34 MB / 334.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003857/0.4185, allocations: 40.59 kB / 420.5 MB, free: 4.301 MB / 334.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001386/0.4199, allocations: 0.5487 MB / 421.1 MB, free: 3.727 MB / 334.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003429/0.4202, allocations: 0.7398 MB / 421.8 MB, free: 2.961 MB / 334.1 MB Notification: Performance of simCode: alias equations: time 9.094e-05/0.4203, allocations: 17.55 kB / 421.8 MB, free: 2.938 MB / 334.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.505e-05/0.4204, allocations: 15.44 kB / 421.9 MB, free: 2.922 MB / 334.1 MB Notification: Performance of SimCode: time 6.11e-07/0.4204, allocations: 3.938 kB / 421.9 MB, free: 2.918 MB / 334.1 MB Notification: Performance of Templates: time 0.009884/0.4303, allocations: 4.948 MB / 426.8 MB, free: 13.98 MB / 350.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","/var/lib/jenkins/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