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) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo", uses=false) 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"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.0008684/0.0008684, allocations: 90.17 kB / 16.65 MB, free: 6.535 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.0009762/0.0009762, allocations: 178.5 kB / 17.56 MB, free: 6.18 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.517/1.517, allocations: 223.3 MB / 241.6 MB, free: 204 kB / 190.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0002843/0.0002843, allocations: 4 kB / 301.5 MB, free: 6.043 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1097/0.11, allocations: 50.42 MB / 351.9 MB, free: 3.613 MB / 286.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Batteries.Examples.ShowImpedance): time 0.002575/0.1127, allocations: 1.599 MB / 353.5 MB, free: 2 MB / 286.1 MB Notification: Performance of NFInst.instExpressions: time 0.002013/0.1147, allocations: 1.203 MB / 354.7 MB, free: 0.7891 MB / 286.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001513/0.1149, allocations: 4 kB / 354.7 MB, free: 0.7852 MB / 286.1 MB Notification: Performance of NFTyping.typeComponents: time 0.001184/0.1161, allocations: 0.495 MB / 355.2 MB, free: 296 kB / 286.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0002977/0.1164, allocations: 183.5 kB / 355.4 MB, free: 112 kB / 286.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0005009/0.1169, allocations: 167.7 kB / 355.6 MB, free: 15.94 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 0.0004067/0.1173, allocations: 219.1 kB / 355.8 MB, free: 15.73 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001053/0.1175, allocations: 29.67 kB / 355.8 MB, free: 15.7 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002838/0.1177, allocations: 107.6 kB / 355.9 MB, free: 15.59 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0004035/0.1182, allocations: 211.5 kB / 356.1 MB, free: 15.38 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 4.151e-05/0.1182, allocations: 4 kB / 356.1 MB, free: 15.38 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0002146/0.1184, allocations: 67.91 kB / 356.2 MB, free: 15.31 MB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0002384/0.1187, allocations: 259.2 kB / 356.5 MB, free: 15.06 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0003133/0.119, allocations: 295.6 kB / 356.8 MB, free: 14.76 MB / 302.1 MB Notification: Performance of NFConvertDAE.convert: time 0.000999/0.12, allocations: 0.743 MB / 357.5 MB, free: 14.02 MB / 302.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.286e-06/0.12, allocations: 0 / 357.5 MB, free: 14.02 MB / 302.1 MB Notification: Performance of FrontEnd: time 2.274e-06/0.12, allocations: 0 / 357.5 MB, free: 14.02 MB / 302.1 MB Notification: Performance of Transformations before backend: time 2.469e-05/0.1201, allocations: 4 kB / 357.5 MB, free: 14.02 MB / 302.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.003132/0.1232, allocations: 1.069 MB / 358.6 MB, free: 12.89 MB / 302.1 MB Notification: Performance of prepare preOptimizeDAE: time 6.054e-05/0.1233, allocations: 12.03 kB / 358.6 MB, free: 12.88 MB / 302.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 5.662e-05/0.1233, allocations: 38.69 kB / 358.6 MB, free: 12.84 MB / 302.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002944/0.1236, allocations: 95.88 kB / 358.7 MB, free: 12.74 MB / 302.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001344/0.125, allocations: 0.7391 MB / 359.4 MB, free: 11.95 MB / 302.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.967e-05/0.125, allocations: 4.375 kB / 359.5 MB, free: 11.95 MB / 302.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.323e-05/0.1251, allocations: 4.375 kB / 359.5 MB, free: 11.94 MB / 302.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003235/0.1254, allocations: 121.7 kB / 359.6 MB, free: 11.82 MB / 302.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.175e-05/0.1254, allocations: 3.984 kB / 359.6 MB, free: 11.81 MB / 302.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.735e-05/0.1254, allocations: 0 / 359.6 MB, free: 11.81 MB / 302.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.159e-06/0.1255, allocations: 0 / 359.6 MB, free: 11.81 MB / 302.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0003837/0.1258, allocations: 159.9 kB / 359.7 MB, free: 11.66 MB / 302.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001506/0.1274, allocations: 0.8181 MB / 360.6 MB, free: 10.79 MB / 302.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002362/0.1276, allocations: 90.52 kB / 360.6 MB, free: 10.69 MB / 302.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.000198/0.1278, allocations: 80.89 kB / 360.7 MB, free: 10.61 MB / 302.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.952e-05/0.1278, allocations: 3.938 kB / 360.7 MB, free: 10.61 MB / 302.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.046e-05/0.1279, allocations: 30.56 kB / 360.8 MB, free: 10.57 MB / 302.1 MB Notification: Performance of pre-optimization done (n=3): time 1.232e-06/0.1279, allocations: 7.938 kB / 360.8 MB, free: 10.56 MB / 302.1 MB Notification: Performance of matching and sorting (n=3): time 0.001015/0.1289, allocations: 348.3 kB / 361.1 MB, free: 10.21 MB / 302.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.804e-05/0.129, allocations: 59.41 kB / 361.2 MB, free: 10.14 MB / 302.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.002357/0.1313, allocations: 1.401 MB / 362.6 MB, free: 8.719 MB / 302.1 MB Notification: Performance of collectPreVariables (initialization): time 3.907e-05/0.1314, allocations: 29.7 kB / 362.6 MB, free: 8.684 MB / 302.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0003608/0.1318, allocations: 380.4 kB / 363 MB, free: 8.309 MB / 302.1 MB Notification: Performance of collectInitialBindings (initialization): time 2.641e-05/0.1318, allocations: 3.906 kB / 363 MB, free: 8.305 MB / 302.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 4.869e-05/0.1319, allocations: 17.7 kB / 363 MB, free: 8.281 MB / 302.1 MB Notification: Performance of setup shared object (initialization): time 0.0001318/0.132, allocations: 313.9 kB / 363.3 MB, free: 7.969 MB / 302.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001788/0.1322, allocations: 71.95 kB / 363.4 MB, free: 7.898 MB / 302.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.000186/0.1324, allocations: 86.52 kB / 363.4 MB, free: 7.805 MB / 302.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003679/0.1328, allocations: 178.4 kB / 363.6 MB, free: 7.621 MB / 302.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.704e-06/0.1328, allocations: 0 / 363.6 MB, free: 7.621 MB / 302.1 MB Notification: Performance of matching and sorting (n=3) (initialization): time 0.0006696/0.1334, allocations: 276.5 kB / 363.9 MB, free: 7.344 MB / 302.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.09e-05/0.1335, allocations: 7.984 kB / 363.9 MB, free: 7.336 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.953e-06/0.1335, allocations: 4 kB / 363.9 MB, free: 7.332 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.439e-05/0.1335, allocations: 0 / 363.9 MB, free: 7.332 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001824/0.1337, allocations: 15.98 kB / 363.9 MB, free: 7.316 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 4.688e-06/0.1337, allocations: 0 / 363.9 MB, free: 7.316 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002533/0.134, allocations: 19.95 kB / 363.9 MB, free: 7.297 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.936e-05/0.134, allocations: 8 kB / 363.9 MB, free: 7.289 MB / 302.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.0003863/0.1344, allocations: 337.6 kB / 364.3 MB, free: 6.949 MB / 302.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002074/0.1346, allocations: 86.95 kB / 364.4 MB, free: 6.863 MB / 302.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0006784/0.1353, allocations: 293.5 kB / 364.6 MB, free: 6.566 MB / 302.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.093e-05/0.1353, allocations: 4 kB / 364.6 MB, free: 6.562 MB / 302.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.62e-06/0.1353, allocations: 0 / 364.6 MB, free: 6.562 MB / 302.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.086e-06/0.1353, allocations: 4 kB / 364.7 MB, free: 6.559 MB / 302.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.000677/0.136, allocations: 0.5104 MB / 365.2 MB, free: 6 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.424e-06/0.136, allocations: 4 kB / 365.2 MB, free: 5.996 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 8.747e-05/0.1361, allocations: 11.98 kB / 365.2 MB, free: 5.984 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 3.878e-06/0.1361, allocations: 4 kB / 365.2 MB, free: 5.98 MB / 302.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.35e-05/0.1362, allocations: 4 kB / 365.2 MB, free: 5.977 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.365e-06/0.1362, allocations: 0 / 365.2 MB, free: 5.977 MB / 302.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.837e-06/0.1362, allocations: 0 / 365.2 MB, free: 5.977 MB / 302.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0005782/0.1368, allocations: 338.6 kB / 365.5 MB, free: 5.629 MB / 302.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0003259/0.1371, allocations: 220 kB / 365.7 MB, free: 5.395 MB / 302.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 7.946e-05/0.1372, allocations: 3.984 kB / 365.7 MB, free: 5.391 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.000199/0.1374, allocations: 8 kB / 365.7 MB, free: 5.383 MB / 302.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.34e-05/0.1374, allocations: 11.98 kB / 365.8 MB, free: 5.371 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.476e-06/0.1375, allocations: 0 / 365.8 MB, free: 5.371 MB / 302.1 MB Notification: Performance of sorting global known variables: time 0.001401/0.1389, allocations: 1.013 MB / 366.8 MB, free: 4.348 MB / 302.1 MB Notification: Performance of sort global known variables: time 1.41e-07/0.1389, allocations: 0 / 366.8 MB, free: 4.348 MB / 302.1 MB Notification: Performance of remove unused functions: time 0.0003767/0.1393, allocations: 67.84 kB / 366.8 MB, free: 4.281 MB / 302.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.001022/0.1403, allocations: 0.8831 MB / 367.7 MB, free: 3.367 MB / 302.1 MB Notification: Performance of simCode: created initialization part: time 0.0003913/0.1407, allocations: 135.9 kB / 367.9 MB, free: 3.234 MB / 302.1 MB Notification: Performance of simCode: created event and clocks part: time 2.475e-06/0.1407, allocations: 0 / 367.9 MB, free: 3.234 MB / 302.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0001881/0.1409, allocations: 63.89 kB / 367.9 MB, free: 3.172 MB / 302.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0006669/0.1416, allocations: 96.39 kB / 368 MB, free: 3.078 MB / 302.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.1996/0.3412, allocations: 9.515 MB / 377.5 MB, free: 22.13 MB / 302.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005612/0.3418, allocations: 1.005 MB / 378.5 MB, free: 21.44 MB / 302.1 MB Notification: Performance of simCode: alias equations: time 0.000776/0.3426, allocations: 473.6 kB / 379 MB, free: 21.42 MB / 302.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003148/0.3429, allocations: 250.5 kB / 379.2 MB, free: 21.3 MB / 302.1 MB Notification: Performance of SimCode: time 1.162e-06/0.3429, allocations: 0 / 379.2 MB, free: 21.3 MB / 302.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.0318/0.3747, allocations: 15.24 MB / 394.5 MB, free: 13.39 MB / 302.1 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001764/0.3749, allocations: 201.8 kB / 394.7 MB, free: 13.14 MB / 302.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 2.193/2.567, allocations: 4 kB / 394.7 MB, free: 13.14 MB / 302.1 MB (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 & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=Modelica_4.0.0_Modelica.Electrical.Batteries.Examples.ShowImpedance_res.mat --tempDir=temp_Modelica_4_0_0_Modelica_Electrical_Batteries_Examples_ShowImpedance_fmu --startTime=0 --stopTime=1 --timeout=50 --tolerance=1e-06 Modelica_4_0_0_Modelica_Electrical_Batteries_Examples_ShowImpedance.fmu > Modelica_4.0.0_Modelica.Electrical.Batteries.Examples.ShowImpedance.pipe 2>&1) diffSimulationResults("Modelica_4.0.0_Modelica.Electrical.Batteries.Examples.ShowImpedance_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Electrical/Batteries/Examples/ShowImpedance/ShowImpedance.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_4.0.0_Modelica.Electrical.Batteries.Examples.ShowImpedance.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches