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.001153/0.001153, allocations: 76.08 kB / 20.67 MB, free: 3.895 MB / 18.57 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.0008681/0.0008681, allocations: 153.1 kB / 23.93 MB, free: 0.6328 MB / 18.57 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 0.8921/0.8921, allocations: 173.4 MB / 200.4 MB, free: 9.445 MB / 186.7 MB " [Timeout remaining time 179] 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 1.583e-06/1.583e-06, allocations: 0 / 318.4 MB, free: 6.363 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 1.653e-05/1.811e-05, allocations: 6.219 kB / 318.4 MB, free: 6.355 MB / 282.7 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Analog.Examples.OvervoltageProtection): time 0.002696/0.002714, allocations: 2.508 MB / 321 MB, free: 3.832 MB / 282.7 MB Notification: Performance of NFInst.instExpressions: time 0.0009623/0.003676, allocations: 0.6505 MB / 321.6 MB, free: 3.176 MB / 282.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001098/0.003786, allocations: 4 kB / 321.6 MB, free: 3.172 MB / 282.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0001189/0.003905, allocations: 43.56 kB / 321.7 MB, free: 3.129 MB / 282.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0001099/0.004015, allocations: 87.16 kB / 321.7 MB, free: 3.043 MB / 282.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002603/0.004275, allocations: 103.7 kB / 321.8 MB, free: 2.941 MB / 282.7 MB Notification: Performance of NFFlatten.flatten: time 0.0002773/0.004552, allocations: 378.3 kB / 322.2 MB, free: 2.57 MB / 282.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001509/0.004703, allocations: 60.89 kB / 322.3 MB, free: 2.508 MB / 282.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002168/0.00492, allocations: 199.6 kB / 322.5 MB, free: 2.312 MB / 282.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001321/0.005052, allocations: 127.6 kB / 322.6 MB, free: 2.188 MB / 282.7 MB Notification: Performance of NFPackage.collectConstants: time 4.521e-05/0.005097, allocations: 32 kB / 322.6 MB, free: 2.156 MB / 282.7 MB Notification: Performance of NFFlatten.collectFunctions: time 3.224e-05/0.00513, allocations: 32 kB / 322.6 MB, free: 2.125 MB / 282.7 MB Notification: Performance of NFScalarize.scalarize: time 4.554e-05/0.005175, allocations: 63.8 kB / 322.7 MB, free: 2.062 MB / 282.7 MB Notification: Performance of NFVerifyModel.verify: time 7.922e-05/0.005254, allocations: 107.7 kB / 322.8 MB, free: 1.957 MB / 282.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0002926/0.005547, allocations: 366.9 kB / 323.2 MB, free: 1.598 MB / 282.7 MB Notification: Performance of FrontEnd - DAE generated: time 2.515e-06/0.00555, allocations: 0 / 323.2 MB, free: 1.598 MB / 282.7 MB Notification: Performance of FrontEnd: time 1.253e-06/0.005551, allocations: 0 / 323.2 MB, free: 1.598 MB / 282.7 MB Notification: Performance of Transformations before backend: time 6.061e-06/0.005557, allocations: 4 kB / 323.2 MB, free: 1.594 MB / 282.7 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.001018/0.006575, allocations: 0.5716 MB / 323.7 MB, free: 0.9922 MB / 282.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.463e-05/0.006619, allocations: 8.922 kB / 323.8 MB, free: 0.9844 MB / 282.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 5.272e-05/0.006672, allocations: 54.73 kB / 323.8 MB, free: 0.9219 MB / 282.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 5.245e-05/0.006724, allocations: 32.75 kB / 323.8 MB, free: 0.8906 MB / 282.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003047/0.007029, allocations: 206.2 kB / 324 MB, free: 0.6602 MB / 282.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.768e-05/0.007047, allocations: 20.88 kB / 324.1 MB, free: 0.6406 MB / 282.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.523e-05/0.007082, allocations: 16.38 kB / 324.1 MB, free: 0.625 MB / 282.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.000465/0.007547, allocations: 347.5 kB / 324.4 MB, free: 264 kB / 282.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.047e-05/0.007558, allocations: 192 / 324.4 MB, free: 264 kB / 282.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.357e-05/0.007581, allocations: 12.12 kB / 324.4 MB, free: 252 kB / 282.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.943e-06/0.007588, allocations: 4 kB / 324.4 MB, free: 248 kB / 282.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0004265/0.008015, allocations: 277.8 kB / 324.7 MB, free: 15.97 MB / 298.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001107/0.009121, allocations: 0.954 MB / 325.7 MB, free: 14.95 MB / 298.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0009604/0.01008, allocations: 433.3 kB / 326.1 MB, free: 14.52 MB / 298.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002347/0.01032, allocations: 136.8 kB / 326.2 MB, free: 14.38 MB / 298.7 MB Notification: Performance of preOpt evalFunc (simulation): time 2.588e-05/0.01034, allocations: 4 kB / 326.2 MB, free: 14.38 MB / 298.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.397e-05/0.01037, allocations: 34.56 kB / 326.3 MB, free: 14.33 MB / 298.7 MB Notification: Performance of pre-optimization done (n=14): time 1.994e-06/0.01037, allocations: 0 / 326.3 MB, free: 14.33 MB / 298.7 MB Notification: Performance of matching and sorting (n=14): time 0.002301/0.01267, allocations: 0.9508 MB / 327.2 MB, free: 13.37 MB / 298.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 2.695e-05/0.0127, allocations: 51.41 kB / 327.3 MB, free: 13.31 MB / 298.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001465/0.01284, allocations: 216.2 kB / 327.5 MB, free: 13.09 MB / 298.7 MB Notification: Performance of collectPreVariables (initialization): time 2.008e-05/0.01286, allocations: 33.7 kB / 327.5 MB, free: 13.05 MB / 298.7 MB Notification: Performance of collectInitialEqns (initialization): time 7.291e-05/0.01294, allocations: 160.2 kB / 327.7 MB, free: 12.89 MB / 298.7 MB Notification: Performance of collectInitialBindings (initialization): time 3.728e-05/0.01297, allocations: 51.53 kB / 327.7 MB, free: 12.84 MB / 298.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 5.668e-05/0.01303, allocations: 37.64 kB / 327.7 MB, free: 12.79 MB / 298.7 MB Notification: Performance of setup shared object (initialization): time 7.8e-05/0.01311, allocations: 330.8 kB / 328.1 MB, free: 12.46 MB / 298.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.000182/0.01329, allocations: 103.9 kB / 328.2 MB, free: 12.36 MB / 298.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001816/0.01347, allocations: 133.6 kB / 328.3 MB, free: 12.22 MB / 298.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003423/0.01381, allocations: 224.6 kB / 328.5 MB, free: 12 MB / 298.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.094e-06/0.01382, allocations: 0 / 328.5 MB, free: 12 MB / 298.7 MB Notification: Performance of matching and sorting (n=18) (initialization): time 0.001318/0.01513, allocations: 0.6423 MB / 329.2 MB, free: 11.35 MB / 298.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.453e-05/0.01515, allocations: 4 kB / 329.2 MB, free: 11.34 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.661e-06/0.01515, allocations: 0 / 329.2 MB, free: 11.34 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0004212/0.01558, allocations: 220.6 kB / 329.4 MB, free: 11.12 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 9.155e-05/0.01567, allocations: 43.91 kB / 329.4 MB, free: 11.08 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.003468/0.01914, allocations: 2.6 MB / 332 MB, free: 8.367 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001253/0.01926, allocations: 35.89 kB / 332.1 MB, free: 8.332 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.487e-05/0.01928, allocations: 12 kB / 332.1 MB, free: 8.32 MB / 298.7 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 9.71e-05/0.01937, allocations: 133.9 kB / 332.2 MB, free: 8.18 MB / 298.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.224e-05/0.01941, allocations: 27.8 kB / 332.2 MB, free: 8.152 MB / 298.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 2.879e-05/0.01943, allocations: 17.47 kB / 332.2 MB, free: 8.133 MB / 298.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.184e-06/0.01944, allocations: 4 kB / 332.2 MB, free: 8.129 MB / 298.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.615e-06/0.01944, allocations: 0 / 332.2 MB, free: 8.129 MB / 298.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.057e-06/0.01944, allocations: 3.984 kB / 332.3 MB, free: 8.125 MB / 298.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002306/0.01967, allocations: 264.5 kB / 332.5 MB, free: 7.824 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.825e-06/0.01968, allocations: 3.938 kB / 332.5 MB, free: 7.82 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 8.345e-05/0.01976, allocations: 27.92 kB / 332.5 MB, free: 7.793 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0003473/0.02011, allocations: 220.7 kB / 332.8 MB, free: 7.574 MB / 298.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.574e-05/0.02012, allocations: 7.984 kB / 332.8 MB, free: 7.566 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.003377/0.0235, allocations: 2.608 MB / 335.4 MB, free: 4.84 MB / 298.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.122e-06/0.0235, allocations: 4.062 kB / 335.4 MB, free: 4.836 MB / 298.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001541/0.02504, allocations: 0.8395 MB / 336.2 MB, free: 3.977 MB / 298.7 MB Notification: Performance of postOpt removeConstants (simulation): time 2.333e-05/0.02506, allocations: 27.89 kB / 336.2 MB, free: 3.949 MB / 298.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.825e-05/0.02508, allocations: 7.984 kB / 336.3 MB, free: 3.941 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001276/0.02521, allocations: 23.98 kB / 336.3 MB, free: 3.918 MB / 298.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.604e-05/0.02525, allocations: 11.97 kB / 336.3 MB, free: 3.906 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.114e-05/0.02526, allocations: 8 kB / 336.3 MB, free: 3.898 MB / 298.7 MB Notification: Performance of sorting global known variables: time 9e-05/0.02535, allocations: 161.6 kB / 336.5 MB, free: 3.742 MB / 298.7 MB Notification: Performance of sort global known variables: time 5e-08/0.02535, allocations: 0 / 336.5 MB, free: 3.742 MB / 298.7 MB Notification: Performance of remove unused functions: time 0.0002841/0.02563, allocations: 83.89 kB / 336.5 MB, free: 3.66 MB / 298.7 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.001684/0.02732, allocations: 1.388 MB / 337.9 MB, free: 2.246 MB / 298.7 MB Notification: Performance of simCode: created initialization part: time 0.0008775/0.02819, allocations: 440.6 kB / 338.4 MB, free: 1.805 MB / 298.7 MB Notification: Performance of simCode: created event and clocks part: time 2.284e-06/0.0282, allocations: 0 / 338.4 MB, free: 1.805 MB / 298.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0005361/0.02873, allocations: 330.5 kB / 338.7 MB, free: 1.469 MB / 298.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002628/0.02899, allocations: 36.7 kB / 338.7 MB, free: 1.434 MB / 298.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.004648/0.03364, allocations: 3.309 MB / 342 MB, free: 14.03 MB / 314.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001421/0.03379, allocations: 133.8 kB / 342.2 MB, free: 13.88 MB / 314.7 MB Notification: Performance of simCode: alias equations: time 5.54e-05/0.03384, allocations: 17.48 kB / 342.2 MB, free: 13.86 MB / 314.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 7.009e-05/0.03391, allocations: 68.47 kB / 342.2 MB, free: 13.8 MB / 314.7 MB Notification: Performance of SimCode: time 8.01e-07/0.03391, allocations: 0 / 342.2 MB, free: 13.8 MB / 314.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02503/0.05894, allocations: 8.03 MB / 350.3 MB, free: 5.895 MB / 314.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 7.979/8.038, allocations: 11.61 kB / 350.3 MB, free: 5.887 MB / 314.7 MB " [Timeout remaining time 652] (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/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) [Timeout 660] "" [Timeout remaining time 660] Reference file matches [Calling sys.exit(0), Time elapsed: 9.861317568458617]