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.001699/0.001699, allocations: 107.1 kB / 20.44 MB, free: 1.344 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.001985/0.001985, allocations: 209.5 kB / 23.73 MB, free: 4.523 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.413/1.413, allocations: 230.6 MB / 257.5 MB, free: 7.801 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.001553/0.001553, allocations: 51.91 kB / 377.7 MB, free: 2.961 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2555/0.2571, allocations: 53.37 MB / 431.1 MB, free: 6.629 MB / 334.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Analog.Examples.OvervoltageProtection): time 0.00401/0.2611, allocations: 2.547 MB / 433.6 MB, free: 4.074 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.001512/0.2626, allocations: 0.6873 MB / 434.3 MB, free: 3.383 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001298/0.2627, allocations: 4 kB / 434.3 MB, free: 3.379 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001531/0.2629, allocations: 39.58 kB / 434.4 MB, free: 3.34 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.000158/0.2631, allocations: 83.2 kB / 434.4 MB, free: 3.258 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003747/0.2634, allocations: 115.8 kB / 434.6 MB, free: 3.145 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.0003888/0.2638, allocations: 358.5 kB / 434.9 MB, free: 2.793 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001912/0.264, allocations: 68.89 kB / 435 MB, free: 2.723 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002752/0.2643, allocations: 151.5 kB / 435.1 MB, free: 2.574 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002181/0.2645, allocations: 167.3 kB / 435.3 MB, free: 2.41 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 5.081e-05/0.2646, allocations: 28 kB / 435.3 MB, free: 2.383 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 8.628e-05/0.2646, allocations: 36 kB / 435.3 MB, free: 2.348 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 5.881e-05/0.2647, allocations: 63.81 kB / 435.4 MB, free: 2.285 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001302/0.2648, allocations: 127.4 kB / 435.5 MB, free: 2.16 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0004298/0.2653, allocations: 346.7 kB / 435.9 MB, free: 1.82 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.069e-06/0.2653, allocations: 4 kB / 435.9 MB, free: 1.816 MB / 334.1 MB Notification: Performance of FrontEnd: time 1.633e-06/0.2653, allocations: 0 / 435.9 MB, free: 1.816 MB / 334.1 MB Notification: Performance of Transformations before backend: time 7.855e-06/0.2653, allocations: 4 kB / 435.9 MB, free: 1.812 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.0014/0.2667, allocations: 0.5792 MB / 436.5 MB, free: 1.203 MB / 334.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.148e-05/0.2667, allocations: 12.03 kB / 436.5 MB, free: 1.191 MB / 334.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 6.069e-05/0.2668, allocations: 50.73 kB / 436.5 MB, free: 1.133 MB / 334.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001653/0.2669, allocations: 40.73 kB / 436.6 MB, free: 1.094 MB / 334.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003818/0.2673, allocations: 207 kB / 436.8 MB, free: 0.8633 MB / 334.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.947e-05/0.2673, allocations: 16.81 kB / 436.8 MB, free: 0.8477 MB / 334.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.615e-05/0.2674, allocations: 20.31 kB / 436.8 MB, free: 0.8281 MB / 334.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0007094/0.2681, allocations: 350.2 kB / 437.1 MB, free: 472 kB / 334.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.106e-05/0.2681, allocations: 3.938 kB / 437.1 MB, free: 468 kB / 334.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.12e-05/0.2681, allocations: 12 kB / 437.2 MB, free: 456 kB / 334.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.164e-06/0.2681, allocations: 8 kB / 437.2 MB, free: 448 kB / 334.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0007525/0.2689, allocations: 269.6 kB / 437.4 MB, free: 176 kB / 334.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001727/0.2706, allocations: 0.9648 MB / 438.4 MB, free: 15.14 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001816/0.2724, allocations: 418.3 kB / 438.8 MB, free: 14.72 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003844/0.2728, allocations: 144.8 kB / 438.9 MB, free: 14.57 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 3.637e-05/0.2729, allocations: 11.92 kB / 439 MB, free: 14.56 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.938e-05/0.2729, allocations: 30.56 kB / 439 MB, free: 14.52 MB / 350.1 MB Notification: Performance of pre-optimization done (n=14): time 2.525e-06/0.2729, allocations: 0 / 439 MB, free: 14.52 MB / 350.1 MB Notification: Performance of matching and sorting (n=14): time 0.004649/0.2775, allocations: 0.9461 MB / 439.9 MB, free: 13.57 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.298e-05/0.2776, allocations: 59.34 kB / 440 MB, free: 13.5 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.000293/0.2779, allocations: 228.8 kB / 440.2 MB, free: 13.27 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 4.231e-05/0.2779, allocations: 29.7 kB / 440.2 MB, free: 13.23 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.000143/0.2781, allocations: 156.2 kB / 440.4 MB, free: 13.08 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 5.942e-05/0.2781, allocations: 51.53 kB / 440.4 MB, free: 13.03 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 9.1e-05/0.2782, allocations: 45.62 kB / 440.5 MB, free: 12.98 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 0.0001819/0.2784, allocations: 330.8 kB / 440.8 MB, free: 12.64 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003362/0.2787, allocations: 107.9 kB / 440.9 MB, free: 12.54 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.000335/0.2791, allocations: 125.5 kB / 441 MB, free: 12.41 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0006427/0.2797, allocations: 224.1 kB / 441.3 MB, free: 12.19 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.31e-06/0.2797, allocations: 3.938 kB / 441.3 MB, free: 12.18 MB / 350.1 MB Notification: Performance of matching and sorting (n=18) (initialization): time 0.002696/0.2824, allocations: 0.6346 MB / 441.9 MB, free: 11.54 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.875e-05/0.2824, allocations: 4 kB / 441.9 MB, free: 11.54 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.306e-06/0.2825, allocations: 4 kB / 441.9 MB, free: 11.53 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0007354/0.2832, allocations: 224.6 kB / 442.1 MB, free: 11.31 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001772/0.2834, allocations: 35.98 kB / 442.2 MB, free: 11.27 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.006654/0.29, allocations: 2.612 MB / 444.8 MB, free: 8.547 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002976/0.2903, allocations: 35.88 kB / 444.8 MB, free: 8.512 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.148e-05/0.2903, allocations: 12.05 kB / 444.8 MB, free: 8.5 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.0002136/0.2906, allocations: 133.7 kB / 444.9 MB, free: 8.359 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.838e-05/0.2906, allocations: 19.91 kB / 445 MB, free: 8.34 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 5.181e-05/0.2907, allocations: 25.77 kB / 445 MB, free: 8.312 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.833e-06/0.2907, allocations: 0 / 445 MB, free: 8.312 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.685e-06/0.2907, allocations: 0 / 445 MB, free: 8.312 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.304e-06/0.2907, allocations: 4.078 kB / 445 MB, free: 8.309 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0004534/0.2911, allocations: 260.5 kB / 445.3 MB, free: 8.012 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.795e-06/0.2911, allocations: 0 / 445.3 MB, free: 8.012 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001604/0.2913, allocations: 39.97 kB / 445.3 MB, free: 7.973 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0006514/0.2919, allocations: 216.7 kB / 445.5 MB, free: 7.758 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.871e-05/0.292, allocations: 0 / 445.5 MB, free: 7.758 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.006632/0.2986, allocations: 2.628 MB / 448.1 MB, free: 5.016 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.944e-06/0.2986, allocations: 0 / 448.1 MB, free: 5.016 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.003194/0.3018, allocations: 0.8473 MB / 449 MB, free: 4.148 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 6.805e-05/0.3019, allocations: 15.89 kB / 449 MB, free: 4.133 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.745e-05/0.3019, allocations: 8 kB / 449 MB, free: 4.125 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002752/0.3022, allocations: 27.97 kB / 449 MB, free: 4.098 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.472e-05/0.3022, allocations: 7.984 kB / 449 MB, free: 4.09 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.635e-05/0.3023, allocations: 15.92 kB / 449 MB, free: 4.074 MB / 350.1 MB Notification: Performance of sorting global known variables: time 0.0001946/0.3025, allocations: 160.5 kB / 449.2 MB, free: 3.914 MB / 350.1 MB Notification: Performance of sort global known variables: time 9e-08/0.3025, allocations: 4.062 kB / 449.2 MB, free: 3.91 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.0005191/0.303, allocations: 75.89 kB / 449.3 MB, free: 3.836 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.003515/0.3065, allocations: 1.388 MB / 450.7 MB, free: 2.414 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.001513/0.308, allocations: 437.6 kB / 451.1 MB, free: 1.977 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 3.176e-06/0.308, allocations: 4 kB / 451.1 MB, free: 1.973 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 0.001027/0.309, allocations: 322.5 kB / 451.4 MB, free: 1.645 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004301/0.3095, allocations: 50.23 kB / 451.5 MB, free: 1.602 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.008559/0.318, allocations: 3.356 MB / 454.8 MB, free: 14.16 MB / 366.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001514/0.3182, allocations: 133.8 kB / 455 MB, free: 14.01 MB / 366.1 MB Notification: Performance of simCode: alias equations: time 9.663e-05/0.3183, allocations: 21.47 kB / 455 MB, free: 13.98 MB / 366.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001058/0.3184, allocations: 63.42 kB / 455 MB, free: 13.92 MB / 366.1 MB Notification: Performance of SimCode: time 1.152e-06/0.3184, allocations: 0 / 455 MB, free: 13.92 MB / 366.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.05497/0.3733, allocations: 7.975 MB / 463 MB, free: 6.09 MB / 366.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 12.25/12.63, allocations: 0 / 463 MB, free: 6.09 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.210123251017649]