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) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo", uses=false) 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"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.001307/0.001307, allocations: 109.2 kB / 17.21 MB, free: 6.266 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001584/0.001583, allocations: 209.7 kB / 18.14 MB, free: 5.344 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.412/1.412, allocations: 227.4 MB / 246.3 MB, free: 9.043 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001037/0.001037, allocations: 57.72 kB / 306.3 MB, free: 0.7266 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09627/0.09732, allocations: 50.54 MB / 356.9 MB, free: 14.18 MB / 302.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Batteries.Examples.ShowImpedance): time 0.003672/0.101, allocations: 1.963 MB / 358.8 MB, free: 12.21 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.001837/0.1029, allocations: 1.238 MB / 360.1 MB, free: 10.96 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001244/0.103, allocations: 0 / 360.1 MB, free: 10.96 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 0.001116/0.1042, allocations: 0.4949 MB / 360.6 MB, free: 10.46 MB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0002348/0.1045, allocations: 183.5 kB / 360.8 MB, free: 10.29 MB / 302.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.00043/0.1049, allocations: 171.4 kB / 360.9 MB, free: 10.12 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 0.0003298/0.1052, allocations: 223.2 kB / 361.1 MB, free: 9.898 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 9.08e-05/0.1053, allocations: 21.67 kB / 361.2 MB, free: 9.875 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002288/0.1056, allocations: 119.5 kB / 361.3 MB, free: 9.758 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002512/0.1058, allocations: 207.5 kB / 361.5 MB, free: 9.555 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 2.857e-05/0.1059, allocations: 4 kB / 361.5 MB, free: 9.551 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001487/0.106, allocations: 59.97 kB / 361.5 MB, free: 9.492 MB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001849/0.1062, allocations: 267.2 kB / 361.8 MB, free: 9.23 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0002203/0.1064, allocations: 277.8 kB / 362.1 MB, free: 8.957 MB / 302.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0006321/0.1071, allocations: 0.7395 MB / 362.8 MB, free: 8.215 MB / 302.1 MB Notification: Performance of FrontEnd - DAE generated: time 2.716e-06/0.1071, allocations: 0 / 362.8 MB, free: 8.215 MB / 302.1 MB Notification: Performance of FrontEnd: time 1.142e-06/0.1071, allocations: 0 / 362.8 MB, free: 8.215 MB / 302.1 MB Notification: Performance of Transformations before backend: time 1.305e-05/0.1071, allocations: 0 / 362.8 MB, free: 8.215 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.002523/0.1096, allocations: 1.181 MB / 364 MB, free: 6.98 MB / 302.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.904e-05/0.1097, allocations: 8.031 kB / 364 MB, free: 6.973 MB / 302.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 3.865e-05/0.1097, allocations: 34.75 kB / 364 MB, free: 6.93 MB / 302.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001854/0.1099, allocations: 95.8 kB / 364.1 MB, free: 6.836 MB / 302.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0009449/0.1109, allocations: 0.7469 MB / 364.9 MB, free: 6.035 MB / 302.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.352e-05/0.1109, allocations: 4.375 kB / 364.9 MB, free: 6.031 MB / 302.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.588e-05/0.1109, allocations: 384 / 364.9 MB, free: 6.031 MB / 302.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002793/0.1112, allocations: 125.6 kB / 365 MB, free: 5.902 MB / 302.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 6.512e-06/0.1112, allocations: 0 / 365 MB, free: 5.902 MB / 302.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.45e-05/0.1112, allocations: 0 / 365 MB, free: 5.902 MB / 302.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.048e-06/0.1113, allocations: 0 / 365 MB, free: 5.902 MB / 302.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0003669/0.1116, allocations: 147.9 kB / 365.2 MB, free: 5.758 MB / 302.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.000986/0.1126, allocations: 0.8142 MB / 366 MB, free: 4.895 MB / 302.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002002/0.1128, allocations: 86.45 kB / 366.1 MB, free: 4.801 MB / 302.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001762/0.113, allocations: 72.91 kB / 366.1 MB, free: 4.727 MB / 302.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.61e-05/0.113, allocations: 4 kB / 366.1 MB, free: 4.723 MB / 302.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.403e-05/0.1131, allocations: 42.55 kB / 366.2 MB, free: 4.672 MB / 302.1 MB Notification: Performance of pre-optimization done (n=3): time 1.272e-06/0.1131, allocations: 3.938 kB / 366.2 MB, free: 4.668 MB / 302.1 MB Notification: Performance of matching and sorting (n=3): time 0.0008002/0.1139, allocations: 324.5 kB / 366.5 MB, free: 4.344 MB / 302.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.288e-05/0.1139, allocations: 51.41 kB / 366.5 MB, free: 4.281 MB / 302.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001651/0.1156, allocations: 1.405 MB / 367.9 MB, free: 2.855 MB / 302.1 MB Notification: Performance of collectPreVariables (initialization): time 2.13e-05/0.1156, allocations: 29.7 kB / 368 MB, free: 2.82 MB / 302.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002879/0.1159, allocations: 380.4 kB / 368.3 MB, free: 2.445 MB / 302.1 MB Notification: Performance of collectInitialBindings (initialization): time 3.087e-05/0.116, allocations: 19.8 kB / 368.4 MB, free: 2.426 MB / 302.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 5.628e-05/0.116, allocations: 17.66 kB / 368.4 MB, free: 2.402 MB / 302.1 MB Notification: Performance of setup shared object (initialization): time 9.792e-05/0.1161, allocations: 313.9 kB / 368.7 MB, free: 2.09 MB / 302.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001783/0.1163, allocations: 67.94 kB / 368.8 MB, free: 2.023 MB / 302.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001909/0.1165, allocations: 86.52 kB / 368.8 MB, free: 1.93 MB / 302.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003416/0.1169, allocations: 154.5 kB / 369 MB, free: 1.77 MB / 302.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.194e-06/0.1169, allocations: 0 / 369 MB, free: 1.77 MB / 302.1 MB Notification: Performance of matching and sorting (n=3) (initialization): time 0.0005763/0.1174, allocations: 268.5 kB / 369.3 MB, free: 1.5 MB / 302.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.649e-05/0.1175, allocations: 7.938 kB / 369.3 MB, free: 1.492 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.129e-06/0.1175, allocations: 0 / 369.3 MB, free: 1.492 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.415e-05/0.1175, allocations: 4 kB / 369.3 MB, free: 1.488 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001915/0.1177, allocations: 11.98 kB / 369.3 MB, free: 1.477 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.963e-06/0.1177, allocations: 3.938 kB / 369.3 MB, free: 1.473 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002025/0.1179, allocations: 11.98 kB / 369.3 MB, free: 1.461 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.541e-05/0.1179, allocations: 0 / 369.3 MB, free: 1.461 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.0003206/0.1183, allocations: 350.8 kB / 369.6 MB, free: 1.109 MB / 302.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001735/0.1185, allocations: 90.86 kB / 369.7 MB, free: 1.02 MB / 302.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0005947/0.1191, allocations: 277.5 kB / 370 MB, free: 0.7383 MB / 302.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.899e-06/0.1191, allocations: 0 / 370 MB, free: 0.7383 MB / 302.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.144e-06/0.1191, allocations: 4 kB / 370 MB, free: 0.7344 MB / 302.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.355e-06/0.1191, allocations: 0 / 370 MB, free: 0.7344 MB / 302.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0005364/0.1196, allocations: 0.5143 MB / 370.5 MB, free: 176 kB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.717e-06/0.1196, allocations: 0 / 370.5 MB, free: 176 kB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 8.695e-05/0.1197, allocations: 11.98 kB / 370.5 MB, free: 164 kB / 302.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.785e-06/0.1197, allocations: 0 / 370.5 MB, free: 164 kB / 302.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.337e-05/0.1198, allocations: 3.984 kB / 370.5 MB, free: 160 kB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.673e-06/0.1198, allocations: 4 kB / 370.5 MB, free: 156 kB / 302.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.072e-06/0.1198, allocations: 0 / 370.5 MB, free: 156 kB / 302.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.156/0.2758, allocations: 312.4 kB / 370.8 MB, free: 20.39 MB / 302.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0003349/0.2762, allocations: 224.2 kB / 371.1 MB, free: 20.27 MB / 302.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 7.971e-05/0.2763, allocations: 2.781 kB / 371.1 MB, free: 20.27 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002324/0.2765, allocations: 7.109 kB / 371.1 MB, free: 20.27 MB / 302.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.419e-05/0.2766, allocations: 3.812 kB / 371.1 MB, free: 20.27 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.367e-05/0.2766, allocations: 5.203 kB / 371.1 MB, free: 20.27 MB / 302.1 MB Notification: Performance of sorting global known variables: time 0.001544/0.2782, allocations: 1.017 MB / 372.1 MB, free: 20.16 MB / 302.1 MB Notification: Performance of sort global known variables: time 3.7e-07/0.2782, allocations: 1.281 kB / 372.1 MB, free: 20.16 MB / 302.1 MB Notification: Performance of remove unused functions: time 0.000442/0.2786, allocations: 70.12 kB / 372.2 MB, free: 20.16 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.0008575/0.2795, allocations: 0.8573 MB / 373 MB, free: 19.46 MB / 302.1 MB Notification: Performance of simCode: created initialization part: time 0.0004087/0.2799, allocations: 129.6 kB / 373.1 MB, free: 19.46 MB / 302.1 MB Notification: Performance of simCode: created event and clocks part: time 2.735e-06/0.2799, allocations: 0 / 373.1 MB, free: 19.46 MB / 302.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0001753/0.2801, allocations: 52.05 kB / 373.2 MB, free: 19.46 MB / 302.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0006117/0.2807, allocations: 105.1 kB / 373.3 MB, free: 19.46 MB / 302.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01454/0.2953, allocations: 9.471 MB / 382.8 MB, free: 15.32 MB / 302.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005443/0.2959, allocations: 1.005 MB / 383.8 MB, free: 14.57 MB / 302.1 MB Notification: Performance of simCode: alias equations: time 0.0008733/0.2967, allocations: 464.6 kB / 384.2 MB, free: 14.54 MB / 302.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002736/0.297, allocations: 246.7 kB / 384.5 MB, free: 14.35 MB / 302.1 MB Notification: Performance of SimCode: time 8.42e-07/0.297, allocations: 4 kB / 384.5 MB, free: 14.35 MB / 302.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02657/0.3236, allocations: 15.42 MB / 399.9 MB, free: 4.055 MB / 302.1 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001232/0.3238, allocations: 213 kB / 400.1 MB, free: 3.793 MB / 302.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 1.906/2.23, allocations: 3.75 kB / 400.1 MB, free: 3.793 MB / 302.1 MB (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 & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=Modelica_trunk_Modelica.Electrical.Batteries.Examples.ShowImpedance_res.mat --tempDir=temp_Modelica_trunk_Modelica_Electrical_Batteries_Examples_ShowImpedance_fmu --startTime=0 --stopTime=1 --timeout=50 --tolerance=1e-06 Modelica_trunk_Modelica_Electrical_Batteries_Examples_ShowImpedance.fmu > Modelica_trunk_Modelica.Electrical.Batteries.Examples.ShowImpedance.pipe 2>&1) diffSimulationResults("Modelica_trunk_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_trunk_Modelica.Electrical.Batteries.Examples.ShowImpedance.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches