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.001602/0.001602, allocations: 117.7 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.001941/0.001941, allocations: 200.6 kB / 18.73 MB, free: 4.344 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.385/1.385, allocations: 227.4 MB / 246.9 MB, free: 10.48 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001182/0.001182, allocations: 67.89 kB / 358.2 MB, free: 13.45 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2703/0.2715, allocations: 50.54 MB / 408.7 MB, free: 1.539 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Batteries.Examples.ShowImpedance): time 0.003002/0.2746, allocations: 1.908 MB / 410.6 MB, free: 15.63 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.001675/0.2763, allocations: 1.257 MB / 411.9 MB, free: 14.36 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 8.628e-05/0.2764, allocations: 0 / 411.9 MB, free: 14.36 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.001095/0.2775, allocations: 0.5002 MB / 412.4 MB, free: 13.86 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0002088/0.2777, allocations: 191.4 kB / 412.6 MB, free: 13.67 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0004514/0.2782, allocations: 175.3 kB / 412.8 MB, free: 13.5 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.0003584/0.2785, allocations: 231.1 kB / 413 MB, free: 13.27 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001099/0.2787, allocations: 25.67 kB / 413 MB, free: 13.25 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002399/0.2789, allocations: 115.6 kB / 413.1 MB, free: 13.13 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002832/0.2792, allocations: 223.5 kB / 413.3 MB, free: 12.91 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 2.336e-05/0.2792, allocations: 4 kB / 413.3 MB, free: 12.91 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001554/0.2794, allocations: 63.97 kB / 413.4 MB, free: 12.85 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0002047/0.2796, allocations: 255.3 kB / 413.7 MB, free: 12.6 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 0.000231/0.2799, allocations: 285.9 kB / 413.9 MB, free: 12.32 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0008111/0.2807, allocations: 0.7705 MB / 414.7 MB, free: 11.54 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.26e-06/0.2807, allocations: 0 / 414.7 MB, free: 11.54 MB / 334.1 MB Notification: Performance of FrontEnd: time 2.003e-06/0.2807, allocations: 0 / 414.7 MB, free: 11.54 MB / 334.1 MB Notification: Performance of Transformations before backend: time 1.56e-05/0.2807, allocations: 0 / 414.7 MB, free: 11.54 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.002522/0.2832, allocations: 1.185 MB / 415.9 MB, free: 10.3 MB / 334.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.81e-05/0.2833, allocations: 8.031 kB / 415.9 MB, free: 10.3 MB / 334.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 3.525e-05/0.2833, allocations: 38.69 kB / 415.9 MB, free: 10.25 MB / 334.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001699/0.2835, allocations: 87.89 kB / 416 MB, free: 10.16 MB / 334.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.00108/0.2846, allocations: 0.7431 MB / 416.8 MB, free: 9.367 MB / 334.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.741e-05/0.2846, allocations: 8.359 kB / 416.8 MB, free: 9.359 MB / 334.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.222e-05/0.2846, allocations: 4.375 kB / 416.8 MB, free: 9.355 MB / 334.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003006/0.285, allocations: 113.7 kB / 416.9 MB, free: 9.238 MB / 334.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.082e-05/0.285, allocations: 11.88 kB / 416.9 MB, free: 9.227 MB / 334.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.682e-05/0.285, allocations: 8 kB / 416.9 MB, free: 9.219 MB / 334.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.366e-06/0.285, allocations: 0 / 416.9 MB, free: 9.219 MB / 334.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0003415/0.2854, allocations: 139.9 kB / 417 MB, free: 9.082 MB / 334.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001077/0.2864, allocations: 0.8104 MB / 417.9 MB, free: 8.223 MB / 334.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002106/0.2867, allocations: 82.52 kB / 417.9 MB, free: 8.133 MB / 334.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001693/0.2868, allocations: 76.89 kB / 418 MB, free: 8.055 MB / 334.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.789e-05/0.2869, allocations: 0 / 418 MB, free: 8.055 MB / 334.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.195e-05/0.2869, allocations: 38.5 kB / 418 MB, free: 8.008 MB / 334.1 MB Notification: Performance of pre-optimization done (n=3): time 8.62e-07/0.2869, allocations: 0 / 418 MB, free: 8.008 MB / 334.1 MB Notification: Performance of matching and sorting (n=3): time 0.0008114/0.2877, allocations: 328.4 kB / 418.4 MB, free: 7.68 MB / 334.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.84e-05/0.2878, allocations: 51.41 kB / 418.4 MB, free: 7.617 MB / 334.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001599/0.2894, allocations: 1.409 MB / 419.8 MB, free: 6.188 MB / 334.1 MB Notification: Performance of collectPreVariables (initialization): time 2.387e-05/0.2894, allocations: 25.7 kB / 419.9 MB, free: 6.156 MB / 334.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0003507/0.2898, allocations: 388.4 kB / 420.2 MB, free: 5.773 MB / 334.1 MB Notification: Performance of collectInitialBindings (initialization): time 2.776e-05/0.2898, allocations: 7.906 kB / 420.2 MB, free: 5.766 MB / 334.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 6.59e-05/0.2899, allocations: 13.72 kB / 420.3 MB, free: 5.746 MB / 334.1 MB Notification: Performance of setup shared object (initialization): time 0.0001265/0.29, allocations: 317.9 kB / 420.6 MB, free: 5.43 MB / 334.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001764/0.2902, allocations: 67.95 kB / 420.6 MB, free: 5.363 MB / 334.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001861/0.2904, allocations: 90.45 kB / 420.7 MB, free: 5.266 MB / 334.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003354/0.2907, allocations: 154.5 kB / 420.9 MB, free: 5.105 MB / 334.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.134e-06/0.2907, allocations: 0 / 420.9 MB, free: 5.105 MB / 334.1 MB Notification: Performance of matching and sorting (n=3) (initialization): time 0.0005823/0.2913, allocations: 268.4 kB / 421.1 MB, free: 4.836 MB / 334.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.652e-05/0.2914, allocations: 4 kB / 421.1 MB, free: 4.832 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.14e-06/0.2914, allocations: 4 kB / 421.1 MB, free: 4.828 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.464e-05/0.2914, allocations: 0 / 421.1 MB, free: 4.828 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001786/0.2916, allocations: 19.92 kB / 421.2 MB, free: 4.809 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.712e-06/0.2916, allocations: 4.094 kB / 421.2 MB, free: 4.805 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001806/0.2918, allocations: 7.984 kB / 421.2 MB, free: 4.797 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.132e-05/0.2918, allocations: 7.984 kB / 421.2 MB, free: 4.789 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.0003249/0.2921, allocations: 341.6 kB / 421.5 MB, free: 4.445 MB / 334.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001687/0.2923, allocations: 86.95 kB / 421.6 MB, free: 4.359 MB / 334.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0005967/0.2929, allocations: 281.6 kB / 421.9 MB, free: 4.07 MB / 334.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.654e-06/0.2929, allocations: 0 / 421.9 MB, free: 4.07 MB / 334.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.701e-06/0.2929, allocations: 3.938 kB / 421.9 MB, free: 4.066 MB / 334.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.088e-06/0.293, allocations: 0 / 421.9 MB, free: 4.066 MB / 334.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0005624/0.2935, allocations: 0.522 MB / 422.4 MB, free: 3.496 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.439e-06/0.2935, allocations: 0 / 422.4 MB, free: 3.496 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 8.294e-05/0.2936, allocations: 19.92 kB / 422.4 MB, free: 3.477 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.444e-06/0.2936, allocations: 0 / 422.4 MB, free: 3.477 MB / 334.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.055e-05/0.2936, allocations: 0 / 422.4 MB, free: 3.477 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.184e-06/0.2937, allocations: 4 kB / 422.4 MB, free: 3.473 MB / 334.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 9.72e-07/0.2937, allocations: 0 / 422.4 MB, free: 3.473 MB / 334.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.000504/0.2942, allocations: 310.9 kB / 422.7 MB, free: 3.152 MB / 334.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.000407/0.2946, allocations: 223.9 kB / 422.9 MB, free: 2.914 MB / 334.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 6.251e-05/0.2947, allocations: 8 kB / 423 MB, free: 2.906 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001754/0.2948, allocations: 11.98 kB / 423 MB, free: 2.895 MB / 334.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.574e-05/0.2949, allocations: 0 / 423 MB, free: 2.895 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.195e-06/0.2949, allocations: 0 / 423 MB, free: 2.895 MB / 334.1 MB Notification: Performance of sorting global known variables: time 0.001244/0.2962, allocations: 1.017 MB / 424 MB, free: 1.867 MB / 334.1 MB Notification: Performance of sort global known variables: time 1.21e-07/0.2962, allocations: 0 / 424 MB, free: 1.867 MB / 334.1 MB Notification: Performance of remove unused functions: time 0.0003421/0.2965, allocations: 67.92 kB / 424 MB, free: 1.801 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.00107/0.2976, allocations: 0.8636 MB / 424.9 MB, free: 0.9062 MB / 334.1 MB Notification: Performance of simCode: created initialization part: time 0.0003847/0.298, allocations: 127.8 kB / 425 MB, free: 0.7812 MB / 334.1 MB Notification: Performance of simCode: created event and clocks part: time 2.174e-06/0.298, allocations: 0 / 425 MB, free: 0.7812 MB / 334.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0001693/0.2982, allocations: 55.95 kB / 425.1 MB, free: 0.7266 MB / 334.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005835/0.2988, allocations: 112 kB / 425.2 MB, free: 0.6172 MB / 334.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01236/0.3111, allocations: 8.752 MB / 434 MB, free: 7.73 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005999/0.3118, allocations: 1.001 MB / 435 MB, free: 6.707 MB / 350.1 MB Notification: Performance of simCode: alias equations: time 0.0006063/0.3124, allocations: 474.1 kB / 435.4 MB, free: 6.238 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003062/0.3127, allocations: 243.4 kB / 435.7 MB, free: 6 MB / 350.1 MB Notification: Performance of SimCode: time 1.012e-06/0.3127, allocations: 0 / 435.7 MB, free: 6 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.04006/0.3528, allocations: 16.38 MB / 452 MB, free: 5.762 MB / 366.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 9.193/9.546, allocations: 16.47 kB / 452.1 MB, free: 5.75 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.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