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.001817/0.001817, allocations: 124.8 kB / 17.79 MB, free: 5.266 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.001925/0.001925, allocations: 186.9 kB / 20.73 MB, free: 2.332 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.38/1.38, allocations: 225.6 MB / 249.1 MB, free: 3.59 MB / 190.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="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 0.001446/0.001446, allocations: 55.91 kB / 365.7 MB, free: 0.8242 MB / 286.1 MB
Notification: Performance of FrontEnd - Absyn->SCode: time 0.09396/0.09541, allocations: 52.13 MB / 417.8 MB, free: 12.59 MB / 350.1 MB
Notification: Performance of NFInst.instantiate(Modelica.Electrical.Analog.Examples.OvervoltageProtection): time 0.00394/0.09934, allocations: 2.707 MB / 420.5 MB, free: 9.875 MB / 350.1 MB
Notification: Performance of NFInst.instExpressions: time 0.001115/0.1005, allocations: 0.6856 MB / 421.2 MB, free: 9.184 MB / 350.1 MB
Notification: Performance of NFInst.updateImplicitVariability: time 0.0001092/0.1006, allocations: 4 kB / 421.2 MB, free: 9.18 MB / 350.1 MB
Notification: Performance of NFTyping.typeComponents: time 0.0001491/0.1007, allocations: 43.58 kB / 421.2 MB, free: 9.137 MB / 350.1 MB
Notification: Performance of NFTyping.typeBindings: time 0.0001391/0.1009, allocations: 75.27 kB / 421.3 MB, free: 9.062 MB / 350.1 MB
Notification: Performance of NFTyping.typeClassSections: time 0.0002722/0.1011, allocations: 91.81 kB / 421.4 MB, free: 8.973 MB / 350.1 MB
Notification: Performance of NFFlatten.flatten: time 0.0003715/0.1015, allocations: 358.6 kB / 421.7 MB, free: 8.621 MB / 350.1 MB
Notification: Performance of NFFlatten.resolveConnections: time 0.0001668/0.1017, allocations: 68.7 kB / 421.8 MB, free: 8.551 MB / 350.1 MB
Notification: Performance of NFEvalConstants.evaluate: time 0.0001947/0.1019, allocations: 143.5 kB / 421.9 MB, free: 8.41 MB / 350.1 MB
Notification: Performance of NFSimplifyModel.simplify: time 0.0002141/0.1021, allocations: 167.3 kB / 422.1 MB, free: 8.246 MB / 350.1 MB
Notification: Performance of NFPackage.collectConstants: time 5.417e-05/0.1021, allocations: 32 kB / 422.1 MB, free: 8.215 MB / 350.1 MB
Notification: Performance of NFFlatten.collectFunctions: time 4.637e-05/0.1022, allocations: 28 kB / 422.2 MB, free: 8.188 MB / 350.1 MB
Notification: Performance of NFScalarize.scalarize: time 6.465e-05/0.1022, allocations: 67.81 kB / 422.2 MB, free: 8.121 MB / 350.1 MB
Notification: Performance of NFVerifyModel.verify: time 0.0001446/0.1024, allocations: 143.3 kB / 422.4 MB, free: 7.98 MB / 350.1 MB
Notification: Performance of NFConvertDAE.convert: time 0.0003912/0.1028, allocations: 346.6 kB / 422.7 MB, free: 7.641 MB / 350.1 MB
Notification: Performance of FrontEnd - DAE generated: time 5.541e-06/0.1028, allocations: 3.984 kB / 422.7 MB, free: 7.637 MB / 350.1 MB
Notification: Performance of FrontEnd: time 1.693e-06/0.1028, allocations: 0 / 422.7 MB, free: 7.637 MB / 350.1 MB
Notification: Performance of Transformations before backend: time 6.091e-06/0.1028, allocations: 0 / 422.7 MB, free: 7.637 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.001498/0.1043, allocations: 0.6468 MB / 423.4 MB, free: 6.941 MB / 350.1 MB
Notification: Performance of prepare preOptimizeDAE: time 4.199e-05/0.1043, allocations: 8.031 kB / 423.4 MB, free: 6.934 MB / 350.1 MB
Notification: Performance of preOpt introduceOutputAliases (simulation): time 6.06e-05/0.1044, allocations: 54.73 kB / 423.4 MB, free: 6.871 MB / 350.1 MB
Notification: Performance of preOpt normalInlineFunction (simulation): time 6.241e-05/0.1045, allocations: 32.75 kB / 423.5 MB, free: 6.84 MB / 350.1 MB
Notification: Performance of preOpt evaluateParameters (simulation): time 0.000373/0.1048, allocations: 268.7 kB / 423.7 MB, free: 6.535 MB / 350.1 MB
Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.016e-05/0.1048, allocations: 20.81 kB / 423.7 MB, free: 6.516 MB / 350.1 MB
Notification: Performance of preOpt expandDerOperator (simulation): time 4.506e-05/0.1049, allocations: 16.38 kB / 423.8 MB, free: 6.5 MB / 350.1 MB
Notification: Performance of preOpt clockPartitioning (simulation): time 0.0006635/0.1056, allocations: 298.8 kB / 424 MB, free: 6.191 MB / 350.1 MB
Notification: Performance of preOpt findStateOrder (simulation): time 1.073e-05/0.1056, allocations: 0 / 424 MB, free: 6.191 MB / 350.1 MB
Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.853e-05/0.1056, allocations: 16 kB / 424.1 MB, free: 6.176 MB / 350.1 MB
Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.454e-06/0.1056, allocations: 4 kB / 424.1 MB, free: 6.172 MB / 350.1 MB
Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0007686/0.1064, allocations: 269.5 kB / 424.3 MB, free: 5.906 MB / 350.1 MB
Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001759/0.1081, allocations: 1.066 MB / 425.4 MB, free: 4.762 MB / 350.1 MB
Notification: Performance of preOpt comSubExp (simulation): time 0.001978/0.1101, allocations: 434.1 kB / 425.8 MB, free: 4.332 MB / 350.1 MB
Notification: Performance of preOpt resolveLoops (simulation): time 0.0003828/0.1105, allocations: 132.8 kB / 425.9 MB, free: 4.199 MB / 350.1 MB
Notification: Performance of preOpt evalFunc (simulation): time 2.025e-05/0.1105, allocations: 4 kB / 426 MB, free: 4.195 MB / 350.1 MB
Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.619e-05/0.1105, allocations: 30.56 kB / 426 MB, free: 4.156 MB / 350.1 MB
Notification: Performance of pre-optimization done (n=14): time 1.253e-06/0.1105, allocations: 3.938 kB / 426 MB, free: 4.152 MB / 350.1 MB
Notification: Performance of matching and sorting (n=14): time 0.005217/0.1158, allocations: 1.034 MB / 427 MB, free: 3.09 MB / 350.1 MB
Notification: Performance of inlineWhenForInitialization (initialization): time 3.951e-05/0.1158, allocations: 51.41 kB / 427.1 MB, free: 3.027 MB / 350.1 MB
Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002255/0.116, allocations: 216.2 kB / 427.3 MB, free: 2.805 MB / 350.1 MB
Notification: Performance of collectPreVariables (initialization): time 3.754e-05/0.1161, allocations: 33.7 kB / 427.3 MB, free: 2.766 MB / 350.1 MB
Notification: Performance of collectInitialEqns (initialization): time 0.000112/0.1162, allocations: 160.3 kB / 427.5 MB, free: 2.605 MB / 350.1 MB
Notification: Performance of collectInitialBindings (initialization): time 5.354e-05/0.1162, allocations: 47.53 kB / 427.5 MB, free: 2.559 MB / 350.1 MB
Notification: Performance of simplifyInitialFunctions (initialization): time 8.251e-05/0.1163, allocations: 41.69 kB / 427.6 MB, free: 2.512 MB / 350.1 MB
Notification: Performance of setup shared object (initialization): time 0.0001469/0.1165, allocations: 326.8 kB / 427.9 MB, free: 2.184 MB / 350.1 MB
Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003494/0.1168, allocations: 107.9 kB / 428 MB, free: 2.078 MB / 350.1 MB
Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003476/0.1172, allocations: 125.5 kB / 428.1 MB, free: 1.949 MB / 350.1 MB
Notification: Performance of analyzeInitialSystem (initialization): time 0.0006639/0.1178, allocations: 231.7 kB / 428.3 MB, free: 1.719 MB / 350.1 MB
Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.188e-06/0.1178, allocations: 3.938 kB / 428.3 MB, free: 1.715 MB / 350.1 MB
Notification: Performance of matching and sorting (n=18) (initialization): time 0.003011/0.1208, allocations: 0.6268 MB / 429 MB, free: 1.078 MB / 350.1 MB
Notification: Performance of prepare postOptimizeDAE: time 1.737e-05/0.1209, allocations: 8 kB / 429 MB, free: 1.07 MB / 350.1 MB
Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.691e-06/0.1209, allocations: 0 / 429 MB, free: 1.07 MB / 350.1 MB
Notification: Performance of postOpt tearingSystem (initialization): time 0.0007258/0.1216, allocations: 224.7 kB / 429.2 MB, free: 0.8477 MB / 350.1 MB
Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001646/0.1218, allocations: 39.91 kB / 429.2 MB, free: 0.8086 MB / 350.1 MB
Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.007049/0.1288, allocations: 2.743 MB / 432 MB, free: 13.93 MB / 366.1 MB
Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002934/0.1291, allocations: 35.92 kB / 432 MB, free: 13.89 MB / 366.1 MB
Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.268e-05/0.1291, allocations: 8 kB / 432 MB, free: 13.89 MB / 366.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.0001573/0.1293, allocations: 137.8 kB / 432.1 MB, free: 13.74 MB / 366.1 MB
Notification: Performance of postOpt lateInlineFunction (simulation): time 4.854e-05/0.1293, allocations: 15.91 kB / 432.2 MB, free: 13.73 MB / 366.1 MB
Notification: Performance of postOpt wrapFunctionCalls (simulation): time 5.114e-05/0.1294, allocations: 17.53 kB / 432.2 MB, free: 13.7 MB / 366.1 MB
Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.613e-06/0.1294, allocations: 4 kB / 432.2 MB, free: 13.7 MB / 366.1 MB
Notification: Performance of postOpt constantLinearSystem (simulation): time 2.395e-06/0.1294, allocations: 3.938 kB / 432.2 MB, free: 13.69 MB / 366.1 MB
Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.256e-05/0.1294, allocations: 7.984 kB / 432.2 MB, free: 13.68 MB / 366.1 MB
Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0003976/0.1298, allocations: 329.3 kB / 432.5 MB, free: 13.31 MB / 366.1 MB
Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.342e-06/0.1298, allocations: 0 / 432.5 MB, free: 13.31 MB / 366.1 MB
Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001603/0.13, allocations: 39.91 kB / 432.6 MB, free: 13.27 MB / 366.1 MB
Notification: Performance of postOpt tearingSystem (simulation): time 0.0006512/0.1306, allocations: 216.7 kB / 432.8 MB, free: 13.06 MB / 366.1 MB
Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.949e-05/0.1306, allocations: 7.984 kB / 432.8 MB, free: 13.05 MB / 366.1 MB
Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.006723/0.1373, allocations: 2.731 MB / 435.5 MB, free: 10.18 MB / 366.1 MB
Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.693e-06/0.1373, allocations: 0 / 435.5 MB, free: 10.18 MB / 366.1 MB
Notification: Performance of postOpt symbolicJacobian (simulation): time 0.003256/0.1406, allocations: 0.8434 MB / 436.4 MB, free: 9.32 MB / 366.1 MB
Notification: Performance of postOpt removeConstants (simulation): time 8.878e-05/0.1407, allocations: 97 kB / 436.4 MB, free: 9.207 MB / 366.1 MB
Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.189e-05/0.1407, allocations: 7.938 kB / 436.5 MB, free: 9.199 MB / 366.1 MB
Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002905/0.141, allocations: 36.03 kB / 436.5 MB, free: 9.164 MB / 366.1 MB
Notification: Performance of postOpt findZeroCrossings (simulation): time 4.348e-05/0.1411, allocations: 7.984 kB / 436.5 MB, free: 9.156 MB / 366.1 MB
Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.865e-05/0.1411, allocations: 7.984 kB / 436.5 MB, free: 9.148 MB / 366.1 MB
Notification: Performance of sorting global known variables: time 0.0001615/0.1412, allocations: 157.9 kB / 436.7 MB, free: 8.996 MB / 366.1 MB
Notification: Performance of sort global known variables: time 9e-08/0.1412, allocations: 0 / 436.7 MB, free: 8.996 MB / 366.1 MB
Notification: Performance of remove unused functions: time 0.0004343/0.1417, allocations: 75.89 kB / 436.7 MB, free: 8.922 MB / 366.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.003674/0.1453, allocations: 1.389 MB / 438.1 MB, free: 7.504 MB / 366.1 MB
Notification: Performance of simCode: created initialization part: time 0.001603/0.1469, allocations: 447.5 kB / 438.6 MB, free: 7.059 MB / 366.1 MB
Notification: Performance of simCode: created event and clocks part: time 2.855e-06/0.147, allocations: 4 kB / 438.6 MB, free: 7.055 MB / 366.1 MB
Notification: Performance of simCode: created simulation system equations: time 0.001101/0.1481, allocations: 314.6 kB / 438.9 MB, free: 6.734 MB / 366.1 MB
Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003633/0.1484, allocations: 48.52 kB / 438.9 MB, free: 6.688 MB / 366.1 MB
Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.008812/0.1572, allocations: 3.348 MB / 442.3 MB, free: 3.25 MB / 366.1 MB
Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004003/0.1576, allocations: 0.7437 MB / 443 MB, free: 2.48 MB / 366.1 MB
Notification: Performance of simCode: alias equations: time 7.905e-05/0.1577, allocations: 13.55 kB / 443 MB, free: 2.465 MB / 366.1 MB
Notification: Performance of simCode: all other stuff during SimCode phase: time 9.795e-05/0.1578, allocations: 67.41 kB / 443.1 MB, free: 2.398 MB / 366.1 MB
Notification: Performance of SimCode: time 8.32e-07/0.1578, allocations: 0 / 443.1 MB, free: 2.398 MB / 366.1 MB
Notification: Performance of buildModelFMU: Generate the FMI files: time 0.2067/0.3645, allocations: 7.347 MB / 450.4 MB, free: 31.03 MB / 366.1 MB
Notification: Performance of buildModelFMU: Generate platform static: time 12.45/12.81, allocations: 6.344 kB / 450.4 MB, free: 31.03 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_2/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Electrical/Analog/Examples/OvervoltageProtection/OvervoltageProtection.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork_2/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.385908652096987]