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.001059/0.001059, allocations: 100.9 kB / 16.5 MB, free: 6.652 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.001076/0.001076, allocations: 194.4 kB / 17.42 MB, free: 6.066 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.501/1.501, allocations: 222.9 MB / 241.1 MB, free: 13.63 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001024/0.001024, allocations: 44.28 kB / 300.1 MB, free: 5.969 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1053/0.1063, allocations: 49.45 MB / 349.5 MB, free: 4.523 MB / 286.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Batteries.Examples.ShowImpedance): time 0.005023/0.1114, allocations: 1.951 MB / 351.5 MB, free: 2.555 MB / 286.1 MB Notification: Performance of NFInst.instExpressions: time 0.002246/0.1137, allocations: 1.211 MB / 352.7 MB, free: 1.336 MB / 286.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001484/0.1138, allocations: 0 / 352.7 MB, free: 1.336 MB / 286.1 MB Notification: Performance of NFTyping.typeComponents: time 0.001193/0.1151, allocations: 0.5027 MB / 353.2 MB, free: 0.832 MB / 286.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0003048/0.1154, allocations: 187.5 kB / 353.4 MB, free: 0.6484 MB / 286.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0005095/0.1159, allocations: 163.5 kB / 353.5 MB, free: 500 kB / 286.1 MB Notification: Performance of NFFlatten.flatten: time 0.0004391/0.1164, allocations: 232.3 kB / 353.7 MB, free: 268 kB / 286.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001127/0.1165, allocations: 21.69 kB / 353.8 MB, free: 244 kB / 286.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002797/0.1168, allocations: 107.6 kB / 353.9 MB, free: 136 kB / 286.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0003614/0.1172, allocations: 211.6 kB / 354.1 MB, free: 15.92 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 4.158e-05/0.1172, allocations: 8 kB / 354.1 MB, free: 15.91 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001963/0.1174, allocations: 63.95 kB / 354.1 MB, free: 15.85 MB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0002089/0.1177, allocations: 259.3 kB / 354.4 MB, free: 15.6 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0002849/0.1179, allocations: 273.9 kB / 354.7 MB, free: 15.33 MB / 302.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0007669/0.1187, allocations: 0.7549 MB / 355.4 MB, free: 14.57 MB / 302.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.158e-06/0.1187, allocations: 0 / 355.4 MB, free: 14.57 MB / 302.1 MB Notification: Performance of FrontEnd: time 1.423e-06/0.1187, allocations: 0 / 355.4 MB, free: 14.57 MB / 302.1 MB Notification: Performance of Transformations before backend: time 2.129e-05/0.1188, allocations: 0 / 355.4 MB, free: 14.57 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.003011/0.1218, allocations: 1.185 MB / 356.6 MB, free: 13.34 MB / 302.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.542e-05/0.1218, allocations: 8.031 kB / 356.6 MB, free: 13.33 MB / 302.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 4.22e-05/0.1219, allocations: 30.75 kB / 356.6 MB, free: 13.29 MB / 302.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001945/0.1221, allocations: 87.91 kB / 356.7 MB, free: 13.2 MB / 302.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0009515/0.1231, allocations: 0.7547 MB / 357.5 MB, free: 12.39 MB / 302.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.233e-05/0.1231, allocations: 384 / 357.5 MB, free: 12.39 MB / 302.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.826e-05/0.1231, allocations: 384 / 357.5 MB, free: 12.39 MB / 302.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002837/0.1234, allocations: 125.7 kB / 357.6 MB, free: 12.27 MB / 302.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 8.466e-06/0.1234, allocations: 0 / 357.6 MB, free: 12.27 MB / 302.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.533e-05/0.1234, allocations: 0 / 357.6 MB, free: 12.27 MB / 302.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.769e-06/0.1234, allocations: 0 / 357.6 MB, free: 12.27 MB / 302.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0003471/0.1238, allocations: 143.9 kB / 357.7 MB, free: 12.12 MB / 302.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0009711/0.1248, allocations: 0.8181 MB / 358.6 MB, free: 11.26 MB / 302.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002135/0.125, allocations: 82.52 kB / 358.6 MB, free: 11.17 MB / 302.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001835/0.1252, allocations: 84.83 kB / 358.7 MB, free: 11.08 MB / 302.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.611e-05/0.1252, allocations: 3.938 kB / 358.7 MB, free: 11.08 MB / 302.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.752e-05/0.1252, allocations: 34.56 kB / 358.8 MB, free: 11.04 MB / 302.1 MB Notification: Performance of pre-optimization done (n=3): time 1.182e-06/0.1253, allocations: 4 kB / 358.8 MB, free: 11.03 MB / 302.1 MB Notification: Performance of matching and sorting (n=3): time 0.0007913/0.1261, allocations: 324.5 kB / 359.1 MB, free: 10.71 MB / 302.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.439e-05/0.1261, allocations: 51.41 kB / 359.1 MB, free: 10.64 MB / 302.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001714/0.1278, allocations: 1.405 MB / 360.5 MB, free: 9.219 MB / 302.1 MB Notification: Performance of collectPreVariables (initialization): time 1.89e-05/0.1278, allocations: 29.64 kB / 360.6 MB, free: 9.184 MB / 302.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0003006/0.1282, allocations: 392.4 kB / 361 MB, free: 8.797 MB / 302.1 MB Notification: Performance of collectInitialBindings (initialization): time 2.84e-05/0.1282, allocations: 7.812 kB / 361 MB, free: 8.789 MB / 302.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 6.33e-05/0.1283, allocations: 21.7 kB / 361 MB, free: 8.762 MB / 302.1 MB Notification: Performance of setup shared object (initialization): time 9.922e-05/0.1284, allocations: 313.9 kB / 361.3 MB, free: 8.449 MB / 302.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001807/0.1285, allocations: 71.88 kB / 361.4 MB, free: 8.379 MB / 302.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001834/0.1287, allocations: 86.52 kB / 361.4 MB, free: 8.285 MB / 302.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003484/0.1291, allocations: 154.5 kB / 361.6 MB, free: 8.125 MB / 302.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.845e-06/0.1291, allocations: 0 / 361.6 MB, free: 8.125 MB / 302.1 MB Notification: Performance of matching and sorting (n=3) (initialization): time 0.0005799/0.1297, allocations: 268.5 kB / 361.9 MB, free: 7.855 MB / 302.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.842e-05/0.1297, allocations: 4 kB / 361.9 MB, free: 7.852 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.621e-06/0.1297, allocations: 0 / 361.9 MB, free: 7.852 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.991e-05/0.1298, allocations: 0 / 361.9 MB, free: 7.852 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002078/0.13, allocations: 23.92 kB / 361.9 MB, free: 7.828 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.783e-06/0.13, allocations: 0 / 361.9 MB, free: 7.828 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002024/0.1302, allocations: 11.98 kB / 361.9 MB, free: 7.816 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.722e-05/0.1302, allocations: 0 / 361.9 MB, free: 7.816 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.0003478/0.1306, allocations: 345.6 kB / 362.2 MB, free: 7.469 MB / 302.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001808/0.1308, allocations: 90.91 kB / 362.3 MB, free: 7.379 MB / 302.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.000612/0.1314, allocations: 273.6 kB / 362.6 MB, free: 7.102 MB / 302.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.382e-06/0.1314, allocations: 4 kB / 362.6 MB, free: 7.098 MB / 302.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.889e-06/0.1314, allocations: 7.938 kB / 362.6 MB, free: 7.09 MB / 302.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.096e-06/0.1314, allocations: 0 / 362.6 MB, free: 7.09 MB / 302.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.000529/0.132, allocations: 0.5143 MB / 363.1 MB, free: 6.527 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.258e-06/0.132, allocations: 0 / 363.1 MB, free: 6.527 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 9.066e-05/0.1321, allocations: 11.98 kB / 363.1 MB, free: 6.516 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 3.246e-06/0.1321, allocations: 0 / 363.1 MB, free: 6.516 MB / 302.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.52e-05/0.1321, allocations: 3.984 kB / 363.1 MB, free: 6.512 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.714e-06/0.1321, allocations: 0 / 363.1 MB, free: 6.512 MB / 302.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.374e-06/0.1321, allocations: 0 / 363.1 MB, free: 6.512 MB / 302.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.000507/0.1326, allocations: 322.7 kB / 363.4 MB, free: 6.18 MB / 302.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0003058/0.1329, allocations: 228 kB / 363.7 MB, free: 5.938 MB / 302.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 7.625e-05/0.133, allocations: 0 / 363.7 MB, free: 5.938 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002098/0.1332, allocations: 7.984 kB / 363.7 MB, free: 5.93 MB / 302.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.827e-05/0.1333, allocations: 8 kB / 363.7 MB, free: 5.922 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.01e-05/0.1333, allocations: 0 / 363.7 MB, free: 5.922 MB / 302.1 MB Notification: Performance of sorting global known variables: time 0.001296/0.1346, allocations: 1.025 MB / 364.7 MB, free: 4.887 MB / 302.1 MB Notification: Performance of sort global known variables: time 2.71e-07/0.1346, allocations: 3.938 kB / 364.7 MB, free: 4.883 MB / 302.1 MB Notification: Performance of remove unused functions: time 0.0003563/0.135, allocations: 60 kB / 364.8 MB, free: 4.824 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.0008941/0.1359, allocations: 0.8674 MB / 365.6 MB, free: 3.926 MB / 302.1 MB Notification: Performance of simCode: created initialization part: time 0.0003968/0.1363, allocations: 131.8 kB / 365.8 MB, free: 3.797 MB / 302.1 MB Notification: Performance of simCode: created event and clocks part: time 4.258e-06/0.1363, allocations: 4 kB / 365.8 MB, free: 3.793 MB / 302.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0001732/0.1365, allocations: 51.95 kB / 365.8 MB, free: 3.742 MB / 302.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0006156/0.1371, allocations: 92.7 kB / 365.9 MB, free: 3.652 MB / 302.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.1797/0.3168, allocations: 9.463 MB / 375.4 MB, free: 23.29 MB / 302.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005501/0.3174, allocations: 0.9999 MB / 376.4 MB, free: 22.55 MB / 302.1 MB Notification: Performance of simCode: alias equations: time 0.0007665/0.3182, allocations: 473.5 kB / 376.8 MB, free: 22.53 MB / 302.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002795/0.3184, allocations: 246.2 kB / 377.1 MB, free: 22.34 MB / 302.1 MB Notification: Performance of SimCode: time 6.02e-07/0.3185, allocations: 0 / 377.1 MB, free: 22.34 MB / 302.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02808/0.3465, allocations: 15.47 MB / 392.5 MB, free: 14.79 MB / 302.1 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001545/0.3467, allocations: 205.8 kB / 392.7 MB, free: 14.54 MB / 302.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 2.086/2.433, allocations: 7.906 kB / 392.8 MB, free: 14.54 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