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.001381/0.001381, allocations: 109.5 kB / 20.43 MB, free: 1.449 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.001479/0.001479, allocations: 186.4 kB / 23.72 MB, free: 4.684 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.419/1.419, allocations: 225.6 MB / 252.5 MB, free: 13.01 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: "" <> buildModelFMU(Modelica.Electrical.Analog.Examples.OvervoltageProtection,fileNamePrefix="Modelica_4_0_0_Modelica_Electrical_Analog_Examples_OvervoltageProtection",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Electrical.Analog.Examples.OvervoltageProtection,fileNamePrefix="Modelica_4_0_0_Modelica_Electrical_Analog_Examples_OvervoltageProtection",fmuType="me",version="2.0",platforms={"static"}) [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 0.001575/0.001575, allocations: 43.92 kB / 370.4 MB, free: 9.836 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2932/0.2948, allocations: 52.18 MB / 422.6 MB, free: 14.57 MB / 334.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Analog.Examples.OvervoltageProtection): time 0.004163/0.2989, allocations: 2.736 MB / 425.4 MB, free: 11.82 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.001543/0.3005, allocations: 0.6739 MB / 426 MB, free: 11.14 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001525/0.3006, allocations: 4 kB / 426 MB, free: 11.14 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001812/0.3008, allocations: 47.56 kB / 426.1 MB, free: 11.09 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001899/0.301, allocations: 79.27 kB / 426.2 MB, free: 11.02 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0004271/0.3014, allocations: 87.81 kB / 426.3 MB, free: 10.93 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.0005141/0.3019, allocations: 370.5 kB / 426.6 MB, free: 10.57 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002804/0.3022, allocations: 64.89 kB / 426.7 MB, free: 10.5 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002875/0.3025, allocations: 143.5 kB / 426.8 MB, free: 10.36 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.00027/0.3028, allocations: 171.3 kB / 427 MB, free: 10.19 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 5.608e-05/0.3028, allocations: 28 kB / 427 MB, free: 10.16 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 5.194e-05/0.3029, allocations: 32 kB / 427 MB, free: 10.13 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001012/0.303, allocations: 67.77 kB / 427.1 MB, free: 10.07 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001717/0.3032, allocations: 147.3 kB / 427.3 MB, free: 9.922 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0004549/0.3036, allocations: 343.1 kB / 427.6 MB, free: 9.59 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.729e-06/0.3036, allocations: 0 / 427.6 MB, free: 9.59 MB / 334.1 MB Notification: Performance of FrontEnd: time 1.633e-06/0.3036, allocations: 0 / 427.6 MB, free: 9.59 MB / 334.1 MB Notification: Performance of Transformations before backend: time 8.015e-06/0.3036, allocations: 0 / 427.6 MB, free: 9.59 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.001585/0.3052, allocations: 0.5754 MB / 428.2 MB, free: 8.984 MB / 334.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.551e-05/0.3053, allocations: 8.031 kB / 428.2 MB, free: 8.977 MB / 334.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 7.834e-05/0.3053, allocations: 54.73 kB / 428.2 MB, free: 8.914 MB / 334.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 6.707e-05/0.3054, allocations: 32.75 kB / 428.3 MB, free: 8.883 MB / 334.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004127/0.3058, allocations: 203 kB / 428.5 MB, free: 8.656 MB / 334.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.49e-05/0.3058, allocations: 12.81 kB / 428.5 MB, free: 8.645 MB / 334.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 7.029e-05/0.3059, allocations: 28.3 kB / 428.5 MB, free: 8.617 MB / 334.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0006986/0.3066, allocations: 302.8 kB / 428.8 MB, free: 8.305 MB / 334.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.332e-05/0.3066, allocations: 0 / 428.8 MB, free: 8.305 MB / 334.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.756e-05/0.3066, allocations: 11.94 kB / 428.8 MB, free: 8.293 MB / 334.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 9.367e-06/0.3067, allocations: 4 kB / 428.8 MB, free: 8.289 MB / 334.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0008219/0.3075, allocations: 265.5 kB / 429.1 MB, free: 8.027 MB / 334.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001816/0.3093, allocations: 1.031 MB / 430.1 MB, free: 6.926 MB / 334.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001968/0.3113, allocations: 430.2 kB / 430.5 MB, free: 6.496 MB / 334.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0004015/0.3117, allocations: 132.8 kB / 430.6 MB, free: 6.363 MB / 334.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.577e-05/0.3117, allocations: 4 kB / 430.7 MB, free: 6.359 MB / 334.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.242e-05/0.3117, allocations: 34.56 kB / 430.7 MB, free: 6.316 MB / 334.1 MB Notification: Performance of pre-optimization done (n=14): time 2.264e-06/0.3117, allocations: 0 / 430.7 MB, free: 6.316 MB / 334.1 MB Notification: Performance of matching and sorting (n=14): time 0.005248/0.317, allocations: 0.9538 MB / 431.6 MB, free: 5.355 MB / 334.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.2e-05/0.317, allocations: 55.41 kB / 431.7 MB, free: 5.289 MB / 334.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.00029/0.3173, allocations: 212.2 kB / 431.9 MB, free: 5.07 MB / 334.1 MB Notification: Performance of collectPreVariables (initialization): time 4.198e-05/0.3174, allocations: 33.7 kB / 431.9 MB, free: 5.031 MB / 334.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001288/0.3175, allocations: 156.2 kB / 432.1 MB, free: 4.871 MB / 334.1 MB Notification: Performance of collectInitialBindings (initialization): time 6.117e-05/0.3175, allocations: 55.52 kB / 432.1 MB, free: 4.816 MB / 334.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001054/0.3177, allocations: 37.69 kB / 432.2 MB, free: 4.773 MB / 334.1 MB Notification: Performance of setup shared object (initialization): time 0.0001512/0.3178, allocations: 330.8 kB / 432.5 MB, free: 4.441 MB / 334.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003619/0.3182, allocations: 111.9 kB / 432.6 MB, free: 4.332 MB / 334.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.000374/0.3185, allocations: 125.6 kB / 432.7 MB, free: 4.203 MB / 334.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0006869/0.3192, allocations: 228.3 kB / 433 MB, free: 3.977 MB / 334.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.983e-06/0.3192, allocations: 3.938 kB / 433 MB, free: 3.973 MB / 334.1 MB Notification: Performance of matching and sorting (n=18) (initialization): time 0.003036/0.3223, allocations: 0.6307 MB / 433.6 MB, free: 3.332 MB / 334.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.343e-05/0.3223, allocations: 4 kB / 433.6 MB, free: 3.328 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.585e-06/0.3223, allocations: 0 / 433.6 MB, free: 3.328 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0007853/0.3231, allocations: 228.6 kB / 433.8 MB, free: 3.102 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001905/0.3233, allocations: 35.92 kB / 433.9 MB, free: 3.066 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.007209/0.3305, allocations: 2.636 MB / 436.5 MB, free: 324 kB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.000318/0.3308, allocations: 35.89 kB / 436.5 MB, free: 288 kB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.999e-05/0.3308, allocations: 8.062 kB / 436.5 MB, free: 280 kB / 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.000169/0.331, allocations: 137.7 kB / 436.7 MB, free: 132 kB / 334.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.368e-05/0.331, allocations: 23.91 kB / 436.7 MB, free: 108 kB / 334.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 4.995e-05/0.3311, allocations: 17.56 kB / 436.7 MB, free: 88 kB / 334.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.639e-06/0.3311, allocations: 3.984 kB / 436.7 MB, free: 84 kB / 334.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.144e-06/0.3311, allocations: 0 / 436.7 MB, free: 84 kB / 334.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.949e-06/0.3311, allocations: 7.984 kB / 436.7 MB, free: 76 kB / 334.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0004068/0.3315, allocations: 292.4 kB / 437 MB, free: 15.75 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.575e-06/0.3315, allocations: 4 kB / 437 MB, free: 15.74 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001648/0.3317, allocations: 35.91 kB / 437 MB, free: 15.71 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0006788/0.3324, allocations: 220.7 kB / 437.3 MB, free: 15.49 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.999e-05/0.3324, allocations: 3.984 kB / 437.3 MB, free: 15.48 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.006838/0.3392, allocations: 2.636 MB / 439.9 MB, free: 12.73 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.503e-06/0.3392, allocations: 4.062 kB / 439.9 MB, free: 12.73 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.003398/0.3426, allocations: 0.8433 MB / 440.7 MB, free: 11.86 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 5.613e-05/0.3427, allocations: 23.83 kB / 440.8 MB, free: 11.84 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.391e-05/0.3427, allocations: 4 kB / 440.8 MB, free: 11.84 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.000301/0.343, allocations: 31.97 kB / 440.8 MB, free: 11.8 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.159e-05/0.3431, allocations: 12.05 kB / 440.8 MB, free: 11.79 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.942e-05/0.3431, allocations: 7.984 kB / 440.8 MB, free: 11.79 MB / 350.1 MB Notification: Performance of sorting global known variables: time 0.0001576/0.3432, allocations: 157.6 kB / 441 MB, free: 11.63 MB / 350.1 MB Notification: Performance of sort global known variables: time 1.1e-07/0.3432, allocations: 0 / 441 MB, free: 11.63 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.0004594/0.3437, allocations: 79.89 kB / 441.1 MB, free: 11.55 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.003733/0.3474, allocations: 1.388 MB / 442.4 MB, free: 10.14 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.00161/0.349, allocations: 449.1 kB / 442.9 MB, free: 9.688 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 5.46e-06/0.349, allocations: 4.062 kB / 442.9 MB, free: 9.684 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 0.001154/0.3502, allocations: 322.4 kB / 443.2 MB, free: 9.355 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003696/0.3506, allocations: 32.59 kB / 443.2 MB, free: 9.324 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.009179/0.3597, allocations: 3.342 MB / 446.6 MB, free: 5.895 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003916/0.3601, allocations: 0.7398 MB / 447.3 MB, free: 5.129 MB / 350.1 MB Notification: Performance of simCode: alias equations: time 9.906e-05/0.3602, allocations: 21.47 kB / 447.3 MB, free: 5.109 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001104/0.3603, allocations: 71.34 kB / 447.4 MB, free: 5.039 MB / 350.1 MB Notification: Performance of SimCode: time 1.082e-06/0.3604, allocations: 0 / 447.4 MB, free: 5.039 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.0422/0.4026, allocations: 7.464 MB / 454.9 MB, free: 13.73 MB / 366.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 12.52/12.92, allocations: 5.422 kB / 454.9 MB, free: 13.73 MB / 366.1 MB " [Timeout remaining time 647] (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 & python3 -m fmpy simulate --output-file Modelica_4.0.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_0_0_Modelica_Electrical_Analog_Examples_OvervoltageProtection.fmu > Modelica_4.0.0_Modelica.Electrical.Analog.Examples.OvervoltageProtection.pipe 2>&1) [Timeout 52.5] diffSimulationResults("Modelica_4.0.0_Modelica.Electrical.Analog.Examples.OvervoltageProtection_res.csv","/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: 15.48867261399937]