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.001627/0.001627, allocations: 124 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.001369/0.001369, allocations: 190.9 kB / 20.73 MB, free: 2.328 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.419/1.419, allocations: 225.6 MB / 249.1 MB, free: 3.633 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.001491/0.001491, allocations: 55.91 kB / 365.6 MB, free: 0.9336 MB / 286.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09138/0.09287, allocations: 52.14 MB / 417.8 MB, free: 12.7 MB / 350.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Analog.Examples.OvervoltageProtection): time 0.003877/0.09675, allocations: 2.715 MB / 420.5 MB, free: 9.973 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.001052/0.0978, allocations: 0.6778 MB / 421.2 MB, free: 9.289 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.000107/0.09791, allocations: 7.938 kB / 421.2 MB, free: 9.281 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001457/0.09805, allocations: 43.56 kB / 421.2 MB, free: 9.238 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001429/0.09819, allocations: 79.27 kB / 421.3 MB, free: 9.16 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002795/0.09847, allocations: 95.8 kB / 421.4 MB, free: 9.066 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.0003778/0.09885, allocations: 362.6 kB / 421.8 MB, free: 8.711 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001793/0.09903, allocations: 64.72 kB / 421.8 MB, free: 8.645 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002133/0.09924, allocations: 147.5 kB / 422 MB, free: 8.5 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002048/0.09945, allocations: 163.4 kB / 422.1 MB, free: 8.34 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 4.869e-05/0.0995, allocations: 32 kB / 422.2 MB, free: 8.309 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 4.705e-05/0.09954, allocations: 28 kB / 422.2 MB, free: 8.281 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 6.15e-05/0.09961, allocations: 63.81 kB / 422.2 MB, free: 8.219 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001318/0.09974, allocations: 147.3 kB / 422.4 MB, free: 8.074 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0003622/0.1001, allocations: 346.6 kB / 422.7 MB, free: 7.734 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.677e-06/0.1001, allocations: 0 / 422.7 MB, free: 7.734 MB / 350.1 MB Notification: Performance of FrontEnd: time 1.673e-06/0.1001, allocations: 0 / 422.7 MB, free: 7.734 MB / 350.1 MB Notification: Performance of Transformations before backend: time 6.161e-06/0.1001, allocations: 4 kB / 422.7 MB, free: 7.73 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.001458/0.1016, allocations: 0.6506 MB / 423.4 MB, free: 7.031 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.58e-05/0.1016, allocations: 12.03 kB / 423.4 MB, free: 7.02 MB / 350.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 6.64e-05/0.1017, allocations: 50.73 kB / 423.4 MB, free: 6.961 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 6.375e-05/0.1017, allocations: 32.75 kB / 423.5 MB, free: 6.93 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000329/0.1021, allocations: 264.8 kB / 423.7 MB, free: 6.629 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.758e-05/0.1021, allocations: 16.81 kB / 423.7 MB, free: 6.613 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.783e-05/0.1021, allocations: 24.38 kB / 423.8 MB, free: 6.59 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0006541/0.1028, allocations: 294.8 kB / 424.1 MB, free: 6.285 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.012e-05/0.1028, allocations: 7.938 kB / 424.1 MB, free: 6.277 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.926e-05/0.1028, allocations: 8 kB / 424.1 MB, free: 6.27 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.074e-06/0.1028, allocations: 4 kB / 424.1 MB, free: 6.266 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0008043/0.1036, allocations: 269.6 kB / 424.3 MB, free: 6 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001661/0.1053, allocations: 1.066 MB / 425.4 MB, free: 4.855 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001952/0.1072, allocations: 426.3 kB / 425.8 MB, free: 4.43 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003932/0.1076, allocations: 136.8 kB / 426 MB, free: 4.293 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.189e-05/0.1077, allocations: 3.938 kB / 426 MB, free: 4.289 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.785e-05/0.1077, allocations: 42.5 kB / 426 MB, free: 4.238 MB / 350.1 MB Notification: Performance of pre-optimization done (n=14): time 1.313e-06/0.1077, allocations: 0 / 426 MB, free: 4.238 MB / 350.1 MB Notification: Performance of matching and sorting (n=14): time 0.005006/0.1127, allocations: 1.018 MB / 427 MB, free: 3.191 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.547e-05/0.1127, allocations: 63.34 kB / 427.1 MB, free: 3.117 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.000229/0.113, allocations: 216.2 kB / 427.3 MB, free: 2.895 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 2.858e-05/0.113, allocations: 25.7 kB / 427.3 MB, free: 2.863 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001088/0.1131, allocations: 156.3 kB / 427.5 MB, free: 2.707 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 5.472e-05/0.1132, allocations: 55.52 kB / 427.5 MB, free: 2.652 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 8.379e-05/0.1132, allocations: 33.7 kB / 427.6 MB, free: 2.613 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 0.0001423/0.1134, allocations: 330.8 kB / 427.9 MB, free: 2.281 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003629/0.1138, allocations: 107.9 kB / 428 MB, free: 2.176 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003623/0.1141, allocations: 131.9 kB / 428.1 MB, free: 2.043 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0007097/0.1148, allocations: 221.6 kB / 428.3 MB, free: 1.82 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.438e-06/0.1148, allocations: 3.938 kB / 428.3 MB, free: 1.816 MB / 350.1 MB Notification: Performance of matching and sorting (n=18) (initialization): time 0.002997/0.1178, allocations: 0.6367 MB / 429 MB, free: 1.172 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.828e-05/0.1178, allocations: 4 kB / 429 MB, free: 1.168 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.332e-06/0.1179, allocations: 4 kB / 429 MB, free: 1.164 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0007822/0.1186, allocations: 224.6 kB / 429.2 MB, free: 0.9414 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001879/0.1188, allocations: 35.97 kB / 429.2 MB, free: 0.9062 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.007183/0.126, allocations: 2.743 MB / 432 MB, free: 14.02 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002951/0.1263, allocations: 39.94 kB / 432 MB, free: 13.98 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.255e-05/0.1263, allocations: 7.984 kB / 432 MB, free: 13.98 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.0001728/0.1265, allocations: 134.4 kB / 432.2 MB, free: 13.84 MB / 366.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.636e-05/0.1266, allocations: 15.91 kB / 432.2 MB, free: 13.82 MB / 366.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 8.052e-05/0.1266, allocations: 29.52 kB / 432.2 MB, free: 13.78 MB / 366.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.914e-06/0.1266, allocations: 0 / 432.2 MB, free: 13.78 MB / 366.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.665e-06/0.1266, allocations: 7.938 kB / 432.2 MB, free: 13.77 MB / 366.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.547e-06/0.1266, allocations: 0 / 432.2 MB, free: 13.77 MB / 366.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0004241/0.1271, allocations: 333.2 kB / 432.5 MB, free: 13.4 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.894e-06/0.1271, allocations: 0 / 432.5 MB, free: 13.4 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001694/0.1272, allocations: 27.98 kB / 432.6 MB, free: 13.38 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0006836/0.1279, allocations: 216.6 kB / 432.8 MB, free: 13.16 MB / 366.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.942e-05/0.128, allocations: 12 kB / 432.8 MB, free: 13.15 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.006967/0.1349, allocations: 2.735 MB / 435.5 MB, free: 10.28 MB / 366.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.164e-06/0.1349, allocations: 0 / 435.5 MB, free: 10.28 MB / 366.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.003389/0.1383, allocations: 0.8417 MB / 436.4 MB, free: 9.418 MB / 366.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001047/0.1384, allocations: 104.9 kB / 436.5 MB, free: 9.297 MB / 366.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.582e-05/0.1385, allocations: 8 kB / 436.5 MB, free: 9.289 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003016/0.1388, allocations: 32.03 kB / 436.5 MB, free: 9.258 MB / 366.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.859e-05/0.1388, allocations: 15.98 kB / 436.5 MB, free: 9.242 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.679e-05/0.1389, allocations: 0 / 436.5 MB, free: 9.242 MB / 366.1 MB Notification: Performance of sorting global known variables: time 0.0001651/0.139, allocations: 161.8 kB / 436.7 MB, free: 9.086 MB / 366.1 MB Notification: Performance of sort global known variables: time 8e-08/0.139, allocations: 0 / 436.7 MB, free: 9.086 MB / 366.1 MB Notification: Performance of remove unused functions: time 0.0004812/0.1395, allocations: 75.89 kB / 436.7 MB, free: 9.012 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.003614/0.1431, allocations: 1.388 MB / 438.1 MB, free: 7.598 MB / 366.1 MB Notification: Performance of simCode: created initialization part: time 0.001581/0.1447, allocations: 442.4 kB / 438.6 MB, free: 7.152 MB / 366.1 MB Notification: Performance of simCode: created event and clocks part: time 3.256e-06/0.1447, allocations: 0 / 438.6 MB, free: 7.152 MB / 366.1 MB Notification: Performance of simCode: created simulation system equations: time 0.001111/0.1458, allocations: 322.5 kB / 438.9 MB, free: 6.824 MB / 366.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000403/0.1462, allocations: 43 kB / 438.9 MB, free: 6.785 MB / 366.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.008742/0.155, allocations: 3.353 MB / 442.3 MB, free: 3.344 MB / 366.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003507/0.1553, allocations: 0.7437 MB / 443 MB, free: 2.574 MB / 366.1 MB Notification: Performance of simCode: alias equations: time 8.338e-05/0.1554, allocations: 13.55 kB / 443 MB, free: 2.559 MB / 366.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001011/0.1555, allocations: 67.42 kB / 443.1 MB, free: 2.492 MB / 366.1 MB Notification: Performance of SimCode: time 7.21e-07/0.1555, allocations: 0 / 443.1 MB, free: 2.492 MB / 366.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.2482/0.4037, allocations: 7.337 MB / 450.4 MB, free: 30.96 MB / 366.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 12.52/12.92, allocations: 6.891 kB / 450.4 MB, free: 30.96 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 & python3 -m fmpy simulate --output-file Modelica_4.0.0_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_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.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Electrical/Analog/Examples/OvervoltageProtection/OvervoltageProtection.csv","/var/lib/jenkins1/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: 15.764430038165301]