Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_3.2.3_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.001424/0.001424, allocations: 117.9 kB / 18.45 MB, free: 4.609 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.002076/0.002076, allocations: 215.3 kB / 21.41 MB, free: 1.648 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.738/1.738, allocations: 207.6 MB / 231.8 MB, free: 4.234 MB / 174.1 MB " [Timeout remaining time 178] Using package Modelica with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+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_3_2_3_Modelica_Electrical_Analog_Examples_OvervoltageProtection",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Electrical.Analog.Examples.OvervoltageProtection,fileNamePrefix="Modelica_3_2_3_Modelica_Electrical_Analog_Examples_OvervoltageProtection",fmuType="me",version="2.0",platforms={"static"}) [Timeout 660] "Notification: Modelica requested package Complex of version 3.2.3. Complex 4.1.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Modelica requested package ModelicaServices of version 3.2.3. ModelicaServices 4.1.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Performance of FrontEnd - loaded program: time 0.00179/0.00179, allocations: 56.92 kB / 342.3 MB, free: 10.02 MB / 270.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1088/0.1106, allocations: 49.12 MB / 391.4 MB, free: 8.727 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Analog.Examples.OvervoltageProtection): time 0.004419/0.115, allocations: 2.679 MB / 394.1 MB, free: 6.035 MB / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.001473/0.1165, allocations: 0.7174 MB / 394.8 MB, free: 5.309 MB / 318.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001484/0.1166, allocations: 7.938 kB / 394.8 MB, free: 5.301 MB / 318.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001721/0.1168, allocations: 39.58 kB / 394.9 MB, free: 5.262 MB / 318.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001683/0.117, allocations: 79.27 kB / 394.9 MB, free: 5.184 MB / 318.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003413/0.1173, allocations: 107.8 kB / 395 MB, free: 5.078 MB / 318.1 MB Notification: Performance of NFFlatten.flatten: time 0.0004253/0.1177, allocations: 358.5 kB / 395.4 MB, free: 4.727 MB / 318.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001988/0.1179, allocations: 72.62 kB / 395.5 MB, free: 4.656 MB / 318.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002535/0.1182, allocations: 147.5 kB / 395.6 MB, free: 4.512 MB / 318.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002395/0.1184, allocations: 163.3 kB / 395.8 MB, free: 4.352 MB / 318.1 MB Notification: Performance of NFPackage.collectConstants: time 5.181e-05/0.1185, allocations: 32 kB / 395.8 MB, free: 4.32 MB / 318.1 MB Notification: Performance of NFFlatten.collectFunctions: time 5.179e-05/0.1185, allocations: 28 kB / 395.8 MB, free: 4.293 MB / 318.1 MB Notification: Performance of NFScalarize.scalarize: time 8.162e-05/0.1186, allocations: 67.8 kB / 395.9 MB, free: 4.227 MB / 318.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001534/0.1188, allocations: 151.3 kB / 396 MB, free: 4.078 MB / 318.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0004092/0.1192, allocations: 346.6 kB / 396.4 MB, free: 3.738 MB / 318.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.628e-06/0.1192, allocations: 0 / 396.4 MB, free: 3.738 MB / 318.1 MB Notification: Performance of FrontEnd: time 5.541e-06/0.1192, allocations: 3.984 kB / 396.4 MB, free: 3.734 MB / 318.1 MB Notification: Performance of Transformations before backend: time 1.233e-05/0.1192, allocations: 0 / 396.4 MB, free: 3.734 MB / 318.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.001562/0.1208, allocations: 0.6391 MB / 397 MB, free: 3.047 MB / 318.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.332e-05/0.1208, allocations: 12.03 kB / 397 MB, free: 3.035 MB / 318.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 6.663e-05/0.1209, allocations: 58.73 kB / 397.1 MB, free: 2.969 MB / 318.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 7.152e-05/0.1209, allocations: 32.75 kB / 397.1 MB, free: 2.938 MB / 318.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000407/0.1214, allocations: 260.8 kB / 397.4 MB, free: 2.641 MB / 318.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.13e-05/0.1214, allocations: 16.81 kB / 397.4 MB, free: 2.625 MB / 318.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 6.181e-05/0.1214, allocations: 20.38 kB / 397.4 MB, free: 2.605 MB / 318.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0007192/0.1222, allocations: 298.8 kB / 397.7 MB, free: 2.297 MB / 318.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.243e-05/0.1222, allocations: 0 / 397.7 MB, free: 2.297 MB / 318.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.953e-05/0.1222, allocations: 8 kB / 397.7 MB, free: 2.289 MB / 318.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.905e-06/0.1222, allocations: 4 kB / 397.7 MB, free: 2.285 MB / 318.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0008177/0.123, allocations: 273.5 kB / 398 MB, free: 2.02 MB / 318.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001865/0.1249, allocations: 1.07 MB / 399.1 MB, free: 0.8711 MB / 318.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.002046/0.1269, allocations: 418.3 kB / 399.5 MB, free: 464 kB / 318.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0004165/0.1273, allocations: 140.8 kB / 399.6 MB, free: 320 kB / 318.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.344e-05/0.1274, allocations: 0 / 399.6 MB, free: 320 kB / 318.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.184e-05/0.1274, allocations: 30.56 kB / 399.6 MB, free: 280 kB / 318.1 MB Notification: Performance of pre-optimization done (n=14): time 3.707e-06/0.1274, allocations: 7.984 kB / 399.6 MB, free: 272 kB / 318.1 MB Notification: Performance of matching and sorting (n=14): time 0.005164/0.1326, allocations: 1.03 MB / 400.7 MB, free: 15.21 MB / 334.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.444e-05/0.1326, allocations: 55.41 kB / 400.7 MB, free: 15.14 MB / 334.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002868/0.1329, allocations: 212.2 kB / 400.9 MB, free: 14.92 MB / 334.1 MB Notification: Performance of collectPreVariables (initialization): time 3.638e-05/0.133, allocations: 29.7 kB / 401 MB, free: 14.88 MB / 334.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001316/0.1331, allocations: 164.2 kB / 401.1 MB, free: 14.72 MB / 334.1 MB Notification: Performance of collectInitialBindings (initialization): time 6.932e-05/0.1332, allocations: 47.59 kB / 401.2 MB, free: 14.67 MB / 334.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001002/0.1333, allocations: 41.69 kB / 401.2 MB, free: 14.62 MB / 334.1 MB Notification: Performance of setup shared object (initialization): time 0.0001747/0.1334, allocations: 330.8 kB / 401.5 MB, free: 14.29 MB / 334.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.00038/0.1338, allocations: 103.9 kB / 401.6 MB, free: 14.19 MB / 334.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003644/0.1342, allocations: 133.5 kB / 401.8 MB, free: 14.05 MB / 334.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0007016/0.1349, allocations: 225.5 kB / 402 MB, free: 13.83 MB / 334.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.66e-06/0.1349, allocations: 3.938 kB / 402 MB, free: 13.82 MB / 334.1 MB Notification: Performance of matching and sorting (n=18) (initialization): time 0.00299/0.1379, allocations: 0.6346 MB / 402.6 MB, free: 13.18 MB / 334.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.249e-05/0.1379, allocations: 4 kB / 402.6 MB, free: 13.18 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.524e-06/0.1379, allocations: 0 / 402.6 MB, free: 13.18 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0008688/0.1388, allocations: 216.7 kB / 402.8 MB, free: 12.96 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001867/0.139, allocations: 43.91 kB / 402.9 MB, free: 12.92 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.007466/0.1464, allocations: 2.735 MB / 405.6 MB, free: 10.04 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.00032/0.1467, allocations: 35.92 kB / 405.6 MB, free: 10.01 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.332e-05/0.1468, allocations: 8 kB / 405.7 MB, free: 10 MB / 334.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.000186/0.147, allocations: 137.7 kB / 405.8 MB, free: 9.855 MB / 334.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.851e-05/0.147, allocations: 23.92 kB / 405.8 MB, free: 9.832 MB / 334.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 6.235e-05/0.1471, allocations: 25.53 kB / 405.8 MB, free: 9.805 MB / 334.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.204e-06/0.1471, allocations: 0 / 405.8 MB, free: 9.805 MB / 334.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.306e-06/0.1471, allocations: 0 / 405.8 MB, free: 9.805 MB / 334.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.3e-06/0.1471, allocations: 7.922 kB / 405.8 MB, free: 9.797 MB / 334.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0004427/0.1475, allocations: 325.4 kB / 406.2 MB, free: 9.43 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.465e-06/0.1475, allocations: 0 / 406.2 MB, free: 9.43 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001683/0.1477, allocations: 35.91 kB / 406.2 MB, free: 9.395 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0007479/0.1485, allocations: 220.7 kB / 406.4 MB, free: 9.176 MB / 334.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.093e-05/0.1485, allocations: 11.98 kB / 406.4 MB, free: 9.164 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.007403/0.1559, allocations: 2.727 MB / 409.1 MB, free: 6.297 MB / 334.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.524e-06/0.1559, allocations: 0 / 409.1 MB, free: 6.297 MB / 334.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.003429/0.1593, allocations: 0.8434 MB / 410 MB, free: 5.434 MB / 334.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001419/0.1595, allocations: 101 kB / 410.1 MB, free: 5.316 MB / 334.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.541e-05/0.1595, allocations: 4.062 kB / 410.1 MB, free: 5.312 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003003/0.1598, allocations: 27.97 kB / 410.1 MB, free: 5.285 MB / 334.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.76e-05/0.1599, allocations: 15.98 kB / 410.1 MB, free: 5.27 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.036e-05/0.1599, allocations: 3.984 kB / 410.1 MB, free: 5.266 MB / 334.1 MB Notification: Performance of sorting global known variables: time 0.0002217/0.1601, allocations: 161.6 kB / 410.3 MB, free: 5.109 MB / 334.1 MB Notification: Performance of sort global known variables: time 9e-08/0.1601, allocations: 3.938 kB / 410.3 MB, free: 5.105 MB / 334.1 MB Notification: Performance of remove unused functions: time 0.000718/0.1608, allocations: 83.84 kB / 410.4 MB, free: 5.023 MB / 334.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.005538/0.1664, allocations: 1.388 MB / 411.8 MB, free: 3.605 MB / 334.1 MB Notification: Performance of simCode: created initialization part: time 0.002487/0.1689, allocations: 446.3 kB / 412.2 MB, free: 3.156 MB / 334.1 MB Notification: Performance of simCode: created event and clocks part: time 6.863e-06/0.1689, allocations: 0 / 412.2 MB, free: 3.156 MB / 334.1 MB Notification: Performance of simCode: created simulation system equations: time 0.001609/0.1705, allocations: 327.3 kB / 412.5 MB, free: 2.824 MB / 334.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005994/0.1711, allocations: 40.58 kB / 412.6 MB, free: 2.785 MB / 334.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01341/0.1845, allocations: 3.348 MB / 415.9 MB, free: 15.35 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005235/0.185, allocations: 0.7514 MB / 416.7 MB, free: 14.57 MB / 350.1 MB Notification: Performance of simCode: alias equations: time 0.0001393/0.1851, allocations: 17.53 kB / 416.7 MB, free: 14.55 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001444/0.1853, allocations: 71.41 kB / 416.8 MB, free: 14.48 MB / 350.1 MB Notification: Performance of SimCode: time 1.102e-06/0.1853, allocations: 0 / 416.8 MB, free: 14.48 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.05062/0.2359, allocations: 7.35 MB / 424.1 MB, free: 7.078 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 12.86/13.1, allocations: 15.98 kB / 424.1 MB, free: 7.062 MB / 350.1 MB " [Timeout remaining time 647] (rm -f Modelica_3.2.3_Modelica.Electrical.Analog.Examples.OvervoltageProtection.pipe ; mkfifo Modelica_3.2.3_Modelica.Electrical.Analog.Examples.OvervoltageProtection.pipe ; head -c 1048576 < Modelica_3.2.3_Modelica.Electrical.Analog.Examples.OvervoltageProtection.pipe >> ../files/Modelica_3.2.3_Modelica.Electrical.Analog.Examples.OvervoltageProtection.sim & python3 -m fmpy simulate --output-file Modelica_3.2.3_Modelica.Electrical.Analog.Examples.OvervoltageProtection_res.csv --start-time 0 --stop-time 0.4 --timeout 50 --relative-tolerance 1e-06 --interface-type ModelExchange --solver CVode --output-interval 7.9968e-05 Modelica_3_2_3_Modelica_Electrical_Analog_Examples_OvervoltageProtection.fmu > Modelica_3.2.3_Modelica.Electrical.Analog.Examples.OvervoltageProtection.pipe 2>&1) [Timeout 52.5] diffSimulationResults("Modelica_3.2.3_Modelica.Electrical.Analog.Examples.OvervoltageProtection_res.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v3.2.3+build.4/Modelica/Electrical/Analog/Examples/OvervoltageProtection/OvervoltageProtection.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_3.2.3_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: 16.111510515009286]