Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_trunk_Modelica.Electrical.Batteries.Examples.ShowImpedance.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.001606/0.001606, allocations: 132.4 kB / 17.8 MB, free: 5.219 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001868/0.001868, allocations: 210.5 kB / 20.75 MB, free: 2.27 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.522/1.522, allocations: 230.5 MB / 254 MB, free: 15.18 MB / 206.1 MB " [Timeout remaining time 178] Using package Modelica with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo) Using package Complex with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo) Using package ModelicaServices with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo) Running command: "" <> buildModelFMU(Modelica.Electrical.Batteries.Examples.ShowImpedance,fileNamePrefix="Modelica_trunk_Modelica_Electrical_Batteries_Examples_ShowImpedance",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Electrical.Batteries.Examples.ShowImpedance,fileNamePrefix="Modelica_trunk_Modelica_Electrical_Batteries_Examples_ShowImpedance",fmuType="me",version="2.0",platforms={"static"}) [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 0.00195/0.00195, allocations: 63.89 kB / 373 MB, free: 10.14 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1104/0.1124, allocations: 53.38 MB / 426.3 MB, free: 4.668 MB / 350.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Batteries.Examples.ShowImpedance): time 0.003493/0.1159, allocations: 1.932 MB / 428.3 MB, free: 2.73 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.001928/0.1178, allocations: 1.253 MB / 429.5 MB, free: 1.469 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 7.843e-05/0.1179, allocations: 0 / 429.5 MB, free: 1.469 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.001017/0.1189, allocations: 0.5101 MB / 430 MB, free: 0.957 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0002243/0.1191, allocations: 195.4 kB / 430.2 MB, free: 0.7656 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0004423/0.1196, allocations: 163.4 kB / 430.4 MB, free: 0.6055 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.0003233/0.1199, allocations: 227.1 kB / 430.6 MB, free: 392 kB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 8.895e-05/0.12, allocations: 21.67 kB / 430.6 MB, free: 368 kB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002357/0.1202, allocations: 127.6 kB / 430.7 MB, free: 240 kB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002861/0.1205, allocations: 227.4 kB / 431 MB, free: 12 kB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 2.551e-05/0.1205, allocations: 8 kB / 431 MB, free: 4 kB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001709/0.1207, allocations: 63.95 kB / 431 MB, free: 15.94 MB / 366.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0002453/0.1209, allocations: 267.2 kB / 431.3 MB, free: 15.68 MB / 366.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0002596/0.1212, allocations: 273.9 kB / 431.6 MB, free: 15.41 MB / 366.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0008864/0.1221, allocations: 0.77 MB / 432.3 MB, free: 14.64 MB / 366.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.238e-06/0.1221, allocations: 0 / 432.3 MB, free: 14.64 MB / 366.1 MB Notification: Performance of FrontEnd: time 1.373e-06/0.1221, allocations: 4 kB / 432.3 MB, free: 14.63 MB / 366.1 MB Notification: Performance of Transformations before backend: time 9.438e-06/0.1221, allocations: 0 / 432.3 MB, free: 14.63 MB / 366.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.002837/0.1249, allocations: 1.213 MB / 433.6 MB, free: 13.37 MB / 366.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.675e-05/0.125, allocations: 8.031 kB / 433.6 MB, free: 13.36 MB / 366.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 4.612e-05/0.125, allocations: 34.75 kB / 433.6 MB, free: 13.32 MB / 366.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001869/0.1252, allocations: 92.33 kB / 433.7 MB, free: 13.23 MB / 366.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001064/0.1263, allocations: 0.7596 MB / 434.4 MB, free: 12.41 MB / 366.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.289e-05/0.1263, allocations: 8.312 kB / 434.5 MB, free: 12.41 MB / 366.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.699e-05/0.1263, allocations: 384 / 434.5 MB, free: 12.41 MB / 366.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003121/0.1266, allocations: 125.7 kB / 434.6 MB, free: 12.28 MB / 366.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 7.795e-06/0.1266, allocations: 0 / 434.6 MB, free: 12.28 MB / 366.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.592e-05/0.1266, allocations: 0 / 434.6 MB, free: 12.28 MB / 366.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.639e-06/0.1266, allocations: 0 / 434.6 MB, free: 12.28 MB / 366.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0003686/0.127, allocations: 143.9 kB / 434.7 MB, free: 12.14 MB / 366.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001062/0.1281, allocations: 0.8142 MB / 435.5 MB, free: 11.27 MB / 366.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002191/0.1283, allocations: 94.45 kB / 435.6 MB, free: 11.17 MB / 366.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001832/0.1285, allocations: 72.89 kB / 435.7 MB, free: 11.1 MB / 366.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.711e-05/0.1285, allocations: 0 / 435.7 MB, free: 11.1 MB / 366.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.802e-05/0.1285, allocations: 34.56 kB / 435.7 MB, free: 11.05 MB / 366.1 MB Notification: Performance of pre-optimization done (n=3): time 9.02e-07/0.1285, allocations: 0 / 435.7 MB, free: 11.05 MB / 366.1 MB Notification: Performance of matching and sorting (n=3): time 0.000839/0.1294, allocations: 325 kB / 436 MB, free: 10.73 MB / 366.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.849e-05/0.1294, allocations: 55.34 kB / 436.1 MB, free: 10.66 MB / 366.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001814/0.1312, allocations: 1.409 MB / 437.5 MB, free: 9.234 MB / 366.1 MB Notification: Performance of collectPreVariables (initialization): time 2.468e-05/0.1313, allocations: 29.64 kB / 437.5 MB, free: 9.199 MB / 366.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0003667/0.1316, allocations: 392.4 kB / 437.9 MB, free: 8.812 MB / 366.1 MB Notification: Performance of collectInitialBindings (initialization): time 2.76e-05/0.1317, allocations: 3.953 kB / 437.9 MB, free: 8.809 MB / 366.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 6.013e-05/0.1317, allocations: 17.72 kB / 437.9 MB, free: 8.785 MB / 366.1 MB Notification: Performance of setup shared object (initialization): time 0.0001465/0.1319, allocations: 321.9 kB / 438.3 MB, free: 8.465 MB / 366.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001815/0.132, allocations: 63.95 kB / 438.3 MB, free: 8.402 MB / 366.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001985/0.1322, allocations: 82.52 kB / 438.4 MB, free: 8.312 MB / 366.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003658/0.1326, allocations: 158.4 kB / 438.6 MB, free: 8.148 MB / 366.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.915e-06/0.1326, allocations: 4 kB / 438.6 MB, free: 8.145 MB / 366.1 MB Notification: Performance of matching and sorting (n=3) (initialization): time 0.0006121/0.1332, allocations: 264.9 kB / 438.8 MB, free: 7.879 MB / 366.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.922e-05/0.1332, allocations: 8 kB / 438.8 MB, free: 7.871 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.682e-06/0.1332, allocations: 0 / 438.8 MB, free: 7.871 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.545e-05/0.1333, allocations: 96 / 438.8 MB, free: 7.871 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001934/0.1335, allocations: 19.98 kB / 438.8 MB, free: 7.852 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.861e-06/0.1335, allocations: 0 / 438.8 MB, free: 7.852 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001912/0.1337, allocations: 15.94 kB / 438.9 MB, free: 7.836 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.922e-05/0.1337, allocations: 8 kB / 438.9 MB, free: 7.828 MB / 366.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.0003642/0.134, allocations: 337.6 kB / 439.2 MB, free: 7.488 MB / 366.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001919/0.1342, allocations: 91.42 kB / 439.3 MB, free: 7.398 MB / 366.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0006436/0.1349, allocations: 281.5 kB / 439.6 MB, free: 7.109 MB / 366.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.7e-06/0.1349, allocations: 0 / 439.6 MB, free: 7.109 MB / 366.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.649e-06/0.1349, allocations: 0 / 439.6 MB, free: 7.109 MB / 366.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.386e-06/0.1349, allocations: 0 / 439.6 MB, free: 7.109 MB / 366.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0006157/0.1355, allocations: 0.5143 MB / 440.1 MB, free: 6.547 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.957e-06/0.1355, allocations: 4 kB / 440.1 MB, free: 6.543 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 8.792e-05/0.1356, allocations: 15.98 kB / 440.1 MB, free: 6.527 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 4.378e-06/0.1356, allocations: 3.984 kB / 440.1 MB, free: 6.523 MB / 366.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.33e-05/0.1356, allocations: 7.938 kB / 440.1 MB, free: 6.516 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.222e-06/0.1356, allocations: 0 / 440.1 MB, free: 6.516 MB / 366.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.31e-07/0.1356, allocations: 0 / 440.1 MB, free: 6.516 MB / 366.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0005321/0.1361, allocations: 323.2 kB / 440.4 MB, free: 6.184 MB / 366.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0003466/0.1365, allocations: 232.4 kB / 440.6 MB, free: 5.938 MB / 366.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 6.154e-05/0.1366, allocations: 4 kB / 440.7 MB, free: 5.934 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001875/0.1367, allocations: 4 kB / 440.7 MB, free: 5.93 MB / 366.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.919e-05/0.1368, allocations: 3.984 kB / 440.7 MB, free: 5.926 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.111e-05/0.1368, allocations: 4 kB / 440.7 MB, free: 5.922 MB / 366.1 MB Notification: Performance of sorting global known variables: time 0.001315/0.1381, allocations: 1.013 MB / 441.7 MB, free: 4.898 MB / 366.1 MB Notification: Performance of sort global known variables: time 8.1e-08/0.1381, allocations: 0 / 441.7 MB, free: 4.898 MB / 366.1 MB Notification: Performance of remove unused functions: time 0.0003457/0.1385, allocations: 64 kB / 441.7 MB, free: 4.836 MB / 366.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.0009682/0.1394, allocations: 0.8603 MB / 442.6 MB, free: 3.945 MB / 366.1 MB Notification: Performance of simCode: created initialization part: time 0.000396/0.1398, allocations: 131.8 kB / 442.7 MB, free: 3.816 MB / 366.1 MB Notification: Performance of simCode: created event and clocks part: time 4.038e-06/0.1398, allocations: 4 kB / 442.7 MB, free: 3.812 MB / 366.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0001694/0.14, allocations: 51.95 kB / 442.8 MB, free: 3.762 MB / 366.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005822/0.1406, allocations: 106.8 kB / 442.9 MB, free: 3.656 MB / 366.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.2309/0.3714, allocations: 8.779 MB / 451.7 MB, free: 22.36 MB / 366.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005436/0.372, allocations: 1.001 MB / 452.7 MB, free: 21.62 MB / 366.1 MB Notification: Performance of simCode: alias equations: time 0.0007871/0.3728, allocations: 470.1 kB / 453.1 MB, free: 21.61 MB / 366.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002917/0.3731, allocations: 249.8 kB / 453.4 MB, free: 21.41 MB / 366.1 MB Notification: Performance of SimCode: time 9.52e-07/0.3731, allocations: 0 / 453.4 MB, free: 21.41 MB / 366.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.04927/0.4223, allocations: 16.17 MB / 469.5 MB, free: 16.48 MB / 366.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 9.854/10.28, allocations: 5.109 kB / 469.6 MB, free: 16.48 MB / 366.1 MB " [Timeout remaining time 650] (rm -f Modelica_trunk_Modelica.Electrical.Batteries.Examples.ShowImpedance.pipe ; mkfifo Modelica_trunk_Modelica.Electrical.Batteries.Examples.ShowImpedance.pipe ; head -c 1048576 < Modelica_trunk_Modelica.Electrical.Batteries.Examples.ShowImpedance.pipe >> ../files/Modelica_trunk_Modelica.Electrical.Batteries.Examples.ShowImpedance.sim & python3 -m fmpy simulate --output-file Modelica_trunk_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_trunk_Modelica_Electrical_Batteries_Examples_ShowImpedance.fmu > Modelica_trunk_Modelica.Electrical.Batteries.Examples.ShowImpedance.pipe 2>&1) [Timeout 52.5] diffSimulationResults("Modelica_trunk_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_trunk_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: 13.090028275037184]