Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.1.0_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.001339/0.001339, allocations: 111.1 kB / 20.44 MB, free: 1.348 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.001488/0.001488, allocations: 211.2 kB / 23.72 MB, free: 4.527 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo): time 1.435/1.435, allocations: 230.6 MB / 257.5 MB, free: 7.812 MB / 206.1 MB " [Timeout remaining time 178] Using package Modelica with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+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_4_1_0_Modelica_Electrical_Analog_Examples_OvervoltageProtection",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Electrical.Analog.Examples.OvervoltageProtection,fileNamePrefix="Modelica_4_1_0_Modelica_Electrical_Analog_Examples_OvervoltageProtection",fmuType="me",version="2.0",platforms={"static"}) [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 0.002431/0.002431, allocations: 51.91 kB / 377.7 MB, free: 3.102 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2966/0.299, allocations: 53.36 MB / 431.1 MB, free: 6.707 MB / 334.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Analog.Examples.OvervoltageProtection): time 0.004204/0.3032, allocations: 2.563 MB / 433.6 MB, free: 4.137 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.001323/0.3046, allocations: 0.6817 MB / 434.3 MB, free: 3.449 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001159/0.3047, allocations: 4 kB / 434.3 MB, free: 3.445 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001451/0.3048, allocations: 43.56 kB / 434.4 MB, free: 3.402 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001568/0.305, allocations: 75.28 kB / 434.4 MB, free: 3.328 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003453/0.3053, allocations: 115.8 kB / 434.6 MB, free: 3.215 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.0004137/0.3057, allocations: 358.5 kB / 434.9 MB, free: 2.863 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.000169/0.3059, allocations: 64.89 kB / 435 MB, free: 2.797 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002747/0.3062, allocations: 151.5 kB / 435.1 MB, free: 2.648 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002004/0.3064, allocations: 139.4 kB / 435.3 MB, free: 2.512 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 5.203e-05/0.3064, allocations: 32 kB / 435.3 MB, free: 2.48 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 8.714e-05/0.3065, allocations: 32 kB / 435.3 MB, free: 2.449 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001109/0.3066, allocations: 75.73 kB / 435.4 MB, free: 2.375 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001266/0.3068, allocations: 119.5 kB / 435.5 MB, free: 2.258 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0004275/0.3072, allocations: 355 kB / 435.9 MB, free: 1.914 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.418e-06/0.3072, allocations: 0 / 435.9 MB, free: 1.914 MB / 334.1 MB Notification: Performance of FrontEnd: time 1.954e-06/0.3072, allocations: 0 / 435.9 MB, free: 1.914 MB / 334.1 MB Notification: Performance of Transformations before backend: time 7.134e-06/0.3072, allocations: 4 kB / 435.9 MB, free: 1.91 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.001453/0.3087, allocations: 0.5742 MB / 436.4 MB, free: 1.309 MB / 334.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.149e-05/0.3087, allocations: 11.97 kB / 436.4 MB, free: 1.297 MB / 334.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 7.933e-05/0.3088, allocations: 58.73 kB / 436.5 MB, free: 1.23 MB / 334.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001694/0.309, allocations: 40.73 kB / 436.5 MB, free: 1.191 MB / 334.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003987/0.3094, allocations: 211 kB / 436.7 MB, free: 0.957 MB / 334.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.892e-05/0.3094, allocations: 12.81 kB / 436.8 MB, free: 0.9453 MB / 334.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.622e-05/0.3094, allocations: 20.38 kB / 436.8 MB, free: 0.9258 MB / 334.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0007115/0.3101, allocations: 350.2 kB / 437.1 MB, free: 0.5586 MB / 334.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.27e-05/0.3101, allocations: 3.938 kB / 437.1 MB, free: 0.5547 MB / 334.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.661e-05/0.3102, allocations: 4 kB / 437.1 MB, free: 0.5508 MB / 334.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.504e-06/0.3102, allocations: 12 kB / 437.1 MB, free: 0.5391 MB / 334.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0007584/0.3109, allocations: 265.6 kB / 437.4 MB, free: 284 kB / 334.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0017/0.3126, allocations: 0.9725 MB / 438.4 MB, free: 15.23 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001866/0.3145, allocations: 422.3 kB / 438.8 MB, free: 14.81 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003991/0.3149, allocations: 140.7 kB / 438.9 MB, free: 14.67 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.319e-05/0.3149, allocations: 0 / 438.9 MB, free: 14.67 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.185e-05/0.315, allocations: 42.5 kB / 439 MB, free: 14.62 MB / 350.1 MB Notification: Performance of pre-optimization done (n=14): time 1.243e-06/0.315, allocations: 0 / 439 MB, free: 14.62 MB / 350.1 MB Notification: Performance of matching and sorting (n=14): time 0.004757/0.3197, allocations: 0.9431 MB / 439.9 MB, free: 13.67 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.611e-05/0.3198, allocations: 51.41 kB / 440 MB, free: 13.61 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002346/0.32, allocations: 236.8 kB / 440.2 MB, free: 13.37 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 3.125e-05/0.32, allocations: 29.7 kB / 440.2 MB, free: 13.33 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.000117/0.3201, allocations: 160.2 kB / 440.4 MB, free: 13.17 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 5.259e-05/0.3202, allocations: 51.53 kB / 440.4 MB, free: 13.12 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 7.851e-05/0.3203, allocations: 33.7 kB / 440.5 MB, free: 13.08 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 0.0001498/0.3204, allocations: 334.8 kB / 440.8 MB, free: 12.75 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003408/0.3208, allocations: 103.9 kB / 440.9 MB, free: 12.64 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003482/0.3211, allocations: 128.4 kB / 441 MB, free: 12.52 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0006635/0.3218, allocations: 225.6 kB / 441.2 MB, free: 12.29 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.35e-06/0.3218, allocations: 3.938 kB / 441.2 MB, free: 12.29 MB / 350.1 MB Notification: Performance of matching and sorting (n=18) (initialization): time 0.002788/0.3246, allocations: 0.6296 MB / 441.9 MB, free: 11.65 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.946e-05/0.3246, allocations: 8 kB / 441.9 MB, free: 11.64 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.302e-06/0.3246, allocations: 0 / 441.9 MB, free: 11.64 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0007152/0.3253, allocations: 216.6 kB / 442.1 MB, free: 11.43 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001772/0.3255, allocations: 51.91 kB / 442.1 MB, free: 11.38 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.006847/0.3323, allocations: 2.612 MB / 444.7 MB, free: 8.648 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002882/0.3326, allocations: 35.89 kB / 444.8 MB, free: 8.613 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.283e-05/0.3326, allocations: 8.062 kB / 444.8 MB, free: 8.605 MB / 350.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.0001745/0.3328, allocations: 139.7 kB / 444.9 MB, free: 8.461 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.048e-05/0.3329, allocations: 19.84 kB / 444.9 MB, free: 8.441 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 5.25e-05/0.3329, allocations: 25.77 kB / 445 MB, free: 8.414 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.793e-06/0.3329, allocations: 4 kB / 445 MB, free: 8.41 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.004e-06/0.3329, allocations: 0 / 445 MB, free: 8.41 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.795e-06/0.3329, allocations: 0 / 445 MB, free: 8.41 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0003761/0.3333, allocations: 264.5 kB / 445.2 MB, free: 8.109 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.033e-06/0.3333, allocations: 0 / 445.2 MB, free: 8.109 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001531/0.3335, allocations: 31.98 kB / 445.3 MB, free: 8.078 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0006641/0.3341, allocations: 216.7 kB / 445.5 MB, free: 7.863 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.115e-05/0.3341, allocations: 11.92 kB / 445.5 MB, free: 7.852 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.006583/0.3407, allocations: 2.624 MB / 448.1 MB, free: 5.113 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.192e-06/0.3407, allocations: 0 / 448.1 MB, free: 5.113 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.003182/0.3439, allocations: 0.8502 MB / 449 MB, free: 4.246 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 4.789e-05/0.344, allocations: 15.89 kB / 449 MB, free: 4.23 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.022e-05/0.344, allocations: 0 / 449 MB, free: 4.23 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.00028/0.3443, allocations: 35.97 kB / 449 MB, free: 4.195 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.847e-05/0.3443, allocations: 11.97 kB / 449 MB, free: 4.184 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.939e-05/0.3443, allocations: 8 kB / 449 MB, free: 4.176 MB / 350.1 MB Notification: Performance of sorting global known variables: time 0.0001597/0.3445, allocations: 156.5 kB / 449.2 MB, free: 4.02 MB / 350.1 MB Notification: Performance of sort global known variables: time 9e-08/0.3445, allocations: 4.062 kB / 449.2 MB, free: 4.016 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.0004436/0.3449, allocations: 83.89 kB / 449.3 MB, free: 3.934 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.003514/0.3485, allocations: 1.381 MB / 450.7 MB, free: 2.52 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.001519/0.35, allocations: 434.4 kB / 451.1 MB, free: 2.082 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 2.966e-06/0.35, allocations: 0 / 451.1 MB, free: 2.082 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 0.001053/0.351, allocations: 334.4 kB / 451.4 MB, free: 1.742 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003604/0.3514, allocations: 32.59 kB / 451.4 MB, free: 1.711 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.008513/0.3599, allocations: 3.363 MB / 454.8 MB, free: 14.26 MB / 366.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001338/0.36, allocations: 129.8 kB / 454.9 MB, free: 14.11 MB / 366.1 MB Notification: Performance of simCode: alias equations: time 8.589e-05/0.3601, allocations: 17.48 kB / 454.9 MB, free: 14.09 MB / 366.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.000112/0.3602, allocations: 67.41 kB / 455 MB, free: 14.03 MB / 366.1 MB Notification: Performance of SimCode: time 1.002e-06/0.3602, allocations: 0 / 455 MB, free: 14.03 MB / 366.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.03989/0.4001, allocations: 7.924 MB / 462.9 MB, free: 6.25 MB / 366.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 12.46/12.86, allocations: 7.922 kB / 462.9 MB, free: 6.242 MB / 366.1 MB " [Timeout remaining time 647] (rm -f Modelica_4.1.0_Modelica.Electrical.Analog.Examples.OvervoltageProtection.pipe ; mkfifo Modelica_4.1.0_Modelica.Electrical.Analog.Examples.OvervoltageProtection.pipe ; head -c 1048576 < Modelica_4.1.0_Modelica.Electrical.Analog.Examples.OvervoltageProtection.pipe >> ../files/Modelica_4.1.0_Modelica.Electrical.Analog.Examples.OvervoltageProtection.sim & python3 -m fmpy simulate --output-file Modelica_4.1.0_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_4_1_0_Modelica_Electrical_Analog_Examples_OvervoltageProtection.fmu > Modelica_4.1.0_Modelica.Electrical.Analog.Examples.OvervoltageProtection.pipe 2>&1) [Timeout 52.5] diffSimulationResults("Modelica_4.1.0_Modelica.Electrical.Analog.Examples.OvervoltageProtection_res.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.1.0/Modelica/Electrical/Analog/Examples/OvervoltageProtection/OvervoltageProtection.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_4.1.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: 15.485261126887053]