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.001539/0.001539, allocations: 101.5 kB / 21.21 MB, free: 0.6523 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.001568/0.001568, allocations: 184.6 kB / 24.49 MB, free: 3.961 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.348/1.348, allocations: 225.7 MB / 253.3 MB, free: 12.84 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="cs",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Electrical.Analog.Examples.OvervoltageProtection,fileNamePrefix="Modelica_4_0_0_Modelica_Electrical_Analog_Examples_OvervoltageProtection",fmuType="cs",version="2.0",platforms={"static"}) [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 0.001419/0.001419, allocations: 47.92 kB / 371.2 MB, free: 9.703 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.249/0.2504, allocations: 52.18 MB / 423.4 MB, free: 14.39 MB / 334.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Analog.Examples.OvervoltageProtection): time 0.003778/0.2542, allocations: 2.532 MB / 425.9 MB, free: 11.85 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.00103/0.2553, allocations: 0.635 MB / 426.5 MB, free: 11.21 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001014/0.2554, allocations: 4 kB / 426.5 MB, free: 11.2 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.00013/0.2555, allocations: 39.58 kB / 426.6 MB, free: 11.16 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001397/0.2556, allocations: 79.27 kB / 426.6 MB, free: 11.09 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002955/0.2559, allocations: 99.8 kB / 426.7 MB, free: 10.99 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.0003821/0.2563, allocations: 366.5 kB / 427.1 MB, free: 10.63 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001594/0.2565, allocations: 64.89 kB / 427.2 MB, free: 10.56 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002102/0.2567, allocations: 147.5 kB / 427.3 MB, free: 10.42 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.000221/0.2569, allocations: 159.3 kB / 427.5 MB, free: 10.26 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 5.167e-05/0.2569, allocations: 32 kB / 427.5 MB, free: 10.23 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 5.472e-05/0.257, allocations: 32 kB / 427.5 MB, free: 10.2 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 6.91e-05/0.2571, allocations: 71.73 kB / 427.6 MB, free: 10.13 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001343/0.2572, allocations: 119.5 kB / 427.7 MB, free: 10.01 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.000379/0.2576, allocations: 354.6 kB / 428.1 MB, free: 9.664 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.318e-06/0.2576, allocations: 0 / 428.1 MB, free: 9.664 MB / 334.1 MB Notification: Performance of FrontEnd: time 1.072e-06/0.2576, allocations: 0 / 428.1 MB, free: 9.664 MB / 334.1 MB Notification: Performance of Transformations before backend: time 5.47e-06/0.2576, allocations: 0 / 428.1 MB, free: 9.664 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.001459/0.259, allocations: 0.5676 MB / 428.6 MB, free: 9.066 MB / 334.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.849e-05/0.2591, allocations: 12.03 kB / 428.6 MB, free: 9.055 MB / 334.1 MB Notification: Performance of preOpt introduceOutputRealDerivatives (simulation): time 1.78e-05/0.2591, allocations: 4.625 kB / 428.6 MB, free: 9.051 MB / 334.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 6.116e-05/0.2592, allocations: 58.73 kB / 428.7 MB, free: 8.984 MB / 334.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 6.132e-05/0.2592, allocations: 28.75 kB / 428.7 MB, free: 8.957 MB / 334.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003459/0.2596, allocations: 214.9 kB / 428.9 MB, free: 8.719 MB / 334.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.492e-05/0.2596, allocations: 12.81 kB / 429 MB, free: 8.707 MB / 334.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.689e-05/0.2596, allocations: 20.38 kB / 429 MB, free: 8.688 MB / 334.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0007129/0.2604, allocations: 350 kB / 429.3 MB, free: 8.316 MB / 334.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.168e-05/0.2604, allocations: 3.984 kB / 429.3 MB, free: 8.312 MB / 334.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.942e-05/0.2604, allocations: 12 kB / 429.3 MB, free: 8.301 MB / 334.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.556e-06/0.2604, allocations: 4 kB / 429.3 MB, free: 8.297 MB / 334.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0007743/0.2612, allocations: 269.5 kB / 429.6 MB, free: 8.031 MB / 334.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001665/0.2628, allocations: 0.9571 MB / 430.6 MB, free: 7.004 MB / 334.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.00206/0.2649, allocations: 434.2 kB / 431 MB, free: 6.57 MB / 334.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003993/0.2653, allocations: 132.8 kB / 431.1 MB, free: 6.438 MB / 334.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.521e-05/0.2653, allocations: 4 kB / 431.1 MB, free: 6.434 MB / 334.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.713e-05/0.2654, allocations: 34.5 kB / 431.1 MB, free: 6.391 MB / 334.1 MB Notification: Performance of pre-optimization done (n=14): time 1.633e-06/0.2654, allocations: 3.938 kB / 431.1 MB, free: 6.387 MB / 334.1 MB Notification: Performance of matching and sorting (n=14): time 0.005093/0.2705, allocations: 0.9548 MB / 432.1 MB, free: 5.422 MB / 334.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.316e-05/0.2705, allocations: 55.41 kB / 432.2 MB, free: 5.355 MB / 334.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002588/0.2708, allocations: 216.2 kB / 432.4 MB, free: 5.133 MB / 334.1 MB Notification: Performance of collectPreVariables (initialization): time 3.355e-05/0.2708, allocations: 25.7 kB / 432.4 MB, free: 5.102 MB / 334.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001312/0.2709, allocations: 160.2 kB / 432.5 MB, free: 4.938 MB / 334.1 MB Notification: Performance of collectInitialBindings (initialization): time 5.426e-05/0.271, allocations: 47.53 kB / 432.6 MB, free: 4.891 MB / 334.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 9.378e-05/0.2711, allocations: 41.7 kB / 432.6 MB, free: 4.844 MB / 334.1 MB Notification: Performance of setup shared object (initialization): time 0.0001633/0.2713, allocations: 330.8 kB / 433 MB, free: 4.512 MB / 334.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003547/0.2716, allocations: 103.9 kB / 433.1 MB, free: 4.41 MB / 334.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003567/0.272, allocations: 129.6 kB / 433.2 MB, free: 4.277 MB / 334.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0006733/0.2726, allocations: 232.6 kB / 433.4 MB, free: 4.047 MB / 334.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.739e-06/0.2726, allocations: 8 kB / 433.4 MB, free: 4.039 MB / 334.1 MB Notification: Performance of matching and sorting (n=18) (initialization): time 0.00298/0.2756, allocations: 0.6229 MB / 434 MB, free: 3.406 MB / 334.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.035e-05/0.2756, allocations: 4 kB / 434 MB, free: 3.402 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.808e-06/0.2757, allocations: 4 kB / 434.1 MB, free: 3.398 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0007664/0.2764, allocations: 220.7 kB / 434.3 MB, free: 3.18 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001752/0.2766, allocations: 39.91 kB / 434.3 MB, free: 3.141 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.006946/0.2835, allocations: 2.61 MB / 436.9 MB, free: 428 kB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003075/0.2838, allocations: 43.95 kB / 437 MB, free: 384 kB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.035e-05/0.2839, allocations: 4 kB / 437 MB, free: 380 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.0001636/0.284, allocations: 129.8 kB / 437.1 MB, free: 240 kB / 334.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.298e-05/0.2841, allocations: 19.91 kB / 437.1 MB, free: 220 kB / 334.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 5.069e-05/0.2841, allocations: 25.45 kB / 437.1 MB, free: 192 kB / 334.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.657e-06/0.2841, allocations: 4 kB / 437.1 MB, free: 188 kB / 334.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.084e-06/0.2841, allocations: 0 / 437.1 MB, free: 188 kB / 334.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.297e-06/0.2841, allocations: 4 kB / 437.1 MB, free: 184 kB / 334.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0003922/0.2845, allocations: 268.5 kB / 437.4 MB, free: 15.87 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.215e-06/0.2845, allocations: 0 / 437.4 MB, free: 15.87 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001592/0.2847, allocations: 35.91 kB / 437.4 MB, free: 15.84 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0006567/0.2854, allocations: 216.7 kB / 437.7 MB, free: 15.62 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.155e-05/0.2854, allocations: 3.984 kB / 437.7 MB, free: 15.62 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.006665/0.292, allocations: 2.605 MB / 440.3 MB, free: 12.89 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.482e-06/0.292, allocations: 0 / 440.3 MB, free: 12.89 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.003286/0.2953, allocations: 0.855 MB / 441.1 MB, free: 12.02 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 4.781e-05/0.2954, allocations: 23.92 kB / 441.1 MB, free: 12 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.416e-05/0.2954, allocations: 7.922 kB / 441.1 MB, free: 11.99 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002967/0.2957, allocations: 32.03 kB / 441.2 MB, free: 11.96 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.498e-05/0.2958, allocations: 15.97 kB / 441.2 MB, free: 11.95 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.152e-05/0.2958, allocations: 8 kB / 441.2 MB, free: 11.94 MB / 350.1 MB Notification: Performance of sorting global known variables: time 0.0001483/0.2959, allocations: 161.6 kB / 441.4 MB, free: 11.78 MB / 350.1 MB Notification: Performance of sort global known variables: time 8e-08/0.2959, allocations: 0 / 441.4 MB, free: 11.78 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.0004477/0.2964, allocations: 83.83 kB / 441.4 MB, free: 11.7 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.003644/0.3, allocations: 1.38 MB / 442.8 MB, free: 10.29 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.001591/0.3016, allocations: 438.4 kB / 443.3 MB, free: 9.852 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 6.713e-06/0.3016, allocations: 4 kB / 443.3 MB, free: 9.848 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 0.001085/0.3027, allocations: 322.5 kB / 443.6 MB, free: 9.52 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003696/0.3031, allocations: 36.58 kB / 443.6 MB, free: 9.484 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.008836/0.3119, allocations: 3.342 MB / 446.9 MB, free: 6.055 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001436/0.312, allocations: 145.8 kB / 447.1 MB, free: 5.898 MB / 350.1 MB Notification: Performance of simCode: alias equations: time 8.193e-05/0.3121, allocations: 9.5 kB / 447.1 MB, free: 5.887 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.000104/0.3122, allocations: 63.41 kB / 447.2 MB, free: 5.824 MB / 350.1 MB Notification: Performance of SimCode: time 9.32e-07/0.3122, allocations: 4 kB / 447.2 MB, free: 5.82 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.03337/0.3456, allocations: 7.421 MB / 454.6 MB, free: 14.59 MB / 366.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 12.52/12.86, allocations: 15.78 kB / 454.6 MB, free: 14.58 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 & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=Modelica_4.0.0_Modelica.Electrical.Analog.Examples.OvervoltageProtection_res.mat --tempDir=temp_Modelica_4_0_0_Modelica_Electrical_Analog_Examples_OvervoltageProtection_fmu --startTime=0 --stopTime=0.4 --stepSize=7.9968e-05 --timeout=50 --tolerance=1e-06 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.mat","/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.319713235017844]