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.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo): time 0.002013/0.002013, allocations: 109.6 kB / 21.18 MB, free: 0.6992 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo): time 0.002682/0.002682, allocations: 216.7 kB / 24.5 MB, free: 4.027 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.601/1.601, allocations: 207.6 MB / 235.3 MB, free: 10.01 MB / 190.1 MB " [Timeout remaining time 178] 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.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo) Using package ModelicaServices with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo) Running command: "" <> buildModelFMU(Modelica.Electrical.Analog.Examples.OvervoltageProtection,fileNamePrefix="Modelica_3_2_3_Modelica_Electrical_Analog_Examples_OvervoltageProtection",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Electrical.Analog.Examples.OvervoltageProtection,fileNamePrefix="Modelica_3_2_3_Modelica_Electrical_Analog_Examples_OvervoltageProtection",fmuType="me",version="2.0",platforms={"static"}) [Timeout 660] "Notification: Modelica requested package Complex of version 3.2.3. Complex 4.1.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.1.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Performance of FrontEnd - loaded program: time 0.001861/0.001861, allocations: 51.92 kB / 347.2 MB, free: 10.13 MB / 286.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3173/0.3192, allocations: 49.16 MB / 396.4 MB, free: 8.957 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Analog.Examples.OvervoltageProtection): time 0.003849/0.323, allocations: 2.686 MB / 399 MB, free: 7.09 MB / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.001116/0.3241, allocations: 0.7239 MB / 399.8 MB, free: 6.57 MB / 318.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001251/0.3243, allocations: 4 kB / 399.8 MB, free: 6.57 MB / 318.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001499/0.3244, allocations: 41.02 kB / 399.8 MB, free: 6.547 MB / 318.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001287/0.3245, allocations: 79.2 kB / 399.9 MB, free: 6.488 MB / 318.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002762/0.3248, allocations: 103.6 kB / 400 MB, free: 6.43 MB / 318.1 MB Notification: Performance of NFFlatten.flatten: time 0.0003376/0.3252, allocations: 361.2 kB / 400.3 MB, free: 6.254 MB / 318.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001766/0.3253, allocations: 76.19 kB / 400.4 MB, free: 6.211 MB / 318.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001957/0.3255, allocations: 145.9 kB / 400.6 MB, free: 6.145 MB / 318.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001991/0.3257, allocations: 161.1 kB / 400.7 MB, free: 6.07 MB / 318.1 MB Notification: Performance of NFPackage.collectConstants: time 5.279e-05/0.3258, allocations: 31.31 kB / 400.7 MB, free: 6.07 MB / 318.1 MB Notification: Performance of NFFlatten.collectFunctions: time 5.307e-05/0.3258, allocations: 31.03 kB / 400.8 MB, free: 6.07 MB / 318.1 MB Notification: Performance of NFScalarize.scalarize: time 5.659e-05/0.3259, allocations: 69.69 kB / 400.8 MB, free: 6.023 MB / 318.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001288/0.326, allocations: 150.7 kB / 401 MB, free: 5.934 MB / 318.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0004016/0.3264, allocations: 343.9 kB / 401.3 MB, free: 5.801 MB / 318.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.477e-06/0.3264, allocations: 0 / 401.3 MB, free: 5.801 MB / 318.1 MB Notification: Performance of FrontEnd: time 1.192e-06/0.3264, allocations: 1.281 kB / 401.3 MB, free: 5.801 MB / 318.1 MB Notification: Performance of Transformations before backend: time 1.285e-05/0.3264, allocations: 0 / 401.3 MB, free: 5.801 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.001475/0.3279, allocations: 0.5702 MB / 401.9 MB, free: 5.41 MB / 318.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.927e-05/0.328, allocations: 13.61 kB / 401.9 MB, free: 5.406 MB / 318.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 5.248e-05/0.328, allocations: 61.2 kB / 402 MB, free: 5.348 MB / 318.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 6.054e-05/0.3281, allocations: 31.78 kB / 402 MB, free: 5.332 MB / 318.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003211/0.3284, allocations: 197.1 kB / 402.2 MB, free: 5.152 MB / 318.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.748e-05/0.3284, allocations: 13 kB / 402.2 MB, free: 5.148 MB / 318.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.709e-05/0.3285, allocations: 22 kB / 402.2 MB, free: 5.141 MB / 318.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0006473/0.3291, allocations: 305.4 kB / 402.5 MB, free: 4.996 MB / 318.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.876e-05/0.3291, allocations: 0.9375 kB / 402.5 MB, free: 4.996 MB / 318.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.786e-05/0.3292, allocations: 6.906 kB / 402.5 MB, free: 4.992 MB / 318.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.015e-06/0.3292, allocations: 4.562 kB / 402.5 MB, free: 4.992 MB / 318.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.000762/0.3299, allocations: 270.1 kB / 402.8 MB, free: 4.922 MB / 318.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001447/0.3314, allocations: 1.028 MB / 403.8 MB, free: 4.18 MB / 318.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001934/0.3333, allocations: 430.5 kB / 404.3 MB, free: 4.078 MB / 318.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003716/0.3337, allocations: 136.1 kB / 404.4 MB, free: 4.035 MB / 318.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.802e-05/0.3337, allocations: 2.281 kB / 404.4 MB, free: 4.035 MB / 318.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.699e-05/0.3337, allocations: 36.56 kB / 404.4 MB, free: 3.992 MB / 318.1 MB Notification: Performance of pre-optimization done (n=14): time 1.352e-06/0.3337, allocations: 0 / 404.4 MB, free: 3.992 MB / 318.1 MB Notification: Performance of matching and sorting (n=14): time 0.004947/0.3387, allocations: 0.9481 MB / 405.4 MB, free: 3.82 MB / 318.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 2.504e-05/0.3387, allocations: 57.64 kB / 405.4 MB, free: 3.754 MB / 318.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002028/0.3389, allocations: 213.6 kB / 405.6 MB, free: 3.617 MB / 318.1 MB Notification: Performance of collectPreVariables (initialization): time 2.294e-05/0.3389, allocations: 27.08 kB / 405.7 MB, free: 3.586 MB / 318.1 MB Notification: Performance of collectInitialEqns (initialization): time 7.177e-05/0.339, allocations: 158.8 kB / 405.8 MB, free: 3.445 MB / 318.1 MB Notification: Performance of collectInitialBindings (initialization): time 3.619e-05/0.339, allocations: 52.89 kB / 405.9 MB, free: 3.402 MB / 318.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 7.46e-05/0.3391, allocations: 39.05 kB / 405.9 MB, free: 3.375 MB / 318.1 MB Notification: Performance of setup shared object (initialization): time 5.283e-05/0.3392, allocations: 329.7 kB / 406.2 MB, free: 3.055 MB / 318.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003238/0.3395, allocations: 106.6 kB / 406.3 MB, free: 3.027 MB / 318.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003257/0.3398, allocations: 129.3 kB / 406.5 MB, free: 2.977 MB / 318.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0006116/0.3404, allocations: 233 kB / 406.7 MB, free: 2.891 MB / 318.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.905e-06/0.3404, allocations: 3.938 kB / 406.7 MB, free: 2.887 MB / 318.1 MB Notification: Performance of matching and sorting (n=18) (initialization): time 0.002814/0.3432, allocations: 0.6357 MB / 407.3 MB, free: 2.742 MB / 318.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.264e-05/0.3433, allocations: 5.625 kB / 407.3 MB, free: 2.742 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.225e-06/0.3433, allocations: 0 / 407.3 MB, free: 2.742 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.000701/0.344, allocations: 220.3 kB / 407.5 MB, free: 2.691 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001764/0.3441, allocations: 36.8 kB / 407.6 MB, free: 2.688 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.006565/0.3507, allocations: 2.635 MB / 410.2 MB, free: 0.9297 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003284/0.351, allocations: 39.73 kB / 410.3 MB, free: 0.9102 MB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.945e-05/0.3511, allocations: 3.5 kB / 410.3 MB, free: 0.9102 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.0001462/0.3512, allocations: 134.9 kB / 410.4 MB, free: 0.7773 MB / 318.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.019e-05/0.3513, allocations: 26.2 kB / 410.4 MB, free: 0.7617 MB / 318.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 4.377e-05/0.3513, allocations: 26.14 kB / 410.4 MB, free: 0.7344 MB / 318.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.176e-06/0.3513, allocations: 1.938 kB / 410.4 MB, free: 0.7344 MB / 318.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.625e-06/0.3513, allocations: 0 / 410.4 MB, free: 0.7344 MB / 318.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.439e-06/0.3513, allocations: 0.8438 kB / 410.4 MB, free: 0.7344 MB / 318.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0003087/0.3516, allocations: 307.1 kB / 410.7 MB, free: 464 kB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.066e-06/0.3516, allocations: 1.188 kB / 410.7 MB, free: 464 kB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001574/0.3518, allocations: 29.91 kB / 410.8 MB, free: 456 kB / 318.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.00062/0.3524, allocations: 219.2 kB / 411 MB, free: 352 kB / 318.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.162e-05/0.3524, allocations: 9.656 kB / 411 MB, free: 344 kB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.006738/0.3592, allocations: 2.628 MB / 413.6 MB, free: 14.35 MB / 334.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.488e-06/0.3592, allocations: 3.938 kB / 413.6 MB, free: 14.35 MB / 334.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.003407/0.3626, allocations: 0.8429 MB / 414.5 MB, free: 13.91 MB / 334.1 MB Notification: Performance of postOpt removeConstants (simulation): time 9.232e-05/0.3627, allocations: 24.7 kB / 414.5 MB, free: 13.89 MB / 334.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.398e-05/0.3627, allocations: 5.281 kB / 414.5 MB, free: 13.89 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003122/0.363, allocations: 34.34 kB / 414.5 MB, free: 13.88 MB / 334.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.295e-05/0.3631, allocations: 7.578 kB / 414.5 MB, free: 13.87 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.176e-05/0.3631, allocations: 6.797 kB / 414.5 MB, free: 13.87 MB / 334.1 MB Notification: Performance of sorting global known variables: time 0.0001863/0.3633, allocations: 159.6 kB / 414.7 MB, free: 13.75 MB / 334.1 MB Notification: Performance of sort global known variables: time 1.21e-07/0.3633, allocations: 0 / 414.7 MB, free: 13.75 MB / 334.1 MB Notification: Performance of remove unused functions: time 0.0005378/0.3638, allocations: 86.5 kB / 414.8 MB, free: 13.73 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.00396/0.3678, allocations: 1.378 MB / 416.2 MB, free: 12.77 MB / 334.1 MB Notification: Performance of simCode: created initialization part: time 0.001713/0.3695, allocations: 447.9 kB / 416.6 MB, free: 12.52 MB / 334.1 MB Notification: Performance of simCode: created event and clocks part: time 5.38e-06/0.3695, allocations: 1.031 kB / 416.6 MB, free: 12.52 MB / 334.1 MB Notification: Performance of simCode: created simulation system equations: time 0.001153/0.3706, allocations: 327.9 kB / 416.9 MB, free: 12.32 MB / 334.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004453/0.3711, allocations: 31.19 kB / 417 MB, free: 12.3 MB / 334.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.009503/0.3806, allocations: 3.338 MB / 420.3 MB, free: 10.11 MB / 334.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000425/0.381, allocations: 0.7487 MB / 421 MB, free: 9.383 MB / 334.1 MB Notification: Performance of simCode: alias equations: time 0.0001052/0.3811, allocations: 12.86 kB / 421.1 MB, free: 9.375 MB / 334.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001235/0.3812, allocations: 71.56 kB / 421.1 MB, free: 9.312 MB / 334.1 MB Notification: Performance of SimCode: time 1.102e-06/0.3812, allocations: 0 / 421.1 MB, free: 9.312 MB / 334.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.04228/0.4235, allocations: 7.483 MB / 428.6 MB, free: 2.297 MB / 334.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 13.38/13.81, allocations: 11.8 kB / 428.6 MB, free: 2.285 MB / 334.1 MB " [Timeout remaining time 646] (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 & python3 -m fmpy simulate --output-file Modelica_3.2.3_Modelica.Electrical.Analog.Examples.OvervoltageProtection_res.csv --start-time 0 --stop-time 0.4 --timeout 50 --relative-tolerance 1e-06 --interface-type ModelExchange --solver CVode --output-interval 7.9968e-05 Modelica_3_2_3_Modelica_Electrical_Analog_Examples_OvervoltageProtection.fmu > Modelica_3.2.3_Modelica.Electrical.Analog.Examples.OvervoltageProtection.pipe 2>&1) [Timeout 52.5] diffSimulationResults("Modelica_3.2.3_Modelica.Electrical.Analog.Examples.OvervoltageProtection_res.csv","/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) [Timeout 660] "" [Timeout remaining time 660] Reference file matches [Calling sys.exit(0), Time elapsed: 16.702350638995995]