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.00098/0.00098, allocations: 83.69 kB / 20.67 MB, free: 3.887 MB / 18.57 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.0009932/0.0009932, allocations: 170.3 kB / 23.95 MB, free: 0.6133 MB / 18.57 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 0.8942/0.8942, allocations: 177.2 MB / 204.3 MB, free: 5.77 MB / 186.7 MB " [Timeout remaining time 179] 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 1.443e-06/1.443e-06, allocations: 0 / 324.6 MB, free: 15.96 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 1.524e-05/1.668e-05, allocations: 2.281 kB / 324.6 MB, free: 15.95 MB / 298.7 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Analog.Examples.OvervoltageProtection): time 0.002657/0.002674, allocations: 2.554 MB / 327.1 MB, free: 13.39 MB / 298.7 MB Notification: Performance of NFInst.instExpressions: time 0.0009964/0.00367, allocations: 0.6933 MB / 327.8 MB, free: 12.69 MB / 298.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001197/0.00379, allocations: 7.938 kB / 327.8 MB, free: 12.68 MB / 298.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0001227/0.003913, allocations: 39.64 kB / 327.9 MB, free: 12.64 MB / 298.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0001161/0.004029, allocations: 95.12 kB / 328 MB, free: 12.55 MB / 298.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003117/0.00434, allocations: 107.7 kB / 328.1 MB, free: 12.44 MB / 298.7 MB Notification: Performance of NFFlatten.flatten: time 0.0002919/0.004632, allocations: 374.3 kB / 328.4 MB, free: 12.07 MB / 298.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001481/0.00478, allocations: 60.89 kB / 328.5 MB, free: 12.02 MB / 298.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002692/0.00505, allocations: 211.5 kB / 328.7 MB, free: 11.81 MB / 298.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001257/0.005175, allocations: 127.6 kB / 328.8 MB, free: 11.68 MB / 298.7 MB Notification: Performance of NFPackage.collectConstants: time 3.575e-05/0.005211, allocations: 32 kB / 328.9 MB, free: 11.65 MB / 298.7 MB Notification: Performance of NFFlatten.collectFunctions: time 5.918e-05/0.00527, allocations: 36 kB / 328.9 MB, free: 11.62 MB / 298.7 MB Notification: Performance of NFScalarize.scalarize: time 3.704e-05/0.005307, allocations: 71.78 kB / 329 MB, free: 11.55 MB / 298.7 MB Notification: Performance of NFVerifyModel.verify: time 7.116e-05/0.005379, allocations: 103.8 kB / 329.1 MB, free: 11.45 MB / 298.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0002941/0.005673, allocations: 370.8 kB / 329.4 MB, free: 11.08 MB / 298.7 MB Notification: Performance of FrontEnd - DAE generated: time 2.926e-06/0.005676, allocations: 0 / 329.4 MB, free: 11.08 MB / 298.7 MB Notification: Performance of FrontEnd: time 1.563e-06/0.005677, allocations: 0 / 329.4 MB, free: 11.08 MB / 298.7 MB Notification: Performance of Transformations before backend: time 4.919e-06/0.005682, allocations: 0 / 329.4 MB, free: 11.08 MB / 298.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.0008671/0.006549, allocations: 0.5708 MB / 330 MB, free: 10.48 MB / 298.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.058e-05/0.00659, allocations: 20.02 kB / 330 MB, free: 10.46 MB / 298.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 4.718e-05/0.006637, allocations: 54.73 kB / 330.1 MB, free: 10.4 MB / 298.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001256/0.006762, allocations: 40.73 kB / 330.1 MB, free: 10.36 MB / 298.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002662/0.007029, allocations: 206.2 kB / 330.3 MB, free: 10.13 MB / 298.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.32e-05/0.007042, allocations: 12.88 kB / 330.3 MB, free: 10.12 MB / 298.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.317e-05/0.007075, allocations: 24.31 kB / 330.3 MB, free: 10.1 MB / 298.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.00043/0.007505, allocations: 351.5 kB / 330.7 MB, free: 9.727 MB / 298.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 9.097e-06/0.007514, allocations: 192 / 330.7 MB, free: 9.727 MB / 298.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.286e-05/0.007537, allocations: 16.12 kB / 330.7 MB, free: 9.711 MB / 298.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.713e-06/0.007544, allocations: 4 kB / 330.7 MB, free: 9.707 MB / 298.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0004236/0.007967, allocations: 273.8 kB / 331 MB, free: 9.441 MB / 298.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001046/0.009013, allocations: 0.9616 MB / 331.9 MB, free: 8.406 MB / 298.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.000944/0.009957, allocations: 430.3 kB / 332.4 MB, free: 7.977 MB / 298.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002193/0.01018, allocations: 132.8 kB / 332.5 MB, free: 7.844 MB / 298.7 MB Notification: Performance of preOpt evalFunc (simulation): time 2.212e-05/0.0102, allocations: 7.984 kB / 332.5 MB, free: 7.836 MB / 298.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.911e-05/0.01022, allocations: 34.56 kB / 332.5 MB, free: 7.793 MB / 298.7 MB Notification: Performance of pre-optimization done (n=14): time 1.283e-06/0.01022, allocations: 0 / 332.5 MB, free: 7.793 MB / 298.7 MB Notification: Performance of matching and sorting (n=14): time 0.002366/0.01258, allocations: 0.9509 MB / 333.5 MB, free: 6.832 MB / 298.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.532e-05/0.01262, allocations: 55.41 kB / 333.5 MB, free: 6.766 MB / 298.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0004039/0.01302, allocations: 221.7 kB / 333.7 MB, free: 6.543 MB / 298.7 MB Notification: Performance of collectPreVariables (initialization): time 2.054e-05/0.01304, allocations: 29.7 kB / 333.8 MB, free: 6.508 MB / 298.7 MB Notification: Performance of collectInitialEqns (initialization): time 7.75e-05/0.01312, allocations: 164.2 kB / 333.9 MB, free: 6.34 MB / 298.7 MB Notification: Performance of collectInitialBindings (initialization): time 3.266e-05/0.01315, allocations: 47.59 kB / 334 MB, free: 6.293 MB / 298.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 5.792e-05/0.01321, allocations: 41.44 kB / 334 MB, free: 6.25 MB / 298.7 MB Notification: Performance of setup shared object (initialization): time 7.72e-05/0.01329, allocations: 330.8 kB / 334.3 MB, free: 5.918 MB / 298.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001894/0.01348, allocations: 103.9 kB / 334.4 MB, free: 5.816 MB / 298.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001859/0.01366, allocations: 125.6 kB / 334.6 MB, free: 5.688 MB / 298.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003589/0.01402, allocations: 232.4 kB / 334.8 MB, free: 5.457 MB / 298.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.585e-06/0.01403, allocations: 0 / 334.8 MB, free: 5.457 MB / 298.7 MB Notification: Performance of matching and sorting (n=18) (initialization): time 0.001374/0.0154, allocations: 0.6345 MB / 335.4 MB, free: 4.812 MB / 298.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.312e-05/0.01542, allocations: 4 kB / 335.4 MB, free: 4.809 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.623e-06/0.01543, allocations: 0 / 335.4 MB, free: 4.809 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0004492/0.01588, allocations: 224.6 kB / 335.7 MB, free: 4.586 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 9.455e-05/0.01597, allocations: 31.98 kB / 335.7 MB, free: 4.555 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.003645/0.01962, allocations: 2.612 MB / 338.3 MB, free: 1.824 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001376/0.01976, allocations: 39.86 kB / 338.3 MB, free: 1.785 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.372e-05/0.01977, allocations: 8 kB / 338.3 MB, free: 1.777 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 0.0001183/0.01989, allocations: 137.7 kB / 338.5 MB, free: 1.633 MB / 298.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.312e-05/0.01992, allocations: 27.78 kB / 338.5 MB, free: 1.605 MB / 298.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 2.689e-05/0.01995, allocations: 21.78 kB / 338.5 MB, free: 1.59 MB / 298.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.683e-06/0.01995, allocations: 4.062 kB / 338.5 MB, free: 1.586 MB / 298.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.675e-06/0.01995, allocations: 3.984 kB / 338.5 MB, free: 1.582 MB / 298.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.915e-06/0.01996, allocations: 0 / 338.5 MB, free: 1.582 MB / 298.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002278/0.02018, allocations: 260.5 kB / 338.8 MB, free: 1.285 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.057e-06/0.02019, allocations: 3.938 kB / 338.8 MB, free: 1.281 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 8.359e-05/0.02027, allocations: 27.98 kB / 338.8 MB, free: 1.254 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0003626/0.02063, allocations: 228.7 kB / 339 MB, free: 1.023 MB / 298.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.521e-05/0.02065, allocations: 7.984 kB / 339.1 MB, free: 1.016 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.003589/0.02424, allocations: 2.6 MB / 341.7 MB, free: 14.3 MB / 314.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.432e-06/0.02424, allocations: 0 / 341.7 MB, free: 14.3 MB / 314.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001588/0.02583, allocations: 0.8472 MB / 342.5 MB, free: 13.43 MB / 314.7 MB Notification: Performance of postOpt removeConstants (simulation): time 3.783e-05/0.02587, allocations: 23.81 kB / 342.5 MB, free: 13.41 MB / 314.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.16e-05/0.02589, allocations: 8 kB / 342.5 MB, free: 13.4 MB / 314.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.000135/0.02602, allocations: 32.03 kB / 342.6 MB, free: 13.37 MB / 314.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.093e-05/0.02606, allocations: 15.92 kB / 342.6 MB, free: 13.36 MB / 314.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.289e-05/0.02608, allocations: 7.984 kB / 342.6 MB, free: 13.35 MB / 314.7 MB Notification: Performance of sorting global known variables: time 0.0001036/0.02618, allocations: 161.2 kB / 342.7 MB, free: 13.19 MB / 314.7 MB Notification: Performance of sort global known variables: time 8e-08/0.02618, allocations: 0 / 342.7 MB, free: 13.19 MB / 314.7 MB Notification: Performance of remove unused functions: time 0.000331/0.02651, allocations: 75.89 kB / 342.8 MB, free: 13.12 MB / 314.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.001758/0.02827, allocations: 1.381 MB / 344.2 MB, free: 11.71 MB / 314.7 MB Notification: Performance of simCode: created initialization part: time 0.000828/0.0291, allocations: 436.8 kB / 344.6 MB, free: 11.27 MB / 314.7 MB Notification: Performance of simCode: created event and clocks part: time 2.505e-06/0.0291, allocations: 4 kB / 344.6 MB, free: 11.27 MB / 314.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0005048/0.0296, allocations: 322.6 kB / 344.9 MB, free: 10.94 MB / 314.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002585/0.02986, allocations: 36.72 kB / 345 MB, free: 10.9 MB / 314.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.004638/0.0345, allocations: 3.323 MB / 348.3 MB, free: 7.488 MB / 314.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 8.488e-05/0.03459, allocations: 137.8 kB / 348.4 MB, free: 7.336 MB / 314.7 MB Notification: Performance of simCode: alias equations: time 5.406e-05/0.03464, allocations: 13.48 kB / 348.5 MB, free: 7.32 MB / 314.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 7.454e-05/0.03471, allocations: 72.47 kB / 348.5 MB, free: 7.25 MB / 314.7 MB Notification: Performance of SimCode: time 6.61e-07/0.03472, allocations: 0 / 348.5 MB, free: 7.25 MB / 314.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02341/0.05813, allocations: 8.087 MB / 356.6 MB, free: 15.29 MB / 330.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 7.886/7.944, allocations: 2.922 kB / 356.6 MB, free: 15.29 MB / 330.7 MB " [Timeout remaining time 652] (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/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.1.0/Modelica/Electrical/Analog/Examples/OvervoltageProtection/OvervoltageProtection.csv","/var/lib/jenkins/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: 9.75426120404154]