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.001127/0.001127, allocations: 106.8 kB / 16.62 MB, free: 6.812 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.001131/0.001131, allocations: 189.8 kB / 17.55 MB, free: 5.953 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.435/1.435, allocations: 222.9 MB / 241.2 MB, free: 15.48 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001108/0.001108, allocations: 44.48 kB / 300.2 MB, free: 6.066 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1102/0.1113, allocations: 49.45 MB / 349.7 MB, free: 4.605 MB / 286.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Batteries.Examples.ShowImpedance): time 0.004247/0.1156, allocations: 1.95 MB / 351.6 MB, free: 2.641 MB / 286.1 MB Notification: Performance of NFInst.instExpressions: time 0.002078/0.1178, allocations: 1.199 MB / 352.8 MB, free: 1.434 MB / 286.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001821/0.118, allocations: 3.938 kB / 352.8 MB, free: 1.43 MB / 286.1 MB Notification: Performance of NFTyping.typeComponents: time 0.001354/0.1193, allocations: 0.4989 MB / 353.3 MB, free: 0.9297 MB / 286.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0002962/0.1197, allocations: 191.5 kB / 353.5 MB, free: 0.7422 MB / 286.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0004845/0.1202, allocations: 159.5 kB / 353.7 MB, free: 0.5859 MB / 286.1 MB Notification: Performance of NFFlatten.flatten: time 0.0003918/0.1206, allocations: 231.1 kB / 353.9 MB, free: 368 kB / 286.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001077/0.1207, allocations: 33.61 kB / 353.9 MB, free: 332 kB / 286.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002698/0.121, allocations: 123.5 kB / 354.1 MB, free: 208 kB / 286.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0003441/0.1213, allocations: 219.5 kB / 354.3 MB, free: 15.98 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 3.606e-05/0.1214, allocations: 8 kB / 354.3 MB, free: 15.98 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001686/0.1216, allocations: 63.89 kB / 354.3 MB, free: 15.92 MB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0002106/0.1218, allocations: 263.3 kB / 354.6 MB, free: 15.66 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0002494/0.122, allocations: 273.9 kB / 354.9 MB, free: 15.39 MB / 302.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0007813/0.1228, allocations: 0.7628 MB / 355.6 MB, free: 14.62 MB / 302.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.909e-06/0.1228, allocations: 4 kB / 355.6 MB, free: 14.62 MB / 302.1 MB Notification: Performance of FrontEnd: time 1.944e-06/0.1229, allocations: 0 / 355.6 MB, free: 14.62 MB / 302.1 MB Notification: Performance of Transformations before backend: time 2.533e-05/0.1229, allocations: 0 / 355.6 MB, free: 14.62 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.003094/0.126, allocations: 1.181 MB / 356.8 MB, free: 13.39 MB / 302.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.124e-05/0.126, allocations: 8.031 kB / 356.8 MB, free: 13.38 MB / 302.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 4.894e-05/0.1261, allocations: 42.67 kB / 356.9 MB, free: 13.33 MB / 302.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002365/0.1263, allocations: 83.91 kB / 356.9 MB, free: 13.25 MB / 302.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001159/0.1275, allocations: 0.743 MB / 357.7 MB, free: 12.45 MB / 302.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.114e-05/0.1275, allocations: 384 / 357.7 MB, free: 12.45 MB / 302.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.254e-05/0.1276, allocations: 4.375 kB / 357.7 MB, free: 12.45 MB / 302.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003014/0.1279, allocations: 125.7 kB / 357.8 MB, free: 12.32 MB / 302.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 7.935e-06/0.1279, allocations: 0 / 357.8 MB, free: 12.32 MB / 302.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.665e-05/0.1279, allocations: 0 / 357.8 MB, free: 12.32 MB / 302.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.659e-06/0.1279, allocations: 4 kB / 357.8 MB, free: 12.31 MB / 302.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.00035/0.1283, allocations: 143.9 kB / 358 MB, free: 12.17 MB / 302.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001177/0.1295, allocations: 0.8141 MB / 358.8 MB, free: 11.31 MB / 302.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002085/0.1297, allocations: 90.52 kB / 358.9 MB, free: 11.21 MB / 302.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001758/0.1299, allocations: 76.83 kB / 358.9 MB, free: 11.13 MB / 302.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.521e-05/0.1299, allocations: 0 / 358.9 MB, free: 11.13 MB / 302.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.503e-05/0.1299, allocations: 34.56 kB / 359 MB, free: 11.09 MB / 302.1 MB Notification: Performance of pre-optimization done (n=3): time 9.62e-07/0.1299, allocations: 0 / 359 MB, free: 11.09 MB / 302.1 MB Notification: Performance of matching and sorting (n=3): time 0.0008753/0.1308, allocations: 328.5 kB / 359.3 MB, free: 10.76 MB / 302.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.953e-05/0.1309, allocations: 51.41 kB / 359.3 MB, free: 10.7 MB / 302.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001814/0.1327, allocations: 1.409 MB / 360.8 MB, free: 9.27 MB / 302.1 MB Notification: Performance of collectPreVariables (initialization): time 2.22e-05/0.1327, allocations: 25.7 kB / 360.8 MB, free: 9.238 MB / 302.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0003161/0.133, allocations: 388.4 kB / 361.2 MB, free: 8.855 MB / 302.1 MB Notification: Performance of collectInitialBindings (initialization): time 2.908e-05/0.1331, allocations: 7.812 kB / 361.2 MB, free: 8.848 MB / 302.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 6.688e-05/0.1331, allocations: 25.7 kB / 361.2 MB, free: 8.816 MB / 302.1 MB Notification: Performance of setup shared object (initialization): time 0.0001106/0.1333, allocations: 313.9 kB / 361.5 MB, free: 8.504 MB / 302.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001781/0.1334, allocations: 67.94 kB / 361.6 MB, free: 8.438 MB / 302.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001832/0.1336, allocations: 86.55 kB / 361.6 MB, free: 8.344 MB / 302.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003343/0.134, allocations: 162.4 kB / 361.8 MB, free: 8.176 MB / 302.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.344e-06/0.134, allocations: 0 / 361.8 MB, free: 8.176 MB / 302.1 MB Notification: Performance of matching and sorting (n=3) (initialization): time 0.000621/0.1346, allocations: 264.5 kB / 362.1 MB, free: 7.91 MB / 302.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.499e-05/0.1347, allocations: 4 kB / 362.1 MB, free: 7.906 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.484e-06/0.1347, allocations: 3.938 kB / 362.1 MB, free: 7.902 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.603e-05/0.1347, allocations: 8.094 kB / 362.1 MB, free: 7.895 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002164/0.1349, allocations: 11.98 kB / 362.1 MB, free: 7.883 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.492e-06/0.1349, allocations: 0 / 362.1 MB, free: 7.883 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002282/0.1352, allocations: 11.98 kB / 362.1 MB, free: 7.871 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.039e-05/0.1352, allocations: 4 kB / 362.1 MB, free: 7.867 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.0003586/0.1356, allocations: 341.6 kB / 362.4 MB, free: 7.523 MB / 302.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001897/0.1358, allocations: 90.86 kB / 362.5 MB, free: 7.434 MB / 302.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0006222/0.1364, allocations: 273.3 kB / 362.8 MB, free: 7.156 MB / 302.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.104e-06/0.1364, allocations: 4 kB / 362.8 MB, free: 7.152 MB / 302.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.861e-06/0.1364, allocations: 0 / 362.8 MB, free: 7.152 MB / 302.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.511e-06/0.1364, allocations: 3.984 kB / 362.8 MB, free: 7.148 MB / 302.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0005645/0.137, allocations: 0.5143 MB / 363.3 MB, free: 6.586 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.111e-06/0.137, allocations: 4 kB / 363.3 MB, free: 6.582 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 8.867e-05/0.1371, allocations: 15.98 kB / 363.3 MB, free: 6.566 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.976e-06/0.1371, allocations: 0 / 363.3 MB, free: 6.566 MB / 302.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.18e-05/0.1371, allocations: 0 / 363.3 MB, free: 6.566 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 6.923e-06/0.1371, allocations: 4 kB / 363.3 MB, free: 6.562 MB / 302.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.142e-06/0.1372, allocations: 3.938 kB / 363.3 MB, free: 6.559 MB / 302.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0005169/0.1377, allocations: 322.8 kB / 363.7 MB, free: 6.227 MB / 302.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0003067/0.138, allocations: 228 kB / 363.9 MB, free: 5.984 MB / 302.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 8.041e-05/0.1381, allocations: 4 kB / 363.9 MB, free: 5.98 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002/0.1383, allocations: 4 kB / 363.9 MB, free: 5.977 MB / 302.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.045e-05/0.1383, allocations: 3.984 kB / 363.9 MB, free: 5.973 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.205e-05/0.1384, allocations: 4 kB / 363.9 MB, free: 5.969 MB / 302.1 MB Notification: Performance of sorting global known variables: time 0.001315/0.1397, allocations: 1.013 MB / 364.9 MB, free: 4.945 MB / 302.1 MB Notification: Performance of sort global known variables: time 1.5e-07/0.1397, allocations: 0 / 364.9 MB, free: 4.945 MB / 302.1 MB Notification: Performance of remove unused functions: time 0.0003554/0.1401, allocations: 72 kB / 365 MB, free: 4.875 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.000939/0.141, allocations: 0.8752 MB / 365.9 MB, free: 3.969 MB / 302.1 MB Notification: Performance of simCode: created initialization part: time 0.000384/0.1414, allocations: 119.9 kB / 366 MB, free: 3.852 MB / 302.1 MB Notification: Performance of simCode: created event and clocks part: time 2.535e-06/0.1414, allocations: 0 / 366 MB, free: 3.852 MB / 302.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0001801/0.1416, allocations: 59.89 kB / 366 MB, free: 3.793 MB / 302.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0006146/0.1422, allocations: 111.5 kB / 366.1 MB, free: 3.688 MB / 302.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.184/0.3262, allocations: 9.452 MB / 375.6 MB, free: 23.31 MB / 302.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005008/0.3267, allocations: 1.001 MB / 376.6 MB, free: 22.57 MB / 302.1 MB Notification: Performance of simCode: alias equations: time 0.000722/0.3275, allocations: 472.6 kB / 377.1 MB, free: 22.55 MB / 302.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002644/0.3277, allocations: 249.7 kB / 377.3 MB, free: 22.36 MB / 302.1 MB Notification: Performance of SimCode: time 8.52e-07/0.3277, allocations: 0 / 377.3 MB, free: 22.36 MB / 302.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02809/0.3558, allocations: 15.73 MB / 393 MB, free: 14.39 MB / 302.1 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0002149/0.3561, allocations: 209 kB / 393.2 MB, free: 14.13 MB / 302.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 2.179/2.535, allocations: 0 / 393.2 MB, free: 14.13 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