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) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001398/0.001398, allocations: 100 kB / 21.18 MB, free: 0.6484 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001461/0.001461, allocations: 185.8 kB / 24.45 MB, free: 3.961 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.435/1.435, allocations: 225.7 MB / 253.3 MB, free: 12.81 MB / 206.1 MB " [Timeout remaining time 178] 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=5002,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=5002,variableFilter="time|CL.v",fileNamePrefix="Modelica_4.0.0_Modelica.Electrical.Analog.Examples.OvervoltageProtection") [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 0.001645/0.001645, allocations: 47.91 kB / 371.6 MB, free: 9.164 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2921/0.2938, allocations: 52.17 MB / 423.8 MB, free: 14.47 MB / 334.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Analog.Examples.OvervoltageProtection): time 0.004103/0.2979, allocations: 2.542 MB / 426.4 MB, free: 11.92 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.001196/0.2991, allocations: 0.635 MB / 427 MB, free: 11.28 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001067/0.2992, allocations: 4 kB / 427 MB, free: 11.28 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001436/0.2993, allocations: 47.56 kB / 427 MB, free: 11.23 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001522/0.2995, allocations: 79.28 kB / 427.1 MB, free: 11.15 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002996/0.2998, allocations: 103.8 kB / 427.2 MB, free: 11.05 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.0004111/0.3002, allocations: 354.5 kB / 427.6 MB, free: 10.7 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001919/0.3004, allocations: 60.89 kB / 427.6 MB, free: 10.64 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002303/0.3006, allocations: 143.5 kB / 427.8 MB, free: 10.5 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002097/0.3008, allocations: 147.3 kB / 427.9 MB, free: 10.36 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 5.545e-05/0.3009, allocations: 28 kB / 427.9 MB, free: 10.33 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 6.672e-05/0.3009, allocations: 32 kB / 428 MB, free: 10.3 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 7.305e-05/0.301, allocations: 71.75 kB / 428 MB, free: 10.23 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 0.000135/0.3011, allocations: 127.4 kB / 428.2 MB, free: 10.1 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0003982/0.3015, allocations: 337.7 kB / 428.5 MB, free: 9.773 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 7.353e-06/0.3016, allocations: 3.984 kB / 428.5 MB, free: 9.77 MB / 334.1 MB Notification: Performance of FrontEnd: time 1.894e-06/0.3016, allocations: 0 / 428.5 MB, free: 9.77 MB / 334.1 MB Notification: Performance of Transformations before backend: time 1.277e-05/0.3016, allocations: 0 / 428.5 MB, free: 9.77 MB / 334.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.001473/0.303, allocations: 0.5793 MB / 429.1 MB, free: 9.16 MB / 334.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.055e-05/0.3031, allocations: 8.031 kB / 429.1 MB, free: 9.152 MB / 334.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 7.301e-05/0.3032, allocations: 32.75 kB / 429.1 MB, free: 9.121 MB / 334.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003732/0.3035, allocations: 203 kB / 429.3 MB, free: 8.895 MB / 334.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.949e-05/0.3035, allocations: 12.81 kB / 429.3 MB, free: 8.883 MB / 334.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 5.23e-05/0.3036, allocations: 20.38 kB / 429.3 MB, free: 8.863 MB / 334.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0007429/0.3043, allocations: 358.2 kB / 429.7 MB, free: 8.484 MB / 334.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.188e-05/0.3044, allocations: 0 / 429.7 MB, free: 8.484 MB / 334.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.153e-05/0.3044, allocations: 12 kB / 429.7 MB, free: 8.473 MB / 334.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.81e-05/0.3044, allocations: 7.984 kB / 429.7 MB, free: 8.465 MB / 334.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0007944/0.3052, allocations: 273.5 kB / 430 MB, free: 8.195 MB / 334.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001682/0.3069, allocations: 0.9147 MB / 430.9 MB, free: 7.223 MB / 334.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001997/0.3089, allocations: 434.2 kB / 431.3 MB, free: 6.789 MB / 334.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0004041/0.3093, allocations: 132.8 kB / 431.5 MB, free: 6.656 MB / 334.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.57e-05/0.3093, allocations: 4 kB / 431.5 MB, free: 6.652 MB / 334.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.974e-05/0.3093, allocations: 34.56 kB / 431.5 MB, free: 6.609 MB / 334.1 MB Notification: Performance of pre-optimization done (n=14): time 1.392e-06/0.3093, allocations: 0 / 431.5 MB, free: 6.609 MB / 334.1 MB Notification: Performance of matching and sorting (n=14): time 0.004987/0.3143, allocations: 0.9431 MB / 432.4 MB, free: 5.656 MB / 334.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.687e-05/0.3144, allocations: 55.41 kB / 432.5 MB, free: 5.59 MB / 334.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002408/0.3146, allocations: 203 kB / 432.7 MB, free: 5.383 MB / 334.1 MB Notification: Performance of collectPreVariables (initialization): time 3.268e-05/0.3147, allocations: 29.7 kB / 432.7 MB, free: 5.348 MB / 334.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001247/0.3148, allocations: 168.3 kB / 432.9 MB, free: 5.18 MB / 334.1 MB Notification: Performance of collectInitialBindings (initialization): time 5.154e-05/0.3148, allocations: 51.53 kB / 432.9 MB, free: 5.129 MB / 334.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 8.175e-05/0.3149, allocations: 37.7 kB / 433 MB, free: 5.086 MB / 334.1 MB Notification: Performance of setup shared object (initialization): time 0.0001677/0.3151, allocations: 334.8 kB / 433.3 MB, free: 4.75 MB / 334.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003525/0.3154, allocations: 99.94 kB / 433.4 MB, free: 4.652 MB / 334.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003658/0.3158, allocations: 129.6 kB / 433.5 MB, free: 4.52 MB / 334.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0007098/0.3165, allocations: 236.7 kB / 433.7 MB, free: 4.285 MB / 334.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.655e-06/0.3165, allocations: 0 / 433.7 MB, free: 4.285 MB / 334.1 MB Notification: Performance of matching and sorting (n=18) (initialization): time 0.002882/0.3194, allocations: 0.6307 MB / 434.4 MB, free: 3.645 MB / 334.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.954e-05/0.3194, allocations: 4 kB / 434.4 MB, free: 3.641 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.371e-06/0.3194, allocations: 4 kB / 434.4 MB, free: 3.637 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0007658/0.3202, allocations: 216.7 kB / 434.6 MB, free: 3.422 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001723/0.3204, allocations: 31.97 kB / 434.6 MB, free: 3.391 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.006866/0.3272, allocations: 2.597 MB / 437.2 MB, free: 0.6914 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002831/0.3275, allocations: 35.91 kB / 437.3 MB, free: 0.6562 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.412e-05/0.3275, allocations: 7.984 kB / 437.3 MB, free: 0.6484 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.0001767/0.3277, allocations: 133.8 kB / 437.4 MB, free: 0.5078 MB / 334.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.322e-05/0.3278, allocations: 23.92 kB / 437.4 MB, free: 496 kB / 334.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 5.849e-05/0.3278, allocations: 29.52 kB / 437.5 MB, free: 460 kB / 334.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.977e-06/0.3278, allocations: 4 kB / 437.5 MB, free: 456 kB / 334.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.777e-06/0.3278, allocations: 0 / 437.5 MB, free: 456 kB / 334.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.948e-06/0.3278, allocations: 3.938 kB / 437.5 MB, free: 452 kB / 334.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0003369/0.3282, allocations: 217.1 kB / 437.7 MB, free: 204 kB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.689e-06/0.3282, allocations: 4 kB / 437.7 MB, free: 200 kB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.000156/0.3283, allocations: 23.98 kB / 437.7 MB, free: 176 kB / 334.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.000696/0.329, allocations: 232.5 kB / 437.9 MB, free: 15.94 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.588e-05/0.329, allocations: 4 kB / 437.9 MB, free: 15.94 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.006759/0.3358, allocations: 2.579 MB / 440.5 MB, free: 13.26 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.667e-06/0.3358, allocations: 3.938 kB / 440.5 MB, free: 13.25 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.003268/0.3391, allocations: 0.838 MB / 441.4 MB, free: 12.4 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 4.534e-05/0.3391, allocations: 19.86 kB / 441.4 MB, free: 12.38 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.185e-05/0.3392, allocations: 4 kB / 441.4 MB, free: 12.38 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002859/0.3394, allocations: 36.03 kB / 441.4 MB, free: 12.34 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.118e-05/0.3395, allocations: 15.92 kB / 441.4 MB, free: 12.32 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.725e-05/0.3395, allocations: 4 kB / 441.4 MB, free: 12.32 MB / 350.1 MB Notification: Performance of sorting global known variables: time 0.0001519/0.3397, allocations: 152.5 kB / 441.6 MB, free: 12.17 MB / 350.1 MB Notification: Performance of sort global known variables: time 8.1e-08/0.3397, allocations: 0 / 441.6 MB, free: 12.17 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.0004742/0.3401, allocations: 83.83 kB / 441.7 MB, free: 12.09 MB / 350.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.0001274/0.3403, allocations: 107.2 kB / 441.8 MB, free: 11.98 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.001567/0.3418, allocations: 438.2 kB / 442.2 MB, free: 11.54 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 2.655e-06/0.3418, allocations: 0 / 442.2 MB, free: 11.54 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 0.001079/0.3429, allocations: 330.5 kB / 442.5 MB, free: 11.2 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003365/0.3432, allocations: 26.91 kB / 442.5 MB, free: 11.18 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001389/0.3446, allocations: 0.5879 MB / 443.1 MB, free: 10.55 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001287/0.3448, allocations: 133.9 kB / 443.3 MB, free: 10.41 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 5.077e-05/0.3448, allocations: 19.38 kB / 443.3 MB, free: 10.39 MB / 350.1 MB Notification: Performance of SimCode: time 3.1e-07/0.3448, allocations: 0 / 443.3 MB, free: 10.39 MB / 350.1 MB Notification: Performance of Templates: time 0.006825/0.3516, allocations: 4.093 MB / 447.4 MB, free: 6.297 MB / 350.1 MB " [Timeout remaining time 660] make -j1 -f Modelica_4.0.0_Modelica.Electrical.Analog.Examples.OvervoltageProtection.makefile [Timeout 660] (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) [Timeout 480] 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) [Timeout 660] "" [Timeout remaining time 660] Reference file matches [Calling sys.exit(0), Time elapsed: 7.406056022737175]