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.00136/0.00136, allocations: 118.8 kB / 17.78 MB, free: 5.281 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001283/0.001284, allocations: 197.2 kB / 18.73 MB, free: 4.336 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.395/1.395, allocations: 227.4 MB / 247 MB, free: 10.45 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001734/0.001734, allocations: 71.88 kB / 358.3 MB, free: 13.38 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2681/0.2698, allocations: 50.55 MB / 408.8 MB, free: 1.488 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Batteries.Examples.ShowImpedance): time 0.003274/0.2731, allocations: 1.904 MB / 410.7 MB, free: 15.58 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.00183/0.275, allocations: 1.253 MB / 412 MB, free: 14.32 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 7.471e-05/0.2751, allocations: 0 / 412 MB, free: 14.32 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.001008/0.2761, allocations: 0.5063 MB / 412.5 MB, free: 13.81 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0002077/0.2763, allocations: 187.4 kB / 412.7 MB, free: 13.62 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0004031/0.2767, allocations: 171.4 kB / 412.8 MB, free: 13.46 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.0003305/0.2771, allocations: 234.7 kB / 413.1 MB, free: 13.23 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 9.234e-05/0.2772, allocations: 25.67 kB / 413.1 MB, free: 13.2 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.000223/0.2774, allocations: 123.6 kB / 413.2 MB, free: 13.08 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002651/0.2777, allocations: 211.5 kB / 413.4 MB, free: 12.88 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 2.65e-05/0.2777, allocations: 4 kB / 413.4 MB, free: 12.87 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001517/0.2779, allocations: 67.95 kB / 413.5 MB, free: 12.8 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0002174/0.2781, allocations: 259.3 kB / 413.7 MB, free: 12.55 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 0.000243/0.2783, allocations: 277.9 kB / 414 MB, free: 12.28 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.000842/0.2792, allocations: 0.7884 MB / 414.8 MB, free: 11.49 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 2.755e-06/0.2792, allocations: 0 / 414.8 MB, free: 11.49 MB / 334.1 MB Notification: Performance of FrontEnd: time 8.32e-07/0.2792, allocations: 0 / 414.8 MB, free: 11.49 MB / 334.1 MB Notification: Performance of Transformations before backend: time 1.061e-05/0.2792, allocations: 0 / 414.8 MB, free: 11.49 MB / 334.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.00246/0.2817, allocations: 1.209 MB / 416 MB, free: 10.23 MB / 334.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.599e-05/0.2817, allocations: 8.031 kB / 416 MB, free: 10.22 MB / 334.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 3.919e-05/0.2818, allocations: 30.75 kB / 416 MB, free: 10.18 MB / 334.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.00019/0.282, allocations: 100.3 kB / 416.1 MB, free: 10.08 MB / 334.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001002/0.283, allocations: 0.7557 MB / 416.9 MB, free: 9.273 MB / 334.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.238e-05/0.283, allocations: 4.375 kB / 416.9 MB, free: 9.27 MB / 334.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.016e-05/0.283, allocations: 4.375 kB / 416.9 MB, free: 9.266 MB / 334.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003022/0.2833, allocations: 125.6 kB / 417 MB, free: 9.137 MB / 334.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.001e-05/0.2834, allocations: 0 / 417 MB, free: 9.137 MB / 334.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.374e-05/0.2834, allocations: 3.938 kB / 417 MB, free: 9.133 MB / 334.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.264e-06/0.2834, allocations: 4 kB / 417 MB, free: 9.129 MB / 334.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0003692/0.2838, allocations: 143.9 kB / 417.2 MB, free: 8.988 MB / 334.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001056/0.2848, allocations: 0.8143 MB / 418 MB, free: 8.125 MB / 334.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002228/0.2851, allocations: 86.45 kB / 418.1 MB, free: 8.031 MB / 334.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.000181/0.2853, allocations: 72.91 kB / 418.1 MB, free: 7.957 MB / 334.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.502e-05/0.2853, allocations: 0 / 418.1 MB, free: 7.957 MB / 334.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.829e-05/0.2853, allocations: 34.55 kB / 418.2 MB, free: 7.914 MB / 334.1 MB Notification: Performance of pre-optimization done (n=3): time 9.51e-07/0.2853, allocations: 4 kB / 418.2 MB, free: 7.91 MB / 334.1 MB Notification: Performance of matching and sorting (n=3): time 0.000833/0.2862, allocations: 329 kB / 418.5 MB, free: 7.582 MB / 334.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.025e-05/0.2862, allocations: 51.41 kB / 418.5 MB, free: 7.52 MB / 334.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001821/0.288, allocations: 1.405 MB / 420 MB, free: 6.094 MB / 334.1 MB Notification: Performance of collectPreVariables (initialization): time 2.384e-05/0.2881, allocations: 25.7 kB / 420 MB, free: 6.062 MB / 334.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.000385/0.2885, allocations: 384.4 kB / 420.4 MB, free: 5.684 MB / 334.1 MB Notification: Performance of collectInitialBindings (initialization): time 2.706e-05/0.2885, allocations: 11.94 kB / 420.4 MB, free: 5.672 MB / 334.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 5.966e-05/0.2886, allocations: 21.72 kB / 420.4 MB, free: 5.645 MB / 334.1 MB Notification: Performance of setup shared object (initialization): time 0.0001502/0.2887, allocations: 313.9 kB / 420.7 MB, free: 5.332 MB / 334.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001839/0.2889, allocations: 71.94 kB / 420.8 MB, free: 5.262 MB / 334.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001914/0.2891, allocations: 86.52 kB / 420.8 MB, free: 5.168 MB / 334.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003873/0.2895, allocations: 150.5 kB / 421 MB, free: 5.012 MB / 334.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.903e-06/0.2895, allocations: 0 / 421 MB, free: 5.012 MB / 334.1 MB Notification: Performance of matching and sorting (n=3) (initialization): time 0.0005946/0.2901, allocations: 272.9 kB / 421.3 MB, free: 4.738 MB / 334.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.844e-05/0.2902, allocations: 4.094 kB / 421.3 MB, free: 4.734 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.883e-06/0.2902, allocations: 11.94 kB / 421.3 MB, free: 4.723 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.305e-05/0.2902, allocations: 0 / 421.3 MB, free: 4.723 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001758/0.2904, allocations: 15.98 kB / 421.3 MB, free: 4.707 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.37e-06/0.2904, allocations: 4 kB / 421.3 MB, free: 4.703 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001789/0.2906, allocations: 7.984 kB / 421.3 MB, free: 4.695 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.771e-05/0.2906, allocations: 4 kB / 421.3 MB, free: 4.691 MB / 334.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.0004245/0.291, allocations: 341.6 kB / 421.6 MB, free: 4.348 MB / 334.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001797/0.2912, allocations: 91.42 kB / 421.7 MB, free: 4.258 MB / 334.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0006266/0.2918, allocations: 281.5 kB / 422 MB, free: 3.969 MB / 334.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.819e-06/0.2919, allocations: 0 / 422 MB, free: 3.969 MB / 334.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.821e-06/0.2919, allocations: 4 kB / 422 MB, free: 3.965 MB / 334.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.795e-06/0.2919, allocations: 3.938 kB / 422 MB, free: 3.961 MB / 334.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0005899/0.2925, allocations: 0.5143 MB / 422.5 MB, free: 3.398 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.296e-06/0.2925, allocations: 0 / 422.5 MB, free: 3.398 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 8.127e-05/0.2926, allocations: 11.98 kB / 422.5 MB, free: 3.387 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.735e-06/0.2926, allocations: 0 / 422.5 MB, free: 3.387 MB / 334.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.547e-05/0.2926, allocations: 7.984 kB / 422.5 MB, free: 3.379 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 6.031e-06/0.2926, allocations: 4 kB / 422.6 MB, free: 3.375 MB / 334.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.021e-06/0.2926, allocations: 0 / 422.6 MB, free: 3.375 MB / 334.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0005322/0.2932, allocations: 319.3 kB / 422.9 MB, free: 3.047 MB / 334.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0003621/0.2935, allocations: 232.4 kB / 423.1 MB, free: 2.801 MB / 334.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 6.537e-05/0.2936, allocations: 0 / 423.1 MB, free: 2.801 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001799/0.2938, allocations: 4 kB / 423.1 MB, free: 2.797 MB / 334.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.807e-05/0.2939, allocations: 11.98 kB / 423.1 MB, free: 2.785 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.002e-05/0.2939, allocations: 0 / 423.1 MB, free: 2.785 MB / 334.1 MB Notification: Performance of sorting global known variables: time 0.001338/0.2952, allocations: 1.021 MB / 424.1 MB, free: 1.754 MB / 334.1 MB Notification: Performance of sort global known variables: time 1.4e-07/0.2952, allocations: 4 kB / 424.1 MB, free: 1.75 MB / 334.1 MB Notification: Performance of remove unused functions: time 0.0003302/0.2956, allocations: 60 kB / 424.2 MB, free: 1.691 MB / 334.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.000973/0.2965, allocations: 0.868 MB / 425.1 MB, free: 0.793 MB / 334.1 MB Notification: Performance of simCode: created initialization part: time 0.0004097/0.297, allocations: 127.8 kB / 425.2 MB, free: 0.668 MB / 334.1 MB Notification: Performance of simCode: created event and clocks part: time 2.094e-06/0.297, allocations: 0 / 425.2 MB, free: 0.668 MB / 334.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0001672/0.2971, allocations: 51.95 kB / 425.2 MB, free: 0.6172 MB / 334.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005751/0.2977, allocations: 108.3 kB / 425.3 MB, free: 0.5078 MB / 334.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01236/0.3101, allocations: 8.783 MB / 434.1 MB, free: 7.586 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0008228/0.3109, allocations: 0.9969 MB / 435.1 MB, free: 6.566 MB / 350.1 MB Notification: Performance of simCode: alias equations: time 0.0006634/0.3116, allocations: 470.3 kB / 435.6 MB, free: 6.102 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003406/0.312, allocations: 255.3 kB / 435.8 MB, free: 5.852 MB / 350.1 MB Notification: Performance of SimCode: time 8.22e-07/0.312, allocations: 0 / 435.8 MB, free: 5.852 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.04394/0.3559, allocations: 16.11 MB / 451.9 MB, free: 5.883 MB / 366.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 9.281/9.637, allocations: 19.3 kB / 452 MB, free: 5.871 MB / 366.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.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) Reference file matches