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.001829/0.001829, allocations: 115.8 kB / 20.43 MB, free: 1.457 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.002183/0.002183, allocations: 214.1 kB / 23.75 MB, free: 4.668 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.416/1.416, allocations: 230.6 MB / 257.5 MB, free: 8.008 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.001545/0.001545, allocations: 43.92 kB / 377.8 MB, free: 3.125 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2478/0.2494, allocations: 53.36 MB / 431.1 MB, free: 6.855 MB / 334.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Analog.Examples.OvervoltageProtection): time 0.003958/0.2533, allocations: 2.754 MB / 433.9 MB, free: 4.09 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.001262/0.2546, allocations: 0.7338 MB / 434.6 MB, free: 3.352 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001152/0.2547, allocations: 7.938 kB / 434.6 MB, free: 3.344 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.00014/0.2548, allocations: 39.58 kB / 434.7 MB, free: 3.305 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001409/0.255, allocations: 79.27 kB / 434.7 MB, free: 3.227 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003161/0.2553, allocations: 107.8 kB / 434.9 MB, free: 3.121 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.0003899/0.2557, allocations: 362.6 kB / 435.2 MB, free: 2.766 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001693/0.2558, allocations: 64.91 kB / 435.3 MB, free: 2.699 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002719/0.2561, allocations: 155.5 kB / 435.4 MB, free: 2.547 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002252/0.2563, allocations: 155.4 kB / 435.6 MB, free: 2.395 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 4.628e-05/0.2564, allocations: 32 kB / 435.6 MB, free: 2.363 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 8.185e-05/0.2565, allocations: 39.98 kB / 435.6 MB, free: 2.324 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 6.817e-05/0.2565, allocations: 67.7 kB / 435.7 MB, free: 2.258 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001377/0.2567, allocations: 147.3 kB / 435.9 MB, free: 2.113 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0004017/0.2571, allocations: 350.7 kB / 436.2 MB, free: 1.77 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.807e-06/0.2571, allocations: 0 / 436.2 MB, free: 1.77 MB / 334.1 MB Notification: Performance of FrontEnd: time 1.242e-06/0.2571, allocations: 0 / 436.2 MB, free: 1.77 MB / 334.1 MB Notification: Performance of Transformations before backend: time 6.151e-06/0.2571, allocations: 0 / 436.2 MB, free: 1.77 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.001472/0.2586, allocations: 0.5793 MB / 436.8 MB, free: 1.16 MB / 334.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.97e-05/0.2586, allocations: 12.03 kB / 436.8 MB, free: 1.148 MB / 334.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 6.8e-05/0.2587, allocations: 50.73 kB / 436.8 MB, free: 1.09 MB / 334.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.000173/0.2588, allocations: 40.73 kB / 436.9 MB, free: 1.051 MB / 334.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003677/0.2592, allocations: 211 kB / 437.1 MB, free: 0.8164 MB / 334.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.515e-05/0.2592, allocations: 16.81 kB / 437.1 MB, free: 0.8008 MB / 334.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.467e-05/0.2593, allocations: 16.38 kB / 437.1 MB, free: 0.7852 MB / 334.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0006698/0.2599, allocations: 306.7 kB / 437.4 MB, free: 484 kB / 334.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.059e-05/0.26, allocations: 3.938 kB / 437.4 MB, free: 480 kB / 334.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.861e-05/0.26, allocations: 8 kB / 437.4 MB, free: 472 kB / 334.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.164e-06/0.26, allocations: 4 kB / 437.4 MB, free: 468 kB / 334.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0007729/0.2608, allocations: 273.5 kB / 437.7 MB, free: 192 kB / 334.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.00176/0.2625, allocations: 1.023 MB / 438.7 MB, free: 15.09 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001986/0.2645, allocations: 434.2 kB / 439.1 MB, free: 14.66 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003994/0.2649, allocations: 136.8 kB / 439.3 MB, free: 14.52 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.286e-05/0.2649, allocations: 0 / 439.3 MB, free: 14.52 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.157e-05/0.265, allocations: 38.5 kB / 439.3 MB, free: 14.48 MB / 350.1 MB Notification: Performance of pre-optimization done (n=14): time 1.112e-06/0.265, allocations: 0 / 439.3 MB, free: 14.48 MB / 350.1 MB Notification: Performance of matching and sorting (n=14): time 0.005076/0.27, allocations: 0.9431 MB / 440.3 MB, free: 13.52 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.473e-05/0.2701, allocations: 59.41 kB / 440.3 MB, free: 13.45 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002511/0.2703, allocations: 224.8 kB / 440.5 MB, free: 13.23 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 3.77e-05/0.2704, allocations: 29.7 kB / 440.6 MB, free: 13.19 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001116/0.2705, allocations: 156.2 kB / 440.7 MB, free: 13.04 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 5.072e-05/0.2705, allocations: 51.62 kB / 440.8 MB, free: 12.98 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 8.671e-05/0.2706, allocations: 37.66 kB / 440.8 MB, free: 12.94 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 0.0001578/0.2708, allocations: 330.8 kB / 441.1 MB, free: 12.61 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003433/0.2711, allocations: 103.9 kB / 441.2 MB, free: 12.51 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003498/0.2715, allocations: 129.5 kB / 441.4 MB, free: 12.38 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0006961/0.2722, allocations: 228 kB / 441.6 MB, free: 12.15 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.107e-06/0.2722, allocations: 7.875 kB / 441.6 MB, free: 12.14 MB / 350.1 MB Notification: Performance of matching and sorting (n=18) (initialization): time 0.002994/0.2752, allocations: 0.6268 MB / 442.2 MB, free: 11.5 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.926e-05/0.2752, allocations: 8 kB / 442.2 MB, free: 11.5 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.47e-06/0.2752, allocations: 4 kB / 442.2 MB, free: 11.49 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.000743/0.2759, allocations: 216.7 kB / 442.4 MB, free: 11.28 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001763/0.2761, allocations: 35.97 kB / 442.5 MB, free: 11.24 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.007441/0.2835, allocations: 2.651 MB / 445.1 MB, free: 8.477 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002959/0.2838, allocations: 35.94 kB / 445.2 MB, free: 8.441 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.095e-05/0.2839, allocations: 7.984 kB / 445.2 MB, free: 8.434 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.0001859/0.2841, allocations: 137.7 kB / 445.3 MB, free: 8.289 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.32e-05/0.2841, allocations: 15.91 kB / 445.3 MB, free: 8.273 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 5.423e-05/0.2842, allocations: 29.77 kB / 445.3 MB, free: 8.242 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.934e-06/0.2842, allocations: 0 / 445.3 MB, free: 8.242 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.996e-06/0.2842, allocations: 4 kB / 445.4 MB, free: 8.238 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.146e-06/0.2842, allocations: 0 / 445.4 MB, free: 8.238 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0004045/0.2846, allocations: 300.4 kB / 445.6 MB, free: 7.902 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.033e-06/0.2846, allocations: 0 / 445.6 MB, free: 7.902 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001596/0.2847, allocations: 27.98 kB / 445.7 MB, free: 7.875 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0006534/0.2854, allocations: 216.6 kB / 445.9 MB, free: 7.66 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.267e-05/0.2854, allocations: 15.98 kB / 445.9 MB, free: 7.645 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.006895/0.2923, allocations: 2.643 MB / 448.5 MB, free: 4.887 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.064e-06/0.2923, allocations: 0 / 448.5 MB, free: 4.887 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.003364/0.2957, allocations: 0.8474 MB / 449.4 MB, free: 4.023 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 4.589e-05/0.2957, allocations: 19.83 kB / 449.4 MB, free: 4.004 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.53e-05/0.2958, allocations: 7.984 kB / 449.4 MB, free: 3.996 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002937/0.296, allocations: 32.05 kB / 449.4 MB, free: 3.965 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.254e-05/0.2961, allocations: 19.91 kB / 449.5 MB, free: 3.945 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.741e-05/0.2961, allocations: 4 kB / 449.5 MB, free: 3.941 MB / 350.1 MB Notification: Performance of sorting global known variables: time 0.0001671/0.2963, allocations: 160.5 kB / 449.6 MB, free: 3.781 MB / 350.1 MB Notification: Performance of sort global known variables: time 7e-08/0.2963, allocations: 0 / 449.6 MB, free: 3.781 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.0004532/0.2967, allocations: 83.83 kB / 449.7 MB, free: 3.699 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.003687/0.3004, allocations: 1.381 MB / 451.1 MB, free: 2.285 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.001561/0.302, allocations: 441.4 kB / 451.5 MB, free: 1.844 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 3.135e-06/0.302, allocations: 0 / 451.5 MB, free: 1.844 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 0.001128/0.3031, allocations: 328.7 kB / 451.8 MB, free: 1.512 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003719/0.3035, allocations: 40.58 kB / 451.9 MB, free: 1.473 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.008898/0.3124, allocations: 3.352 MB / 455.2 MB, free: 14.03 MB / 366.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003838/0.3128, allocations: 0.7476 MB / 456 MB, free: 13.26 MB / 366.1 MB Notification: Performance of simCode: alias equations: time 7.207e-05/0.3128, allocations: 9.484 kB / 456 MB, free: 13.25 MB / 366.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001051/0.3129, allocations: 71.41 kB / 456.1 MB, free: 13.18 MB / 366.1 MB Notification: Performance of SimCode: time 5.41e-07/0.3129, allocations: 0 / 456.1 MB, free: 13.18 MB / 366.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.0387/0.3516, allocations: 7.523 MB / 463.6 MB, free: 5.816 MB / 366.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 12.37/12.73, allocations: 8.062 kB / 463.6 MB, free: 5.809 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.322866326001531]