Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.1.0_Modelica.Electrical.Batteries.Examples.ShowImpedance.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.001784/0.001784, allocations: 113.2 kB / 20.43 MB, free: 1.449 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.002382/0.002382, allocations: 212 kB / 23.74 MB, free: 4.656 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo): time 1.539/1.539, allocations: 230.6 MB / 257.5 MB, free: 7.988 MB / 206.1 MB " [Timeout remaining time 178] Using package Modelica with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+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.Batteries.Examples.ShowImpedance,fileNamePrefix="Modelica_4_1_0_Modelica_Electrical_Batteries_Examples_ShowImpedance",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Electrical.Batteries.Examples.ShowImpedance,fileNamePrefix="Modelica_4_1_0_Modelica_Electrical_Batteries_Examples_ShowImpedance",fmuType="me",version="2.0",platforms={"static"}) [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 0.00213/0.00213, allocations: 47.92 kB / 377.8 MB, free: 3.145 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3203/0.3224, allocations: 53.36 MB / 431.1 MB, free: 6.859 MB / 334.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Batteries.Examples.ShowImpedance): time 0.003353/0.3258, allocations: 1.936 MB / 433.1 MB, free: 4.918 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.001887/0.3277, allocations: 1.269 MB / 434.3 MB, free: 3.641 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 8.806e-05/0.3278, allocations: 4 kB / 434.3 MB, free: 3.637 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.001005/0.3288, allocations: 0.5034 MB / 434.8 MB, free: 3.133 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.000239/0.329, allocations: 195.4 kB / 435 MB, free: 2.941 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0004256/0.3294, allocations: 167.4 kB / 435.2 MB, free: 2.777 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.0003467/0.3298, allocations: 223.1 kB / 435.4 MB, free: 2.559 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 8.22e-05/0.3299, allocations: 17.8 kB / 435.4 MB, free: 2.539 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002413/0.3301, allocations: 127.6 kB / 435.5 MB, free: 2.414 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002859/0.3304, allocations: 231.4 kB / 435.8 MB, free: 2.188 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 3.265e-05/0.3304, allocations: 8 kB / 435.8 MB, free: 2.18 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001396/0.3306, allocations: 71.84 kB / 435.8 MB, free: 2.109 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0002265/0.3308, allocations: 263.3 kB / 436.1 MB, free: 1.852 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0002449/0.331, allocations: 277.9 kB / 436.4 MB, free: 1.578 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0008338/0.3319, allocations: 0.7694 MB / 437.1 MB, free: 0.8086 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.466e-06/0.3319, allocations: 0 / 437.1 MB, free: 0.8086 MB / 334.1 MB Notification: Performance of FrontEnd: time 1.433e-06/0.3319, allocations: 3.938 kB / 437.1 MB, free: 0.8047 MB / 334.1 MB Notification: Performance of Transformations before backend: time 9.107e-06/0.3319, allocations: 4 kB / 437.2 MB, free: 0.8008 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.002672/0.3346, allocations: 1.129 MB / 438.3 MB, free: 15.64 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.572e-05/0.3346, allocations: 12.03 kB / 438.3 MB, free: 15.62 MB / 350.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 5.06e-05/0.3347, allocations: 38.73 kB / 438.3 MB, free: 15.58 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001809/0.3348, allocations: 96.31 kB / 438.4 MB, free: 15.48 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001095/0.3359, allocations: 0.703 MB / 439.1 MB, free: 14.74 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.435e-05/0.3359, allocations: 4.375 kB / 439.1 MB, free: 14.74 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.481e-05/0.336, allocations: 384 / 439.1 MB, free: 14.74 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002792/0.3362, allocations: 121.7 kB / 439.3 MB, free: 14.61 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 8.746e-06/0.3362, allocations: 0 / 439.3 MB, free: 14.61 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.502e-05/0.3363, allocations: 4 kB / 439.3 MB, free: 14.61 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.907e-06/0.3363, allocations: 0 / 439.3 MB, free: 14.61 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.000349/0.3366, allocations: 139.9 kB / 439.4 MB, free: 14.47 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.00107/0.3377, allocations: 0.786 MB / 440.2 MB, free: 13.64 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002173/0.3379, allocations: 94.45 kB / 440.3 MB, free: 13.54 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001714/0.3381, allocations: 72.89 kB / 440.3 MB, free: 13.47 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.557e-05/0.3381, allocations: 0 / 440.3 MB, free: 13.47 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.993e-05/0.3381, allocations: 34.56 kB / 440.4 MB, free: 13.43 MB / 350.1 MB Notification: Performance of pre-optimization done (n=3): time 9.92e-07/0.3381, allocations: 0 / 440.4 MB, free: 13.43 MB / 350.1 MB Notification: Performance of matching and sorting (n=3): time 0.000836/0.339, allocations: 336.8 kB / 440.7 MB, free: 13.09 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.52e-05/0.339, allocations: 51.41 kB / 440.8 MB, free: 13.03 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001774/0.3408, allocations: 1.405 MB / 442.2 MB, free: 11.6 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 2.386e-05/0.3408, allocations: 25.7 kB / 442.2 MB, free: 11.57 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0003632/0.3412, allocations: 384.4 kB / 442.6 MB, free: 11.19 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 2.733e-05/0.3412, allocations: 7.953 kB / 442.6 MB, free: 11.18 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 5.77e-05/0.3412, allocations: 17.72 kB / 442.6 MB, free: 11.16 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 0.0001535/0.3414, allocations: 321.9 kB / 442.9 MB, free: 10.84 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001716/0.3416, allocations: 59.95 kB / 443 MB, free: 10.78 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001887/0.3418, allocations: 86.52 kB / 443 MB, free: 10.69 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003437/0.3421, allocations: 162.4 kB / 443.2 MB, free: 10.52 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.244e-06/0.3421, allocations: 0 / 443.2 MB, free: 10.52 MB / 350.1 MB Notification: Performance of matching and sorting (n=3) (initialization): time 0.0005812/0.3427, allocations: 272.9 kB / 443.5 MB, free: 10.25 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.535e-05/0.3427, allocations: 4 kB / 443.5 MB, free: 10.24 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.19e-06/0.3427, allocations: 0 / 443.5 MB, free: 10.24 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.701e-05/0.3427, allocations: 4 kB / 443.5 MB, free: 10.24 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001831/0.3429, allocations: 16.08 kB / 443.5 MB, free: 10.22 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.3e-06/0.3429, allocations: 3.938 kB / 443.5 MB, free: 10.22 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001902/0.3431, allocations: 11.98 kB / 443.5 MB, free: 10.21 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.293e-05/0.3431, allocations: 0 / 443.5 MB, free: 10.21 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.0003572/0.3435, allocations: 341.6 kB / 443.8 MB, free: 9.863 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001788/0.3437, allocations: 91.42 kB / 443.9 MB, free: 9.773 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0006651/0.3443, allocations: 289.6 kB / 444.2 MB, free: 9.48 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.679e-06/0.3443, allocations: 0 / 444.2 MB, free: 9.48 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.534e-06/0.3443, allocations: 4 kB / 444.2 MB, free: 9.477 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.806e-06/0.3443, allocations: 0 / 444.2 MB, free: 9.477 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0005609/0.3449, allocations: 493.8 kB / 444.7 MB, free: 8.953 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.226e-06/0.3449, allocations: 4 kB / 444.7 MB, free: 8.949 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 7.69e-05/0.345, allocations: 11.98 kB / 444.7 MB, free: 8.938 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 3.827e-06/0.345, allocations: 3.984 kB / 444.7 MB, free: 8.934 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 9.999e-06/0.345, allocations: 0 / 444.7 MB, free: 8.934 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.173e-06/0.345, allocations: 0 / 444.7 MB, free: 8.934 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 9.62e-07/0.345, allocations: 0 / 444.7 MB, free: 8.934 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.000516/0.3455, allocations: 331.2 kB / 445 MB, free: 8.594 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0003754/0.3459, allocations: 159.3 kB / 445.2 MB, free: 8.438 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 6.706e-05/0.3459, allocations: 3.984 kB / 445.2 MB, free: 8.434 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001884/0.3461, allocations: 8 kB / 445.2 MB, free: 8.426 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.093e-05/0.3462, allocations: 3.984 kB / 445.2 MB, free: 8.422 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.264e-06/0.3462, allocations: 0 / 445.2 MB, free: 8.422 MB / 350.1 MB Notification: Performance of sorting global known variables: time 0.00144/0.3476, allocations: 1.017 MB / 446.2 MB, free: 7.395 MB / 350.1 MB Notification: Performance of sort global known variables: time 1.1e-07/0.3476, allocations: 0 / 446.2 MB, free: 7.395 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.0003338/0.348, allocations: 60 kB / 446.3 MB, free: 7.336 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.0009768/0.3489, allocations: 0.8642 MB / 447.2 MB, free: 6.441 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.0003688/0.3493, allocations: 127.8 kB / 447.3 MB, free: 6.316 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 2.264e-06/0.3493, allocations: 0 / 447.3 MB, free: 6.316 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0001607/0.3495, allocations: 55.95 kB / 447.3 MB, free: 6.262 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005789/0.35, allocations: 114.1 kB / 447.4 MB, free: 6.148 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01246/0.3625, allocations: 8.799 MB / 456.2 MB, free: 13.2 MB / 366.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0008698/0.3634, allocations: 0.9928 MB / 457.2 MB, free: 12.19 MB / 366.1 MB Notification: Performance of simCode: alias equations: time 0.0006674/0.364, allocations: 474 kB / 457.7 MB, free: 11.72 MB / 366.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003315/0.3644, allocations: 251.3 kB / 457.9 MB, free: 11.47 MB / 366.1 MB Notification: Performance of SimCode: time 8.81e-07/0.3644, allocations: 0 / 457.9 MB, free: 11.47 MB / 366.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.0496/0.414, allocations: 16.29 MB / 474.2 MB, free: 11.37 MB / 382.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 12.73/13.15, allocations: 10.03 kB / 474.2 MB, free: 11.37 MB / 382.1 MB " [Timeout remaining time 647] (rm -f Modelica_4.1.0_Modelica.Electrical.Batteries.Examples.ShowImpedance.pipe ; mkfifo Modelica_4.1.0_Modelica.Electrical.Batteries.Examples.ShowImpedance.pipe ; head -c 1048576 < Modelica_4.1.0_Modelica.Electrical.Batteries.Examples.ShowImpedance.pipe >> ../files/Modelica_4.1.0_Modelica.Electrical.Batteries.Examples.ShowImpedance.sim & python3 -m fmpy simulate --output-file Modelica_4.1.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_1_0_Modelica_Electrical_Batteries_Examples_ShowImpedance.fmu > Modelica_4.1.0_Modelica.Electrical.Batteries.Examples.ShowImpedance.pipe 2>&1) [Timeout 52.5] diffSimulationResults("Modelica_4.1.0_Modelica.Electrical.Batteries.Examples.ShowImpedance_res.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.1.0/Modelica/Electrical/Batteries/Examples/ShowImpedance/ShowImpedance.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_4.1.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: 15.969048261998978]