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.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.001697/0.001697, allocations: 119.8 kB / 18.45 MB, free: 4.457 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.00186/0.00186, allocations: 190.9 kB / 21.39 MB, free: 1.52 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.49/1.49, allocations: 207.6 MB / 231.8 MB, free: 3.98 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.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_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.0.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.0.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Performance of FrontEnd - loaded program: time 0.001703/0.001703, allocations: 55.92 kB / 342.3 MB, free: 10 MB / 270.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.108/0.1097, allocations: 49.11 MB / 391.4 MB, free: 8.723 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Analog.Examples.OvervoltageProtection): time 0.004393/0.1141, allocations: 2.683 MB / 394.1 MB, free: 6.027 MB / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.001378/0.1154, allocations: 0.7174 MB / 394.8 MB, free: 5.301 MB / 318.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001185/0.1156, allocations: 4 kB / 394.8 MB, free: 5.297 MB / 318.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001618/0.1157, allocations: 43.58 kB / 394.8 MB, free: 5.254 MB / 318.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001582/0.1159, allocations: 83.27 kB / 394.9 MB, free: 5.172 MB / 318.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003246/0.1162, allocations: 99.78 kB / 395 MB, free: 5.074 MB / 318.1 MB Notification: Performance of NFFlatten.flatten: time 0.0004377/0.1166, allocations: 362.5 kB / 395.4 MB, free: 4.719 MB / 318.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001945/0.1168, allocations: 72.62 kB / 395.4 MB, free: 4.648 MB / 318.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002202/0.1171, allocations: 143.5 kB / 395.6 MB, free: 4.508 MB / 318.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002419/0.1173, allocations: 163.4 kB / 395.7 MB, free: 4.348 MB / 318.1 MB Notification: Performance of NFPackage.collectConstants: time 5.377e-05/0.1174, allocations: 28 kB / 395.7 MB, free: 4.32 MB / 318.1 MB Notification: Performance of NFFlatten.collectFunctions: time 5.106e-05/0.1174, allocations: 32 kB / 395.8 MB, free: 4.289 MB / 318.1 MB Notification: Performance of NFScalarize.scalarize: time 7.563e-05/0.1175, allocations: 67.75 kB / 395.8 MB, free: 4.223 MB / 318.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001593/0.1176, allocations: 151.2 kB / 396 MB, free: 4.074 MB / 318.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0004272/0.1181, allocations: 346.6 kB / 396.3 MB, free: 3.734 MB / 318.1 MB Notification: Performance of FrontEnd - DAE generated: time 6.302e-06/0.1181, allocations: 4 kB / 396.3 MB, free: 3.73 MB / 318.1 MB Notification: Performance of FrontEnd: time 1.814e-06/0.1181, allocations: 0 / 396.3 MB, free: 3.73 MB / 318.1 MB Notification: Performance of Transformations before backend: time 7.114e-06/0.1181, allocations: 0 / 396.3 MB, free: 3.73 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.001629/0.1197, allocations: 0.643 MB / 397 MB, free: 3.039 MB / 318.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.839e-05/0.1198, allocations: 8.031 kB / 397 MB, free: 3.031 MB / 318.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 7.156e-05/0.1198, allocations: 54.73 kB / 397 MB, free: 2.969 MB / 318.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 6.622e-05/0.1199, allocations: 28.75 kB / 397.1 MB, free: 2.941 MB / 318.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004016/0.1203, allocations: 260.9 kB / 397.3 MB, free: 2.645 MB / 318.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.243e-05/0.1203, allocations: 12.81 kB / 397.3 MB, free: 2.633 MB / 318.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.872e-05/0.1204, allocations: 20.38 kB / 397.4 MB, free: 2.613 MB / 318.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0006875/0.121, allocations: 306.7 kB / 397.7 MB, free: 2.297 MB / 318.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.041e-05/0.1211, allocations: 0 / 397.7 MB, free: 2.297 MB / 318.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.507e-05/0.1211, allocations: 4 kB / 397.7 MB, free: 2.293 MB / 318.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 9.268e-06/0.1211, allocations: 8 kB / 397.7 MB, free: 2.285 MB / 318.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0008072/0.1219, allocations: 273.5 kB / 397.9 MB, free: 2.02 MB / 318.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001733/0.1236, allocations: 1.066 MB / 399 MB, free: 0.875 MB / 318.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001979/0.1256, allocations: 426.3 kB / 399.4 MB, free: 460 kB / 318.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0004159/0.126, allocations: 132.8 kB / 399.5 MB, free: 324 kB / 318.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.698e-05/0.1261, allocations: 8 kB / 399.6 MB, free: 316 kB / 318.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.499e-05/0.1261, allocations: 34.56 kB / 399.6 MB, free: 272 kB / 318.1 MB Notification: Performance of pre-optimization done (n=14): time 1.653e-06/0.1261, allocations: 0 / 399.6 MB, free: 272 kB / 318.1 MB Notification: Performance of matching and sorting (n=14): time 0.005263/0.1314, allocations: 1.022 MB / 400.6 MB, free: 15.21 MB / 334.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.094e-05/0.1314, allocations: 51.41 kB / 400.7 MB, free: 15.15 MB / 334.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.000243/0.1316, allocations: 220.2 kB / 400.9 MB, free: 14.92 MB / 334.1 MB Notification: Performance of collectPreVariables (initialization): time 3.486e-05/0.1317, allocations: 25.7 kB / 400.9 MB, free: 14.89 MB / 334.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001181/0.1318, allocations: 164.2 kB / 401.1 MB, free: 14.73 MB / 334.1 MB Notification: Performance of collectInitialBindings (initialization): time 5.72e-05/0.1319, allocations: 55.58 kB / 401.1 MB, free: 14.67 MB / 334.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 8.299e-05/0.1319, allocations: 37.69 kB / 401.2 MB, free: 14.63 MB / 334.1 MB Notification: Performance of setup shared object (initialization): time 0.0001515/0.1321, allocations: 326.8 kB / 401.5 MB, free: 14.3 MB / 334.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003522/0.1324, allocations: 111.9 kB / 401.6 MB, free: 14.19 MB / 334.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.000348/0.1328, allocations: 121.5 kB / 401.7 MB, free: 14.07 MB / 334.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0006829/0.1335, allocations: 233.5 kB / 401.9 MB, free: 13.83 MB / 334.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.699e-06/0.1335, allocations: 3.938 kB / 401.9 MB, free: 13.83 MB / 334.1 MB Notification: Performance of matching and sorting (n=18) (initialization): time 0.003054/0.1365, allocations: 0.6268 MB / 402.6 MB, free: 13.19 MB / 334.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.457e-05/0.1366, allocations: 4 kB / 402.6 MB, free: 13.19 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.321e-05/0.1366, allocations: 7.984 kB / 402.6 MB, free: 13.18 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0007595/0.1373, allocations: 220.6 kB / 402.8 MB, free: 12.96 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001742/0.1375, allocations: 35.98 kB / 402.8 MB, free: 12.93 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.007327/0.1448, allocations: 2.747 MB / 405.6 MB, free: 10.04 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003238/0.1451, allocations: 31.97 kB / 405.6 MB, free: 10.01 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.212e-05/0.1452, allocations: 12.05 kB / 405.6 MB, free: 9.996 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.0001801/0.1454, allocations: 141.6 kB / 405.7 MB, free: 9.848 MB / 334.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.415e-05/0.1454, allocations: 23.86 kB / 405.8 MB, free: 9.824 MB / 334.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 5.031e-05/0.1455, allocations: 25.52 kB / 405.8 MB, free: 9.797 MB / 334.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.066e-05/0.1455, allocations: 4 kB / 405.8 MB, free: 9.793 MB / 334.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.695e-06/0.1455, allocations: 0 / 405.8 MB, free: 9.793 MB / 334.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.815e-06/0.1455, allocations: 0 / 405.8 MB, free: 9.793 MB / 334.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0004329/0.1459, allocations: 325.3 kB / 406.1 MB, free: 9.426 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.21e-06/0.1459, allocations: 8 kB / 406.1 MB, free: 9.418 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001545/0.1461, allocations: 23.98 kB / 406.1 MB, free: 9.395 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0006536/0.1467, allocations: 216.7 kB / 406.4 MB, free: 9.18 MB / 334.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.217e-05/0.1467, allocations: 11.92 kB / 406.4 MB, free: 9.168 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.006964/0.1537, allocations: 2.735 MB / 409.1 MB, free: 6.293 MB / 334.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.601e-06/0.1537, allocations: 4.062 kB / 409.1 MB, free: 6.289 MB / 334.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.003403/0.1571, allocations: 0.8434 MB / 410 MB, free: 5.426 MB / 334.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001195/0.1572, allocations: 92.98 kB / 410 MB, free: 5.316 MB / 334.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.5e-05/0.1573, allocations: 7.984 kB / 410.1 MB, free: 5.309 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.000312/0.1576, allocations: 27.98 kB / 410.1 MB, free: 5.281 MB / 334.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.625e-05/0.1576, allocations: 15.98 kB / 410.1 MB, free: 5.266 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.991e-05/0.1576, allocations: 11.98 kB / 410.1 MB, free: 5.254 MB / 334.1 MB Notification: Performance of sorting global known variables: time 0.0001659/0.1578, allocations: 157.6 kB / 410.3 MB, free: 5.102 MB / 334.1 MB Notification: Performance of sort global known variables: time 7e-08/0.1578, allocations: 0 / 410.3 MB, free: 5.102 MB / 334.1 MB Notification: Performance of remove unused functions: time 0.0004648/0.1583, allocations: 87.83 kB / 410.3 MB, free: 5.016 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.003848/0.1621, allocations: 1.384 MB / 411.7 MB, free: 3.602 MB / 334.1 MB Notification: Performance of simCode: created initialization part: time 0.001679/0.1638, allocations: 446.3 kB / 412.2 MB, free: 3.152 MB / 334.1 MB Notification: Performance of simCode: created event and clocks part: time 6.292e-06/0.1638, allocations: 4.062 kB / 412.2 MB, free: 3.148 MB / 334.1 MB Notification: Performance of simCode: created simulation system equations: time 0.001114/0.1649, allocations: 314.5 kB / 412.5 MB, free: 2.828 MB / 334.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004297/0.1654, allocations: 41.31 kB / 412.5 MB, free: 2.789 MB / 334.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.009203/0.1746, allocations: 3.351 MB / 415.9 MB, free: 15.34 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005096/0.1751, allocations: 0.7513 MB / 416.6 MB, free: 14.56 MB / 350.1 MB Notification: Performance of simCode: alias equations: time 0.0001007/0.1752, allocations: 17.55 kB / 416.6 MB, free: 14.54 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001132/0.1753, allocations: 71.41 kB / 416.7 MB, free: 14.47 MB / 350.1 MB Notification: Performance of SimCode: time 1.442e-06/0.1753, allocations: 0 / 416.7 MB, free: 14.47 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.03975/0.215, allocations: 7.354 MB / 424.1 MB, free: 7.066 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 11.42/11.63, allocations: 7.859 kB / 424.1 MB, free: 7.059 MB / 350.1 MB " [Timeout remaining time 648] (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 & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=Modelica_3.2.3_Modelica.Electrical.Analog.Examples.OvervoltageProtection_res.mat --tempDir=temp_Modelica_3_2_3_Modelica_Electrical_Analog_Examples_OvervoltageProtection_fmu --startTime=0 --stopTime=0.4 --stepSize=7.9968e-05 --timeout=50 --tolerance=1e-06 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.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork_2/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v3.2.3+build.4/Modelica/Electrical/Analog/Examples/OvervoltageProtection/OvervoltageProtection.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork_2/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: 14.18518594512716]