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.001646/0.001646, allocations: 123.4 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.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.001975/0.001975, allocations: 200.3 kB / 20.74 MB, free: 2.32 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.49/1.49, allocations: 230.6 MB / 254.1 MB, free: 15.09 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.001742/0.001742, allocations: 55.91 kB / 373 MB, free: 10.24 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1052/0.1069, allocations: 53.33 MB / 426.3 MB, free: 4.82 MB / 350.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Batteries.Examples.ShowImpedance): time 0.003726/0.1107, allocations: 1.918 MB / 428.2 MB, free: 2.891 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.002016/0.1127, allocations: 1.257 MB / 429.5 MB, free: 1.625 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001255/0.1128, allocations: 3.938 kB / 429.5 MB, free: 1.621 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.00114/0.114, allocations: 0.5024 MB / 430 MB, free: 1.117 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0002671/0.1142, allocations: 199.4 kB / 430.2 MB, free: 0.9219 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0004306/0.1147, allocations: 167.4 kB / 430.3 MB, free: 0.7578 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.0003376/0.115, allocations: 227 kB / 430.6 MB, free: 0.5352 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 8.583e-05/0.1151, allocations: 13.69 kB / 430.6 MB, free: 0.5195 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002275/0.1153, allocations: 135.5 kB / 430.7 MB, free: 396 kB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002679/0.1156, allocations: 231.4 kB / 430.9 MB, free: 164 kB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 2.555e-05/0.1156, allocations: 8 kB / 430.9 MB, free: 156 kB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001492/0.1157, allocations: 59.97 kB / 431 MB, free: 96 kB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 0.2235/0.3392, allocations: 254.8 kB / 431.2 MB, free: 7.98 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0002849/0.3395, allocations: 281.5 kB / 431.5 MB, free: 7.863 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0009429/0.3405, allocations: 0.7668 MB / 432.3 MB, free: 7.715 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.759e-06/0.3405, allocations: 0.6562 kB / 432.3 MB, free: 7.715 MB / 350.1 MB Notification: Performance of FrontEnd: time 1.393e-06/0.3405, allocations: 1.406 kB / 432.3 MB, free: 7.715 MB / 350.1 MB Notification: Performance of Transformations before backend: time 1.735e-05/0.3405, allocations: 0 / 432.3 MB, free: 7.715 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: 4 * Number of variables: 4 Notification: Performance of Generate backend data structure: time 0.002359/0.3428, allocations: 1.212 MB / 433.5 MB, free: 6.949 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.866e-05/0.3429, allocations: 12.53 kB / 433.5 MB, free: 6.949 MB / 350.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 3.066e-05/0.3429, allocations: 34.06 kB / 433.5 MB, free: 6.91 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001614/0.3431, allocations: 94.23 kB / 433.6 MB, free: 6.859 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0008813/0.344, allocations: 0.7553 MB / 434.4 MB, free: 6.5 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.619e-05/0.344, allocations: 5.375 kB / 434.4 MB, free: 6.496 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.378e-05/0.344, allocations: 3.656 kB / 434.4 MB, free: 6.496 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002713/0.3443, allocations: 120.3 kB / 434.5 MB, free: 6.461 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 9.789e-06/0.3443, allocations: 0.625 kB / 434.5 MB, free: 6.461 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.648e-05/0.3443, allocations: 5.656 kB / 434.5 MB, free: 6.461 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.2e-06/0.3443, allocations: 2.438 kB / 434.5 MB, free: 6.461 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0003397/0.3446, allocations: 141.7 kB / 434.7 MB, free: 6.461 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0009961/0.3456, allocations: 0.811 MB / 435.5 MB, free: 6.195 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002152/0.3459, allocations: 88.09 kB / 435.6 MB, free: 6.172 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.000183/0.346, allocations: 77.8 kB / 435.6 MB, free: 6.164 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.882e-05/0.3461, allocations: 0 / 435.6 MB, free: 6.164 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.088e-05/0.3461, allocations: 33.2 kB / 435.7 MB, free: 6.125 MB / 350.1 MB Notification: Performance of pre-optimization done (n=3): time 1.102e-06/0.3461, allocations: 0 / 435.7 MB, free: 6.125 MB / 350.1 MB Notification: Performance of matching and sorting (n=3): time 0.0008147/0.3469, allocations: 327.4 kB / 436 MB, free: 6.047 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 2.356e-05/0.3469, allocations: 54.16 kB / 436 MB, free: 5.984 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001751/0.3487, allocations: 1.408 MB / 437.5 MB, free: 5.84 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 1.511e-05/0.3487, allocations: 25.7 kB / 437.5 MB, free: 5.809 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002541/0.3489, allocations: 390.1 kB / 437.9 MB, free: 5.723 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 2.586e-05/0.349, allocations: 10.69 kB / 437.9 MB, free: 5.719 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 5.98e-05/0.349, allocations: 18.23 kB / 437.9 MB, free: 5.703 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 4.5e-05/0.3491, allocations: 313.1 kB / 438.2 MB, free: 5.398 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001816/0.3492, allocations: 64.47 kB / 438.3 MB, free: 5.398 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001808/0.3494, allocations: 87 kB / 438.3 MB, free: 5.375 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003399/0.3498, allocations: 165.6 kB / 438.5 MB, free: 5.336 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.134e-06/0.3498, allocations: 2 kB / 438.5 MB, free: 5.336 MB / 350.1 MB Notification: Performance of matching and sorting (n=3) (initialization): time 0.0005762/0.3503, allocations: 266.9 kB / 438.8 MB, free: 5.211 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.707e-05/0.3504, allocations: 6.328 kB / 438.8 MB, free: 5.211 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.731e-06/0.3504, allocations: 1.375 kB / 438.8 MB, free: 5.211 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.628e-05/0.3504, allocations: 1.375 kB / 438.8 MB, free: 5.211 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001876/0.3506, allocations: 14.77 kB / 438.8 MB, free: 5.211 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.214e-06/0.3506, allocations: 2.578 kB / 438.8 MB, free: 5.211 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002001/0.3508, allocations: 17.45 kB / 438.8 MB, free: 5.203 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.599e-05/0.3508, allocations: 1.984 kB / 438.8 MB, free: 5.203 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.0003287/0.3511, allocations: 345.9 kB / 439.1 MB, free: 5.027 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001754/0.3513, allocations: 93.34 kB / 439.2 MB, free: 4.977 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0006155/0.3519, allocations: 280.7 kB / 439.5 MB, free: 4.852 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.922e-06/0.3519, allocations: 1.094 kB / 439.5 MB, free: 4.852 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.228e-06/0.3519, allocations: 2.344 kB / 439.5 MB, free: 4.852 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.358e-06/0.3519, allocations: 4.688 kB / 439.5 MB, free: 4.852 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0005911/0.3525, allocations: 0.5103 MB / 440 MB, free: 4.562 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.069e-06/0.3525, allocations: 2.281 kB / 440 MB, free: 4.562 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 7.745e-05/0.3526, allocations: 11.08 kB / 440 MB, free: 4.562 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.934e-06/0.3526, allocations: 0 / 440 MB, free: 4.562 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.295e-05/0.3526, allocations: 5.797 kB / 440.1 MB, free: 4.559 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.274e-06/0.3526, allocations: 2.125 kB / 440.1 MB, free: 4.559 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.062e-06/0.3526, allocations: 4 kB / 440.1 MB, free: 4.555 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0004723/0.3531, allocations: 321.7 kB / 440.4 MB, free: 4.34 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002638/0.3534, allocations: 231.7 kB / 440.6 MB, free: 4.176 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 6.794e-05/0.3534, allocations: 1.875 kB / 440.6 MB, free: 4.176 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001887/0.3536, allocations: 6.922 kB / 440.6 MB, free: 4.176 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.479e-05/0.3537, allocations: 7.594 kB / 440.6 MB, free: 4.172 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 9.468e-06/0.3537, allocations: 3.016 kB / 440.6 MB, free: 4.172 MB / 350.1 MB Notification: Performance of sorting global known variables: time 0.001435/0.3551, allocations: 1.015 MB / 441.6 MB, free: 3.836 MB / 350.1 MB Notification: Performance of sort global known variables: time 6e-08/0.3551, allocations: 0 / 441.6 MB, free: 3.836 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.0003666/0.3555, allocations: 60.84 kB / 441.7 MB, free: 3.836 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.0007713/0.3563, allocations: 0.8733 MB / 442.6 MB, free: 3.082 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.0004001/0.3567, allocations: 119.3 kB / 442.7 MB, free: 3.047 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 1.874e-06/0.3567, allocations: 0 / 442.7 MB, free: 3.047 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0001674/0.3568, allocations: 60.41 kB / 442.7 MB, free: 3.027 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005948/0.3574, allocations: 100.7 kB / 442.8 MB, free: 2.98 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01165/0.3691, allocations: 8.791 MB / 451.6 MB, free: 15.66 MB / 366.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0008152/0.3699, allocations: 0.9985 MB / 452.6 MB, free: 14.91 MB / 366.1 MB Notification: Performance of simCode: alias equations: time 0.0007771/0.3707, allocations: 475.6 kB / 453.1 MB, free: 14.89 MB / 366.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003773/0.371, allocations: 252.7 kB / 453.3 MB, free: 14.69 MB / 366.1 MB Notification: Performance of SimCode: time 1.092e-06/0.371, allocations: 3.938 kB / 453.3 MB, free: 14.68 MB / 366.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.04667/0.4177, allocations: 16.17 MB / 469.5 MB, free: 4.758 MB / 366.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 9.424/9.842, allocations: 4 kB / 469.5 MB, free: 4.754 MB / 366.1 MB " [Timeout remaining time 650] (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: 12.591027122005471]