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.001376/0.001376, allocations: 105.1 kB / 21.22 MB, free: 0.6289 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.001435/0.001435, allocations: 218.7 kB / 24.52 MB, free: 3.91 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.408/1.408, allocations: 230.6 MB / 258.3 MB, free: 7.777 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.001535/0.001535, allocations: 43.92 kB / 378.5 MB, free: 2.973 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2792/0.2808, allocations: 53.36 MB / 431.9 MB, free: 6.645 MB / 334.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Analog.Examples.OvervoltageProtection): time 0.004093/0.2849, allocations: 2.568 MB / 434.4 MB, free: 4.07 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.001357/0.2862, allocations: 0.6623 MB / 435.1 MB, free: 3.402 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001199/0.2864, allocations: 7.938 kB / 435.1 MB, free: 3.395 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001575/0.2865, allocations: 47.56 kB / 435.1 MB, free: 3.348 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001619/0.2867, allocations: 79.28 kB / 435.2 MB, free: 3.27 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003552/0.287, allocations: 111.8 kB / 435.3 MB, free: 3.16 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.0004351/0.2875, allocations: 362.5 kB / 435.7 MB, free: 2.805 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001729/0.2876, allocations: 64.89 kB / 435.7 MB, free: 2.738 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002629/0.2879, allocations: 143.5 kB / 435.9 MB, free: 2.598 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002267/0.2881, allocations: 171.3 kB / 436.1 MB, free: 2.43 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 4.867e-05/0.2882, allocations: 28 kB / 436.1 MB, free: 2.402 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 9.897e-05/0.2883, allocations: 40 kB / 436.1 MB, free: 2.363 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 7.352e-05/0.2883, allocations: 67.8 kB / 436.2 MB, free: 2.297 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001406/0.2885, allocations: 127.4 kB / 436.3 MB, free: 2.172 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0004255/0.2889, allocations: 350.7 kB / 436.7 MB, free: 1.828 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.599e-06/0.2889, allocations: 0 / 436.7 MB, free: 1.828 MB / 334.1 MB Notification: Performance of FrontEnd: time 2.064e-06/0.2889, allocations: 0 / 436.7 MB, free: 1.828 MB / 334.1 MB Notification: Performance of Transformations before backend: time 1.385e-05/0.2889, allocations: 0 / 436.7 MB, free: 1.828 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.001577/0.2905, allocations: 0.5715 MB / 437.2 MB, free: 1.227 MB / 334.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.651e-05/0.2906, allocations: 12.03 kB / 437.2 MB, free: 1.215 MB / 334.1 MB Notification: Performance of preOpt introduceOutputRealDerivatives (simulation): time 1.596e-05/0.2906, allocations: 8.625 kB / 437.2 MB, free: 1.207 MB / 334.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 6.231e-05/0.2906, allocations: 54.73 kB / 437.3 MB, free: 1.145 MB / 334.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001884/0.2908, allocations: 44.67 kB / 437.3 MB, free: 1.102 MB / 334.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004219/0.2912, allocations: 206.9 kB / 437.5 MB, free: 0.8711 MB / 334.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.793e-05/0.2913, allocations: 16.81 kB / 437.6 MB, free: 0.8555 MB / 334.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 5.419e-05/0.2913, allocations: 20.38 kB / 437.6 MB, free: 0.8359 MB / 334.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0007464/0.2921, allocations: 358 kB / 437.9 MB, free: 472 kB / 334.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 9.849e-06/0.2921, allocations: 0 / 437.9 MB, free: 472 kB / 334.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.79e-05/0.2921, allocations: 4 kB / 437.9 MB, free: 468 kB / 334.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 9.057e-06/0.2921, allocations: 8 kB / 437.9 MB, free: 460 kB / 334.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0007876/0.2929, allocations: 265.5 kB / 438.2 MB, free: 192 kB / 334.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001718/0.2946, allocations: 0.9687 MB / 439.2 MB, free: 15.15 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.002043/0.2967, allocations: 438.2 kB / 439.6 MB, free: 14.71 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.000393/0.2971, allocations: 132.8 kB / 439.7 MB, free: 14.58 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.884e-05/0.2971, allocations: 4 kB / 439.7 MB, free: 14.57 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.44e-05/0.2971, allocations: 42.5 kB / 439.8 MB, free: 14.52 MB / 350.1 MB Notification: Performance of pre-optimization done (n=14): time 1.463e-06/0.2971, allocations: 0 / 439.8 MB, free: 14.52 MB / 350.1 MB Notification: Performance of matching and sorting (n=14): time 0.005298/0.3024, allocations: 0.9392 MB / 440.7 MB, free: 13.57 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.559e-05/0.3025, allocations: 55.39 kB / 440.8 MB, free: 13.51 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003358/0.3028, allocations: 228.9 kB / 441 MB, free: 13.27 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 4.77e-05/0.3028, allocations: 25.7 kB / 441 MB, free: 13.24 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001203/0.303, allocations: 160.2 kB / 441.2 MB, free: 13.08 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 5.931e-05/0.303, allocations: 51.58 kB / 441.2 MB, free: 13.03 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 8.691e-05/0.3031, allocations: 33.66 kB / 441.3 MB, free: 12.99 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 0.0001614/0.3033, allocations: 342.8 kB / 441.6 MB, free: 12.65 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003605/0.3036, allocations: 103.9 kB / 441.7 MB, free: 12.55 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003741/0.304, allocations: 129.5 kB / 441.8 MB, free: 12.41 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0006855/0.3047, allocations: 228.4 kB / 442 MB, free: 12.19 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.151e-06/0.3047, allocations: 7.984 kB / 442 MB, free: 12.18 MB / 350.1 MB Notification: Performance of matching and sorting (n=18) (initialization): time 0.003056/0.3078, allocations: 0.6229 MB / 442.7 MB, free: 11.55 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.189e-05/0.3078, allocations: 8 kB / 442.7 MB, free: 11.54 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.277e-06/0.3078, allocations: 4 kB / 442.7 MB, free: 11.54 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0008078/0.3086, allocations: 212.7 kB / 442.9 MB, free: 11.32 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002023/0.3088, allocations: 39.91 kB / 442.9 MB, free: 11.29 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.007502/0.3163, allocations: 2.62 MB / 445.6 MB, free: 8.551 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003387/0.3166, allocations: 35.89 kB / 445.6 MB, free: 8.516 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.434e-05/0.3167, allocations: 4 kB / 445.6 MB, free: 8.512 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.0002098/0.3169, allocations: 138.3 kB / 445.7 MB, free: 8.367 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.465e-05/0.3169, allocations: 16 kB / 445.7 MB, free: 8.352 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 6.335e-05/0.317, allocations: 25.81 kB / 445.8 MB, free: 8.324 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.924e-06/0.317, allocations: 8 kB / 445.8 MB, free: 8.316 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.846e-06/0.317, allocations: 0 / 445.8 MB, free: 8.316 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.236e-06/0.317, allocations: 0 / 445.8 MB, free: 8.316 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0004144/0.3174, allocations: 264.5 kB / 446 MB, free: 8.016 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.304e-06/0.3174, allocations: 3.938 kB / 446 MB, free: 8.012 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001679/0.3176, allocations: 35.91 kB / 446.1 MB, free: 7.977 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0006954/0.3183, allocations: 216.7 kB / 446.3 MB, free: 7.762 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.012e-05/0.3183, allocations: 11.98 kB / 446.3 MB, free: 7.75 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.007175/0.3255, allocations: 2.612 MB / 448.9 MB, free: 5.023 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.034e-06/0.3255, allocations: 0 / 448.9 MB, free: 5.023 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.003483/0.329, allocations: 0.8501 MB / 449.8 MB, free: 4.156 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 5.709e-05/0.329, allocations: 19.89 kB / 449.8 MB, free: 4.137 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.54e-05/0.3291, allocations: 3.938 kB / 449.8 MB, free: 4.133 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003116/0.3294, allocations: 40.03 kB / 449.8 MB, free: 4.094 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.008e-05/0.3294, allocations: 11.97 kB / 449.8 MB, free: 4.082 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.991e-05/0.3295, allocations: 4 kB / 449.8 MB, free: 4.078 MB / 350.1 MB Notification: Performance of sorting global known variables: time 0.0001727/0.3296, allocations: 160.5 kB / 450 MB, free: 3.922 MB / 350.1 MB Notification: Performance of sort global known variables: time 8e-08/0.3296, allocations: 0 / 450 MB, free: 3.922 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.0004888/0.3301, allocations: 83.83 kB / 450.1 MB, free: 3.84 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.003848/0.334, allocations: 1.377 MB / 451.4 MB, free: 2.43 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.001657/0.3356, allocations: 438.4 kB / 451.9 MB, free: 1.988 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 3.186e-06/0.3356, allocations: 0 / 451.9 MB, free: 1.988 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 0.001129/0.3367, allocations: 330.5 kB / 452.2 MB, free: 1.652 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004238/0.3372, allocations: 40.64 kB / 452.2 MB, free: 1.613 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.009297/0.3465, allocations: 3.356 MB / 455.6 MB, free: 14.18 MB / 366.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001628/0.3466, allocations: 137.8 kB / 455.7 MB, free: 14.02 MB / 366.1 MB Notification: Performance of simCode: alias equations: time 9.395e-05/0.3467, allocations: 17.47 kB / 455.7 MB, free: 14 MB / 366.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001275/0.3469, allocations: 71.41 kB / 455.8 MB, free: 13.93 MB / 366.1 MB Notification: Performance of SimCode: time 1.252e-06/0.3469, allocations: 4 kB / 455.8 MB, free: 13.93 MB / 366.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.03478/0.3816, allocations: 7.477 MB / 463.3 MB, free: 6.648 MB / 366.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 12.53/12.91, allocations: 3.859 kB / 463.3 MB, free: 6.645 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: 15.468403866980225]