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.001267/0.001267, allocations: 112.2 kB / 21.22 MB, free: 0.7422 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.001328/0.001328, allocations: 209.2 kB / 24.53 MB, free: 4.133 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.377/1.377, allocations: 230.6 MB / 258.3 MB, free: 7.988 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="cs",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Electrical.Analog.Examples.OvervoltageProtection,fileNamePrefix="Modelica_4_1_0_Modelica_Electrical_Analog_Examples_OvervoltageProtection",fmuType="cs",version="2.0",platforms={"static"}) [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 0.001484/0.001484, allocations: 51.92 kB / 378.6 MB, free: 3.109 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2578/0.2593, allocations: 53.35 MB / 431.9 MB, free: 6.844 MB / 334.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Analog.Examples.OvervoltageProtection): time 0.004231/0.2635, allocations: 2.747 MB / 434.7 MB, free: 4.086 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.00158/0.2651, allocations: 0.7261 MB / 435.4 MB, free: 3.355 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001483/0.2652, allocations: 4 kB / 435.4 MB, free: 3.352 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001732/0.2654, allocations: 43.56 kB / 435.4 MB, free: 3.309 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001607/0.2656, allocations: 79.28 kB / 435.5 MB, free: 3.23 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003978/0.266, allocations: 115.8 kB / 435.6 MB, free: 3.117 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.0004185/0.2664, allocations: 350.6 kB / 436 MB, free: 2.773 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002106/0.2666, allocations: 68.89 kB / 436 MB, free: 2.703 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0003662/0.267, allocations: 155.5 kB / 436.2 MB, free: 2.551 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002305/0.2672, allocations: 163.3 kB / 436.4 MB, free: 2.391 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 4.508e-05/0.2672, allocations: 28 kB / 436.4 MB, free: 2.363 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 8.945e-05/0.2673, allocations: 39.98 kB / 436.4 MB, free: 2.324 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 6.724e-05/0.2674, allocations: 63.81 kB / 436.5 MB, free: 2.262 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001394/0.2675, allocations: 147.3 kB / 436.6 MB, free: 2.117 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.000432/0.268, allocations: 350.6 kB / 437 MB, free: 1.773 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.047e-06/0.268, allocations: 4 kB / 437 MB, free: 1.77 MB / 334.1 MB Notification: Performance of FrontEnd: time 1.433e-06/0.268, allocations: 0 / 437 MB, free: 1.77 MB / 334.1 MB Notification: Performance of Transformations before backend: time 1.258e-05/0.268, allocations: 7.922 kB / 437 MB, free: 1.762 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.001464/0.2694, allocations: 0.5676 MB / 437.6 MB, free: 1.164 MB / 334.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.75e-05/0.2695, allocations: 12.03 kB / 437.6 MB, free: 1.152 MB / 334.1 MB Notification: Performance of preOpt introduceOutputRealDerivatives (simulation): time 1.985e-05/0.2695, allocations: 4.625 kB / 437.6 MB, free: 1.148 MB / 334.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 7.589e-05/0.2696, allocations: 58.73 kB / 437.6 MB, free: 1.082 MB / 334.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001783/0.2698, allocations: 40.73 kB / 437.7 MB, free: 1.043 MB / 334.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004264/0.2702, allocations: 199 kB / 437.9 MB, free: 0.8203 MB / 334.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.99e-05/0.2702, allocations: 16.81 kB / 437.9 MB, free: 0.8047 MB / 334.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 5.212e-05/0.2703, allocations: 28.36 kB / 437.9 MB, free: 0.7773 MB / 334.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0007026/0.271, allocations: 302.5 kB / 438.2 MB, free: 480 kB / 334.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.466e-05/0.271, allocations: 8 kB / 438.2 MB, free: 472 kB / 334.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.943e-05/0.271, allocations: 8 kB / 438.2 MB, free: 464 kB / 334.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.496e-06/0.271, allocations: 4 kB / 438.2 MB, free: 460 kB / 334.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0007529/0.2718, allocations: 265.6 kB / 438.5 MB, free: 192 kB / 334.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001707/0.2735, allocations: 1.039 MB / 439.5 MB, free: 15.08 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001874/0.2754, allocations: 430.3 kB / 439.9 MB, free: 14.65 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003951/0.2757, allocations: 136.7 kB / 440.1 MB, free: 14.51 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.533e-05/0.2758, allocations: 7.938 kB / 440.1 MB, free: 14.5 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.067e-05/0.2758, allocations: 38.5 kB / 440.1 MB, free: 14.46 MB / 350.1 MB Notification: Performance of pre-optimization done (n=14): time 2.204e-06/0.2758, allocations: 4 kB / 440.1 MB, free: 14.45 MB / 350.1 MB Notification: Performance of matching and sorting (n=14): time 0.004743/0.2805, allocations: 0.9392 MB / 441.1 MB, free: 13.5 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.239e-05/0.2806, allocations: 51.41 kB / 441.1 MB, free: 13.44 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.000247/0.2808, allocations: 228.8 kB / 441.3 MB, free: 13.21 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 2.859e-05/0.2809, allocations: 29.7 kB / 441.4 MB, free: 13.17 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001088/0.281, allocations: 156.2 kB / 441.5 MB, free: 13.02 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 5.414e-05/0.281, allocations: 47.62 kB / 441.6 MB, free: 12.97 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 8.74e-05/0.2811, allocations: 45.64 kB / 441.6 MB, free: 12.92 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 0.0001422/0.2813, allocations: 330.8 kB / 441.9 MB, free: 12.59 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003465/0.2816, allocations: 103.9 kB / 442 MB, free: 12.48 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003488/0.282, allocations: 132 kB / 442.2 MB, free: 12.35 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0006953/0.2827, allocations: 225.5 kB / 442.4 MB, free: 12.12 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.554e-06/0.2827, allocations: 0 / 442.4 MB, free: 12.12 MB / 350.1 MB Notification: Performance of matching and sorting (n=18) (initialization): time 0.002812/0.2855, allocations: 0.6338 MB / 443 MB, free: 11.48 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.28e-05/0.2855, allocations: 4 kB / 443 MB, free: 11.48 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.075e-06/0.2855, allocations: 3.938 kB / 443 MB, free: 11.48 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0007944/0.2863, allocations: 220.6 kB / 443.2 MB, free: 11.26 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001714/0.2865, allocations: 35.98 kB / 443.3 MB, free: 11.22 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.006688/0.2932, allocations: 2.653 MB / 445.9 MB, free: 8.457 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002904/0.2935, allocations: 35.89 kB / 446 MB, free: 8.422 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.149e-05/0.2935, allocations: 7.984 kB / 446 MB, free: 8.414 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.000178/0.2936, allocations: 141.8 kB / 446.1 MB, free: 8.266 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.349e-05/0.2937, allocations: 19.91 kB / 446.1 MB, free: 8.246 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 4.682e-05/0.2937, allocations: 17.78 kB / 446.1 MB, free: 8.227 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.607e-06/0.2938, allocations: 3.984 kB / 446.1 MB, free: 8.223 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.154e-06/0.2938, allocations: 4 kB / 446.2 MB, free: 8.219 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.597e-06/0.2938, allocations: 0 / 446.2 MB, free: 8.219 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0003979/0.2942, allocations: 300.4 kB / 446.4 MB, free: 7.883 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.914e-06/0.2942, allocations: 0 / 446.4 MB, free: 7.883 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001525/0.2943, allocations: 27.98 kB / 446.5 MB, free: 7.855 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0006494/0.295, allocations: 220.7 kB / 446.7 MB, free: 7.637 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.032e-05/0.295, allocations: 3.984 kB / 446.7 MB, free: 7.633 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.006561/0.3015, allocations: 2.639 MB / 449.3 MB, free: 4.879 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.828e-06/0.3015, allocations: 4.031 kB / 449.3 MB, free: 4.875 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.003131/0.3047, allocations: 0.8502 MB / 450.2 MB, free: 4.008 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 4.711e-05/0.3047, allocations: 27.94 kB / 450.2 MB, free: 3.98 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.23e-05/0.3048, allocations: 0 / 450.2 MB, free: 3.98 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002801/0.305, allocations: 31.97 kB / 450.2 MB, free: 3.949 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.034e-05/0.3051, allocations: 11.97 kB / 450.3 MB, free: 3.938 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.191e-05/0.3051, allocations: 8 kB / 450.3 MB, free: 3.93 MB / 350.1 MB Notification: Performance of sorting global known variables: time 0.0001512/0.3053, allocations: 160.5 kB / 450.4 MB, free: 3.773 MB / 350.1 MB Notification: Performance of sort global known variables: time 1.11e-07/0.3053, allocations: 4 kB / 450.4 MB, free: 3.77 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.0004541/0.3057, allocations: 83.83 kB / 450.5 MB, free: 3.688 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.00356/0.3093, allocations: 1.381 MB / 451.9 MB, free: 2.273 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.001525/0.3108, allocations: 434.4 kB / 452.3 MB, free: 1.836 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 2.325e-06/0.3108, allocations: 3.938 kB / 452.3 MB, free: 1.832 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 0.001042/0.3118, allocations: 330.5 kB / 452.6 MB, free: 1.496 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003638/0.3122, allocations: 32.59 kB / 452.7 MB, free: 1.465 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.008593/0.3208, allocations: 3.356 MB / 456 MB, free: 14.02 MB / 366.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003903/0.3212, allocations: 0.7437 MB / 456.8 MB, free: 13.25 MB / 366.1 MB Notification: Performance of simCode: alias equations: time 8.501e-05/0.3213, allocations: 17.48 kB / 456.8 MB, free: 13.24 MB / 366.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001104/0.3214, allocations: 71.41 kB / 456.9 MB, free: 13.17 MB / 366.1 MB Notification: Performance of SimCode: time 6.01e-07/0.3214, allocations: 0 / 456.9 MB, free: 13.17 MB / 366.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.03365/0.355, allocations: 7.539 MB / 464.4 MB, free: 5.797 MB / 366.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 12.04/12.4, allocations: 10.88 kB / 464.4 MB, free: 5.793 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 & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=Modelica_4.1.0_Modelica.Electrical.Analog.Examples.OvervoltageProtection_res.mat --tempDir=temp_Modelica_4_1_0_Modelica_Electrical_Analog_Examples_OvervoltageProtection_fmu --startTime=0 --stopTime=0.4 --stepSize=7.9968e-05 --timeout=50 --tolerance=1e-06 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.mat","/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: 14.891392240009736]