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.0008301/0.0008301, allocations: 76.08 kB / 20.67 MB, free: 3.891 MB / 18.57 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.0008042/0.0008042, allocations: 149.1 kB / 23.93 MB, free: 0.6289 MB / 18.57 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 0.8694/0.8694, allocations: 173.3 MB / 200.4 MB, free: 9.445 MB / 186.7 MB " [Timeout remaining time 179] 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="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Electrical.Analog.Examples.OvervoltageProtection,fileNamePrefix="Modelica_4_0_0_Modelica_Electrical_Analog_Examples_OvervoltageProtection",fmuType="me",version="2.0",platforms={"static"}) [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 1.954e-06/1.954e-06, allocations: 0 / 318.4 MB, free: 6.359 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 2.22e-05/2.416e-05, allocations: 6.281 kB / 318.4 MB, free: 6.352 MB / 282.7 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Analog.Examples.OvervoltageProtection): time 0.003802/0.003826, allocations: 2.508 MB / 321 MB, free: 3.824 MB / 282.7 MB Notification: Performance of NFInst.instExpressions: time 0.001105/0.004931, allocations: 0.6466 MB / 321.6 MB, free: 3.172 MB / 282.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001017/0.005033, allocations: 7.938 kB / 321.6 MB, free: 3.164 MB / 282.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0001186/0.005151, allocations: 47.56 kB / 321.7 MB, free: 3.117 MB / 282.7 MB Notification: Performance of NFTyping.typeBindings: time 9.792e-05/0.005249, allocations: 87.14 kB / 321.7 MB, free: 3.031 MB / 282.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.000262/0.005511, allocations: 99.78 kB / 321.8 MB, free: 2.934 MB / 282.7 MB Notification: Performance of NFFlatten.flatten: time 0.0002857/0.005797, allocations: 374.3 kB / 322.2 MB, free: 2.566 MB / 282.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001539/0.005951, allocations: 60.89 kB / 322.3 MB, free: 2.504 MB / 282.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002246/0.006176, allocations: 203.6 kB / 322.5 MB, free: 2.305 MB / 282.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001219/0.006297, allocations: 127.6 kB / 322.6 MB, free: 2.18 MB / 282.7 MB Notification: Performance of NFPackage.collectConstants: time 4.122e-05/0.006339, allocations: 32 kB / 322.6 MB, free: 2.148 MB / 282.7 MB Notification: Performance of NFFlatten.collectFunctions: time 2.922e-05/0.006368, allocations: 28 kB / 322.6 MB, free: 2.121 MB / 282.7 MB Notification: Performance of NFScalarize.scalarize: time 4.136e-05/0.006409, allocations: 63.8 kB / 322.7 MB, free: 2.059 MB / 282.7 MB Notification: Performance of NFVerifyModel.verify: time 7.581e-05/0.006485, allocations: 107.7 kB / 322.8 MB, free: 1.953 MB / 282.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0002807/0.006766, allocations: 366.9 kB / 323.2 MB, free: 1.594 MB / 282.7 MB Notification: Performance of FrontEnd - DAE generated: time 3.487e-06/0.006769, allocations: 0 / 323.2 MB, free: 1.594 MB / 282.7 MB Notification: Performance of FrontEnd: time 1.433e-06/0.006771, allocations: 0 / 323.2 MB, free: 1.594 MB / 282.7 MB Notification: Performance of Transformations before backend: time 5.49e-06/0.006776, allocations: 0 / 323.2 MB, free: 1.594 MB / 282.7 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.0009074/0.007684, allocations: 0.5755 MB / 323.7 MB, free: 0.9883 MB / 282.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.193e-05/0.007726, allocations: 8.922 kB / 323.8 MB, free: 0.9805 MB / 282.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 4.743e-05/0.007773, allocations: 58.67 kB / 323.8 MB, free: 0.9141 MB / 282.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.686e-05/0.00782, allocations: 32.75 kB / 323.8 MB, free: 0.8828 MB / 282.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002621/0.008082, allocations: 202.3 kB / 324 MB, free: 0.6562 MB / 282.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.54e-05/0.008097, allocations: 16.88 kB / 324.1 MB, free: 0.6406 MB / 282.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.151e-05/0.008129, allocations: 24.38 kB / 324.1 MB, free: 0.6172 MB / 282.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004296/0.008558, allocations: 347.5 kB / 324.4 MB, free: 256 kB / 282.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 8.826e-06/0.008567, allocations: 192 / 324.4 MB, free: 256 kB / 282.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.391e-05/0.008591, allocations: 16.12 kB / 324.4 MB, free: 240 kB / 282.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.663e-06/0.008598, allocations: 4 kB / 324.4 MB, free: 236 kB / 282.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0004237/0.009021, allocations: 265.8 kB / 324.7 MB, free: 15.96 MB / 298.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001053/0.01007, allocations: 0.9616 MB / 325.7 MB, free: 14.94 MB / 298.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0009338/0.01101, allocations: 434.2 kB / 326.1 MB, free: 14.5 MB / 298.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002166/0.01122, allocations: 132.8 kB / 326.2 MB, free: 14.37 MB / 298.7 MB Notification: Performance of preOpt evalFunc (simulation): time 2.258e-05/0.01125, allocations: 7.984 kB / 326.2 MB, free: 14.36 MB / 298.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.168e-05/0.01127, allocations: 38.5 kB / 326.3 MB, free: 14.32 MB / 298.7 MB Notification: Performance of pre-optimization done (n=14): time 1.283e-06/0.01127, allocations: 0 / 326.3 MB, free: 14.32 MB / 298.7 MB Notification: Performance of matching and sorting (n=14): time 0.002415/0.01369, allocations: 0.9494 MB / 327.2 MB, free: 13.36 MB / 298.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 2.836e-05/0.01371, allocations: 51.41 kB / 327.3 MB, free: 13.3 MB / 298.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001884/0.0139, allocations: 216.1 kB / 327.5 MB, free: 13.07 MB / 298.7 MB Notification: Performance of collectPreVariables (initialization): time 2.385e-05/0.01393, allocations: 33.7 kB / 327.5 MB, free: 13.04 MB / 298.7 MB Notification: Performance of collectInitialEqns (initialization): time 8.011e-05/0.01401, allocations: 156.2 kB / 327.7 MB, free: 12.88 MB / 298.7 MB Notification: Performance of collectInitialBindings (initialization): time 3.709e-05/0.01404, allocations: 59.41 kB / 327.7 MB, free: 12.82 MB / 298.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 5.879e-05/0.0141, allocations: 37.69 kB / 327.7 MB, free: 12.78 MB / 298.7 MB Notification: Performance of setup shared object (initialization): time 8.996e-05/0.01419, allocations: 326.8 kB / 328.1 MB, free: 12.45 MB / 298.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002078/0.0144, allocations: 107.9 kB / 328.2 MB, free: 12.34 MB / 298.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001986/0.0146, allocations: 132.5 kB / 328.3 MB, free: 12.21 MB / 298.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003704/0.01497, allocations: 217.6 kB / 328.5 MB, free: 11.99 MB / 298.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.575e-06/0.01497, allocations: 0 / 328.5 MB, free: 11.99 MB / 298.7 MB Notification: Performance of matching and sorting (n=18) (initialization): time 0.001453/0.01642, allocations: 0.6423 MB / 329.2 MB, free: 11.34 MB / 298.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.137e-05/0.01645, allocations: 6.5 kB / 329.2 MB, free: 11.34 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.503e-06/0.01645, allocations: 0 / 329.2 MB, free: 11.34 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0004606/0.01691, allocations: 220.6 kB / 329.4 MB, free: 11.12 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 9.705e-05/0.01701, allocations: 35.92 kB / 329.4 MB, free: 11.08 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.003771/0.02078, allocations: 2.604 MB / 332 MB, free: 8.363 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001549/0.02094, allocations: 39.86 kB / 332.1 MB, free: 8.324 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.634e-05/0.02095, allocations: 11.98 kB / 332.1 MB, free: 8.312 MB / 298.7 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.0001301/0.02108, allocations: 125.9 kB / 332.2 MB, free: 8.18 MB / 298.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.72e-05/0.02112, allocations: 31.8 kB / 332.2 MB, free: 8.148 MB / 298.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.786e-05/0.02116, allocations: 25.55 kB / 332.2 MB, free: 8.121 MB / 298.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.246e-06/0.02116, allocations: 3.984 kB / 332.3 MB, free: 8.117 MB / 298.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.148e-06/0.02116, allocations: 4 kB / 332.3 MB, free: 8.113 MB / 298.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.777e-06/0.02117, allocations: 3.938 kB / 332.3 MB, free: 8.109 MB / 298.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002645/0.02143, allocations: 256.5 kB / 332.5 MB, free: 7.816 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.378e-06/0.02144, allocations: 7.938 kB / 332.5 MB, free: 7.809 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 9.755e-05/0.02153, allocations: 27.98 kB / 332.5 MB, free: 7.781 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0003766/0.02191, allocations: 220.7 kB / 332.8 MB, free: 7.562 MB / 298.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.57e-05/0.02193, allocations: 3.984 kB / 332.8 MB, free: 7.559 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.003571/0.0255, allocations: 2.604 MB / 335.4 MB, free: 4.836 MB / 298.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.984e-06/0.0255, allocations: 0 / 335.4 MB, free: 4.836 MB / 298.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.00165/0.02715, allocations: 0.8434 MB / 336.2 MB, free: 3.973 MB / 298.7 MB Notification: Performance of postOpt removeConstants (simulation): time 3.655e-05/0.02719, allocations: 23.81 kB / 336.2 MB, free: 3.949 MB / 298.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.074e-05/0.02721, allocations: 12.06 kB / 336.2 MB, free: 3.938 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001378/0.02735, allocations: 27.97 kB / 336.3 MB, free: 3.91 MB / 298.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.038e-05/0.02739, allocations: 11.98 kB / 336.3 MB, free: 3.898 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.304e-05/0.0274, allocations: 7.984 kB / 336.3 MB, free: 3.891 MB / 298.7 MB Notification: Performance of sorting global known variables: time 0.0001047/0.0275, allocations: 161.6 kB / 336.5 MB, free: 3.734 MB / 298.7 MB Notification: Performance of sort global known variables: time 6e-08/0.0275, allocations: 0 / 336.5 MB, free: 3.734 MB / 298.7 MB Notification: Performance of remove unused functions: time 0.0003284/0.02783, allocations: 79.83 kB / 336.5 MB, free: 3.656 MB / 298.7 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.00177/0.0296, allocations: 1.391 MB / 337.9 MB, free: 2.238 MB / 298.7 MB Notification: Performance of simCode: created initialization part: time 0.0008291/0.03043, allocations: 430.4 kB / 338.3 MB, free: 1.805 MB / 298.7 MB Notification: Performance of simCode: created event and clocks part: time 2.134e-06/0.03043, allocations: 4.062 kB / 338.3 MB, free: 1.801 MB / 298.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0005005/0.03093, allocations: 330.4 kB / 338.7 MB, free: 1.465 MB / 298.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000266/0.0312, allocations: 36.7 kB / 338.7 MB, free: 1.43 MB / 298.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.004407/0.03561, allocations: 3.316 MB / 342 MB, free: 14.02 MB / 314.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 8.869e-05/0.0357, allocations: 137.8 kB / 342.2 MB, free: 13.87 MB / 314.7 MB Notification: Performance of simCode: alias equations: time 5.913e-05/0.03575, allocations: 17.48 kB / 342.2 MB, free: 13.85 MB / 314.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 7.249e-05/0.03583, allocations: 68.48 kB / 342.2 MB, free: 13.78 MB / 314.7 MB Notification: Performance of SimCode: time 6.02e-07/0.03583, allocations: 0 / 342.2 MB, free: 13.78 MB / 314.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02354/0.05937, allocations: 8.039 MB / 350.3 MB, free: 5.875 MB / 314.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 7.909/7.969, allocations: 8.672 kB / 350.3 MB, free: 5.867 MB / 314.7 MB " [Timeout remaining time 652] (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/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Electrical/Analog/Examples/OvervoltageProtection/OvervoltageProtection.csv","/var/lib/jenkins/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: 9.642679895274341]