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.001652/0.001652, allocations: 123.4 kB / 17.79 MB, free: 5.227 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.002001/0.002001, allocations: 208.3 kB / 20.75 MB, free: 2.273 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.412/1.412, allocations: 230.6 MB / 254.1 MB, free: 15.09 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.001652/0.001652, allocations: 55.92 kB / 373 MB, free: 10.2 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09778/0.09943, allocations: 53.33 MB / 426.3 MB, free: 4.785 MB / 350.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Analog.Examples.OvervoltageProtection): time 0.004577/0.104, allocations: 2.736 MB / 429.1 MB, free: 2.031 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.001576/0.1056, allocations: 0.7167 MB / 429.8 MB, free: 1.309 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002089/0.1058, allocations: 4 kB / 429.8 MB, free: 1.305 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001822/0.106, allocations: 43.58 kB / 429.8 MB, free: 1.262 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0002477/0.1062, allocations: 79.25 kB / 429.9 MB, free: 1.184 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0004111/0.1066, allocations: 111.8 kB / 430 MB, free: 1.074 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.0004928/0.1071, allocations: 362.5 kB / 430.4 MB, free: 0.7188 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001863/0.1073, allocations: 68.7 kB / 430.4 MB, free: 0.6445 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0003256/0.1076, allocations: 147.5 kB / 430.6 MB, free: 0.5 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002498/0.1079, allocations: 163.3 kB / 430.7 MB, free: 348 kB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 8.613e-05/0.108, allocations: 32 kB / 430.8 MB, free: 316 kB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 9.735e-05/0.1081, allocations: 36 kB / 430.8 MB, free: 280 kB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 6.302e-05/0.1081, allocations: 63.81 kB / 430.9 MB, free: 216 kB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001619/0.1083, allocations: 151.3 kB / 431 MB, free: 64 kB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.1965/0.3048, allocations: 349.5 kB / 431.4 MB, free: 8.008 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.2e-06/0.3048, allocations: 0 / 431.4 MB, free: 8.008 MB / 350.1 MB Notification: Performance of FrontEnd: time 1.713e-06/0.3048, allocations: 0.5 kB / 431.4 MB, free: 8.008 MB / 350.1 MB Notification: Performance of Transformations before backend: time 1.702e-05/0.3048, allocations: 1.312 kB / 431.4 MB, free: 8.008 MB / 350.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.001426/0.3063, allocations: 0.6474 MB / 432 MB, free: 7.562 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.603e-05/0.3063, allocations: 10.25 kB / 432 MB, free: 7.562 MB / 350.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 5.393e-05/0.3064, allocations: 54.97 kB / 432.1 MB, free: 7.523 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001794/0.3066, allocations: 43.84 kB / 432.1 MB, free: 7.508 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003575/0.3069, allocations: 261.2 kB / 432.4 MB, free: 7.285 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.987e-05/0.3069, allocations: 11.94 kB / 432.4 MB, free: 7.285 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 5.207e-05/0.307, allocations: 21 kB / 432.4 MB, free: 7.285 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0006319/0.3076, allocations: 309.7 kB / 432.7 MB, free: 7.223 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.128e-05/0.3076, allocations: 2.875 kB / 432.7 MB, free: 7.223 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.78e-05/0.3077, allocations: 6.031 kB / 432.7 MB, free: 7.223 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.865e-06/0.3077, allocations: 5.219 kB / 432.7 MB, free: 7.223 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0007639/0.3084, allocations: 272.7 kB / 433 MB, free: 7.219 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001365/0.3098, allocations: 1.063 MB / 434 MB, free: 6.645 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001867/0.3117, allocations: 430.1 kB / 434.5 MB, free: 6.613 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003961/0.3121, allocations: 137 kB / 434.6 MB, free: 6.602 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 3.243e-05/0.3121, allocations: 5.5 kB / 434.6 MB, free: 6.602 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.715e-05/0.3121, allocations: 36 kB / 434.6 MB, free: 6.562 MB / 350.1 MB Notification: Performance of pre-optimization done (n=14): time 1.673e-06/0.3121, allocations: 0 / 434.6 MB, free: 6.562 MB / 350.1 MB Notification: Performance of matching and sorting (n=14): time 0.004762/0.3169, allocations: 1.02 MB / 435.7 MB, free: 6.391 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 2.803e-05/0.3169, allocations: 53.11 kB / 435.7 MB, free: 6.328 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002265/0.3171, allocations: 217.1 kB / 435.9 MB, free: 6.219 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 2.666e-05/0.3171, allocations: 30.64 kB / 436 MB, free: 6.188 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 8.174e-05/0.3172, allocations: 162.9 kB / 436.1 MB, free: 6.074 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 4.226e-05/0.3173, allocations: 52.67 kB / 436.2 MB, free: 6.043 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 8.441e-05/0.3174, allocations: 40.66 kB / 436.2 MB, free: 6.023 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 6.543e-05/0.3174, allocations: 332.2 kB / 436.5 MB, free: 5.707 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003505/0.3178, allocations: 103.9 kB / 436.6 MB, free: 5.707 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003483/0.3181, allocations: 129.2 kB / 436.8 MB, free: 5.688 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0006711/0.3188, allocations: 231.1 kB / 437 MB, free: 5.664 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.016e-06/0.3188, allocations: 0 / 437 MB, free: 5.664 MB / 350.1 MB Notification: Performance of matching and sorting (n=18) (initialization): time 0.002875/0.3217, allocations: 0.629 MB / 437.6 MB, free: 5.598 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.093e-05/0.3217, allocations: 5.281 kB / 437.6 MB, free: 5.598 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.822e-06/0.3217, allocations: 0 / 437.6 MB, free: 5.598 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.000738/0.3224, allocations: 219.3 kB / 437.8 MB, free: 5.582 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001763/0.3226, allocations: 41.3 kB / 437.9 MB, free: 5.578 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.006504/0.3291, allocations: 2.746 MB / 440.6 MB, free: 4.047 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003187/0.3294, allocations: 34.86 kB / 440.6 MB, free: 4.039 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.278e-05/0.3295, allocations: 9.328 kB / 440.7 MB, free: 4.039 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.0001389/0.3296, allocations: 132.4 kB / 440.8 MB, free: 3.922 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.311e-05/0.3296, allocations: 21.81 kB / 440.8 MB, free: 3.91 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 5.013e-05/0.3297, allocations: 24.08 kB / 440.8 MB, free: 3.906 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.086e-06/0.3297, allocations: 2.859 kB / 440.8 MB, free: 3.906 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.176e-06/0.3297, allocations: 0 / 440.8 MB, free: 3.906 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.988e-06/0.3297, allocations: 1.719 kB / 440.8 MB, free: 3.906 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0003657/0.3301, allocations: 337.8 kB / 441.2 MB, free: 3.707 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.104e-06/0.3301, allocations: 0.5312 kB / 441.2 MB, free: 3.707 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001741/0.3302, allocations: 29.55 kB / 441.2 MB, free: 3.707 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.00073/0.331, allocations: 221.1 kB / 441.4 MB, free: 3.688 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.055e-05/0.331, allocations: 8.625 kB / 441.4 MB, free: 3.688 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.006199/0.3372, allocations: 2.735 MB / 444.2 MB, free: 1.918 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.953e-06/0.3372, allocations: 0 / 444.2 MB, free: 1.918 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.003231/0.3404, allocations: 0.8435 MB / 445 MB, free: 1.641 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 7.949e-05/0.3405, allocations: 103.2 kB / 445.1 MB, free: 1.527 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.213e-05/0.3405, allocations: 7.062 kB / 445.1 MB, free: 1.523 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002854/0.3408, allocations: 34.28 kB / 445.1 MB, free: 1.52 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.381e-05/0.3409, allocations: 7.984 kB / 445.1 MB, free: 1.52 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.893e-05/0.3409, allocations: 7.453 kB / 445.2 MB, free: 1.52 MB / 350.1 MB Notification: Performance of sorting global known variables: time 0.0001344/0.341, allocations: 159.6 kB / 445.3 MB, free: 1.414 MB / 350.1 MB Notification: Performance of sort global known variables: time 7e-08/0.341, allocations: 0 / 445.3 MB, free: 1.414 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.0004861/0.3415, allocations: 82.14 kB / 445.4 MB, free: 1.398 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.003416/0.3449, allocations: 1.386 MB / 446.8 MB, free: 0.5898 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.001559/0.3465, allocations: 450.3 kB / 447.2 MB, free: 420 kB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 3.297e-06/0.3465, allocations: 1.062 kB / 447.2 MB, free: 420 kB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 0.001075/0.3476, allocations: 322.2 kB / 447.5 MB, free: 272 kB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004002/0.348, allocations: 41.08 kB / 447.6 MB, free: 256 kB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.009083/0.3571, allocations: 3.353 MB / 450.9 MB, free: 14.5 MB / 366.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004432/0.3575, allocations: 0.7445 MB / 451.7 MB, free: 13.8 MB / 366.1 MB Notification: Performance of simCode: alias equations: time 0.0001195/0.3576, allocations: 13.56 kB / 451.7 MB, free: 13.8 MB / 366.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.000117/0.3577, allocations: 74.69 kB / 451.8 MB, free: 13.74 MB / 366.1 MB Notification: Performance of SimCode: time 2.344e-06/0.3577, allocations: 0 / 451.8 MB, free: 13.74 MB / 366.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.03794/0.3957, allocations: 7.378 MB / 459.1 MB, free: 10.87 MB / 366.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 11.4/11.8, allocations: 16.55 kB / 459.1 MB, free: 10.86 MB / 366.1 MB " [Timeout remaining time 648] (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.213931149803102]