Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.0.0_Modelica.Electrical.Batteries.Examples.ShowImpedance.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.001723/0.001723, allocations: 119.9 kB / 17.74 MB, free: 5.348 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.001842/0.001842, allocations: 185.3 kB / 20.68 MB, free: 2.418 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.385/1.385, allocations: 222.9 MB / 246.4 MB, free: 4.191 MB / 190.1 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.Batteries.Examples.ShowImpedance,fileNamePrefix="Modelica_4_0_0_Modelica_Electrical_Batteries_Examples_ShowImpedance",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Electrical.Batteries.Examples.ShowImpedance,fileNamePrefix="Modelica_4_0_0_Modelica_Electrical_Batteries_Examples_ShowImpedance",fmuType="me",version="2.0",platforms={"static"}) [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 0.001436/0.001437, allocations: 51.92 kB / 357.5 MB, free: 8.848 MB / 286.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09362/0.09506, allocations: 49.44 MB / 406.9 MB, free: 7.367 MB / 334.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Batteries.Examples.ShowImpedance): time 0.00304/0.09814, allocations: 1.894 MB / 408.8 MB, free: 5.465 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.001768/0.09993, allocations: 1.238 MB / 410 MB, free: 4.219 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 7.626e-05/0.1, allocations: 7.938 kB / 410.1 MB, free: 4.211 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.000992/0.101, allocations: 0.4908 MB / 410.5 MB, free: 3.719 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0002178/0.1013, allocations: 187.4 kB / 410.7 MB, free: 3.535 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.000426/0.1017, allocations: 183.3 kB / 410.9 MB, free: 3.355 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.0003215/0.102, allocations: 227.1 kB / 411.1 MB, free: 3.133 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 9.067e-05/0.1021, allocations: 25.67 kB / 411.2 MB, free: 3.109 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001827/0.1023, allocations: 123.5 kB / 411.3 MB, free: 2.988 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002757/0.1026, allocations: 211.5 kB / 411.5 MB, free: 2.781 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 2.782e-05/0.1026, allocations: 8 kB / 411.5 MB, free: 2.773 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001491/0.1028, allocations: 67.91 kB / 411.6 MB, free: 2.707 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0002319/0.103, allocations: 263.3 kB / 411.8 MB, free: 2.449 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0002481/0.1033, allocations: 277.9 kB / 412.1 MB, free: 2.176 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0007869/0.1041, allocations: 0.7661 MB / 412.8 MB, free: 1.406 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.839e-06/0.1041, allocations: 4 kB / 412.9 MB, free: 1.402 MB / 334.1 MB Notification: Performance of FrontEnd: time 1.563e-06/0.1041, allocations: 0 / 412.9 MB, free: 1.402 MB / 334.1 MB Notification: Performance of Transformations before backend: time 1.449e-05/0.1041, allocations: 3.938 kB / 412.9 MB, free: 1.398 MB / 334.1 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 4 * Number of variables: 4 Notification: Performance of Generate backend data structure: time 0.002472/0.1066, allocations: 1.212 MB / 414.1 MB, free: 136 kB / 334.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.05e-05/0.1067, allocations: 12.03 kB / 414.1 MB, free: 124 kB / 334.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 4.269e-05/0.1067, allocations: 34.69 kB / 414.1 MB, free: 80 kB / 334.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.000206/0.1069, allocations: 96.41 kB / 414.2 MB, free: 15.98 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.00098/0.1079, allocations: 0.7595 MB / 415 MB, free: 15.17 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.393e-05/0.1079, allocations: 384 / 415 MB, free: 15.17 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.807e-05/0.108, allocations: 4.359 kB / 415 MB, free: 15.17 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002976/0.1083, allocations: 125.7 kB / 415.1 MB, free: 15.04 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 9.608e-06/0.1083, allocations: 0 / 415.1 MB, free: 15.04 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.373e-05/0.1083, allocations: 0 / 415.1 MB, free: 15.04 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.248e-06/0.1083, allocations: 0 / 415.1 MB, free: 15.04 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0003636/0.1087, allocations: 143.9 kB / 415.2 MB, free: 14.9 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.00105/0.1097, allocations: 0.8142 MB / 416.1 MB, free: 14.04 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.000212/0.11, allocations: 90.52 kB / 416.1 MB, free: 13.94 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001818/0.1102, allocations: 76.89 kB / 416.2 MB, free: 13.86 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.666e-05/0.1102, allocations: 0 / 416.2 MB, free: 13.86 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.773e-05/0.1102, allocations: 30.56 kB / 416.2 MB, free: 13.82 MB / 350.1 MB Notification: Performance of pre-optimization done (n=3): time 9.02e-07/0.1102, allocations: 0 / 416.2 MB, free: 13.82 MB / 350.1 MB Notification: Performance of matching and sorting (n=3): time 0.0008197/0.111, allocations: 336.9 kB / 416.6 MB, free: 13.48 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.244e-05/0.1111, allocations: 55.39 kB / 416.6 MB, free: 13.42 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001724/0.1128, allocations: 1.401 MB / 418 MB, free: 12 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 2.723e-05/0.1129, allocations: 25.7 kB / 418.1 MB, free: 11.96 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0003949/0.1133, allocations: 384.4 kB / 418.4 MB, free: 11.59 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 3.283e-05/0.1133, allocations: 11.91 kB / 418.4 MB, free: 11.57 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 8.094e-05/0.1134, allocations: 21.7 kB / 418.5 MB, free: 11.55 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 0.0001628/0.1136, allocations: 309.9 kB / 418.8 MB, free: 11.24 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001873/0.1138, allocations: 75.94 kB / 418.8 MB, free: 11.16 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.00021/0.114, allocations: 86.52 kB / 418.9 MB, free: 11.07 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003579/0.1144, allocations: 154.4 kB / 419.1 MB, free: 10.91 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.097e-06/0.1144, allocations: 8 kB / 419.1 MB, free: 10.9 MB / 350.1 MB Notification: Performance of matching and sorting (n=3) (initialization): time 0.000676/0.1151, allocations: 264.9 kB / 419.3 MB, free: 10.64 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.139e-05/0.1151, allocations: 8 kB / 419.3 MB, free: 10.63 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.595e-06/0.1151, allocations: 0 / 419.3 MB, free: 10.63 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.99e-05/0.1151, allocations: 0 / 419.3 MB, free: 10.63 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002127/0.1153, allocations: 19.98 kB / 419.4 MB, free: 10.61 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.521e-05/0.1154, allocations: 8.078 kB / 419.4 MB, free: 10.6 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001896/0.1156, allocations: 19.86 kB / 419.4 MB, free: 10.58 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.719e-05/0.1156, allocations: 0 / 419.4 MB, free: 10.58 MB / 350.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 3 * 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 (3): * Single equations (assignments): 3 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.0003883/0.116, allocations: 345.6 kB / 419.7 MB, free: 10.23 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001872/0.1162, allocations: 91.39 kB / 419.8 MB, free: 10.14 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0006692/0.1169, allocations: 281.5 kB / 420.1 MB, free: 9.855 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.44e-06/0.1169, allocations: 3.938 kB / 420.1 MB, free: 9.852 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.715e-06/0.1169, allocations: 4 kB / 420.1 MB, free: 9.848 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.855e-06/0.1169, allocations: 0 / 420.1 MB, free: 9.848 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0006461/0.1176, allocations: 0.5143 MB / 420.6 MB, free: 9.285 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.867e-06/0.1176, allocations: 0 / 420.6 MB, free: 9.285 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 8.431e-05/0.1177, allocations: 15.98 kB / 420.6 MB, free: 9.27 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.064e-06/0.1177, allocations: 0 / 420.6 MB, free: 9.27 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.513e-05/0.1177, allocations: 3.984 kB / 420.6 MB, free: 9.266 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.613e-06/0.1177, allocations: 0 / 420.6 MB, free: 9.266 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.373e-06/0.1177, allocations: 0 / 420.6 MB, free: 9.266 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0005584/0.1183, allocations: 323.2 kB / 421 MB, free: 8.934 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0003158/0.1186, allocations: 232.5 kB / 421.2 MB, free: 8.688 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 6.424e-05/0.1187, allocations: 0 / 421.2 MB, free: 8.688 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001812/0.1189, allocations: 7.984 kB / 421.2 MB, free: 8.68 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.13e-05/0.1189, allocations: 8 kB / 421.2 MB, free: 8.672 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.235e-06/0.1189, allocations: 0 / 421.2 MB, free: 8.672 MB / 350.1 MB Notification: Performance of sorting global known variables: time 0.00126/0.1202, allocations: 1.021 MB / 422.2 MB, free: 7.641 MB / 350.1 MB Notification: Performance of sort global known variables: time 1.61e-07/0.1202, allocations: 0 / 422.2 MB, free: 7.641 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.000332/0.1206, allocations: 60 kB / 422.3 MB, free: 7.582 MB / 350.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * 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 simulation (4): * Single equations (assignments): 3 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 1 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.0009885/0.1216, allocations: 0.8796 MB / 423.2 MB, free: 6.672 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.0004111/0.122, allocations: 131.9 kB / 423.3 MB, free: 6.543 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 2.394e-06/0.122, allocations: 0 / 423.3 MB, free: 6.543 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0001746/0.1222, allocations: 51.89 kB / 423.3 MB, free: 6.492 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000594/0.1228, allocations: 100.3 kB / 423.4 MB, free: 6.391 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.1997/0.3225, allocations: 8.786 MB / 432.2 MB, free: 21.16 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003969/0.323, allocations: 1 MB / 433.2 MB, free: 20.46 MB / 350.1 MB Notification: Performance of simCode: alias equations: time 0.000601/0.3236, allocations: 473.5 kB / 433.7 MB, free: 20.45 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002655/0.3238, allocations: 247.9 kB / 433.9 MB, free: 20.44 MB / 350.1 MB Notification: Performance of SimCode: time 1.072e-06/0.3238, allocations: 3.906 kB / 433.9 MB, free: 20.44 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.0429/0.3668, allocations: 16.16 MB / 450.1 MB, free: 15.55 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 9.315/9.682, allocations: 19.89 kB / 450.1 MB, free: 15.54 MB / 350.1 MB " [Timeout remaining time 650] (rm -f Modelica_4.0.0_Modelica.Electrical.Batteries.Examples.ShowImpedance.pipe ; mkfifo Modelica_4.0.0_Modelica.Electrical.Batteries.Examples.ShowImpedance.pipe ; head -c 1048576 < Modelica_4.0.0_Modelica.Electrical.Batteries.Examples.ShowImpedance.pipe >> ../files/Modelica_4.0.0_Modelica.Electrical.Batteries.Examples.ShowImpedance.sim & python3 -m fmpy simulate --output-file Modelica_4.0.0_Modelica.Electrical.Batteries.Examples.ShowImpedance_res.csv --start-time 0 --stop-time 1 --timeout 50 --relative-tolerance 1e-06 --interface-type ModelExchange --solver CVode --output-interval 0.0001 Modelica_4_0_0_Modelica_Electrical_Batteries_Examples_ShowImpedance.fmu > Modelica_4.0.0_Modelica.Electrical.Batteries.Examples.ShowImpedance.pipe 2>&1) [Timeout 52.5] diffSimulationResults("Modelica_4.0.0_Modelica.Electrical.Batteries.Examples.ShowImpedance_res.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork_2/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Electrical/Batteries/Examples/ShowImpedance/ShowImpedance.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork_2/OpenModelicaLibraryTesting/files/Modelica_4.0.0_Modelica.Electrical.Batteries.Examples.ShowImpedance.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: 12.224140782025643]