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.001221/0.001221, allocations: 111.5 kB / 17.06 MB, free: 6.09 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.001284/0.001284, allocations: 200 kB / 18 MB, free: 5.168 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.381/1.381, allocations: 222.9 MB / 241.7 MB, free: 15.08 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0009826/0.0009827, allocations: 47.92 kB / 350.8 MB, free: 3.75 MB / 286.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2675/0.2685, allocations: 49.44 MB / 400.2 MB, free: 8.406 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Batteries.Examples.ShowImpedance): time 0.003592/0.2721, allocations: 1.893 MB / 402.1 MB, free: 6.918 MB / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.002104/0.2743, allocations: 1.238 MB / 403.4 MB, free: 5.672 MB / 318.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001617/0.2744, allocations: 4 kB / 403.4 MB, free: 5.668 MB / 318.1 MB Notification: Performance of NFTyping.typeComponents: time 0.001111/0.2756, allocations: 0.4924 MB / 403.8 MB, free: 5.176 MB / 318.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0002576/0.2759, allocations: 191.4 kB / 404 MB, free: 4.988 MB / 318.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0004744/0.2764, allocations: 175.3 kB / 404.2 MB, free: 4.816 MB / 318.1 MB Notification: Performance of NFFlatten.flatten: time 0.000382/0.2768, allocations: 235.1 kB / 404.4 MB, free: 4.586 MB / 318.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.000103/0.2769, allocations: 33.67 kB / 404.5 MB, free: 4.555 MB / 318.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002336/0.2771, allocations: 115.6 kB / 404.6 MB, free: 4.441 MB / 318.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002899/0.2774, allocations: 211.4 kB / 404.8 MB, free: 4.234 MB / 318.1 MB Notification: Performance of NFPackage.collectConstants: time 3.192e-05/0.2775, allocations: 8 kB / 404.8 MB, free: 4.227 MB / 318.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001779/0.2776, allocations: 67.95 kB / 404.9 MB, free: 4.16 MB / 318.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001989/0.2779, allocations: 263.2 kB / 405.1 MB, free: 3.902 MB / 318.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0002202/0.2781, allocations: 281.9 kB / 405.4 MB, free: 3.625 MB / 318.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0007538/0.2788, allocations: 0.7705 MB / 406.2 MB, free: 2.852 MB / 318.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.657e-06/0.2789, allocations: 4 kB / 406.2 MB, free: 2.848 MB / 318.1 MB Notification: Performance of FrontEnd: time 1.233e-06/0.2789, allocations: 0 / 406.2 MB, free: 2.848 MB / 318.1 MB Notification: Performance of Transformations before backend: time 1.953e-05/0.2789, allocations: 0 / 406.2 MB, free: 2.848 MB / 318.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.002757/0.2817, allocations: 1.181 MB / 407.3 MB, free: 1.613 MB / 318.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.295e-05/0.2817, allocations: 8.031 kB / 407.4 MB, free: 1.605 MB / 318.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 4.548e-05/0.2818, allocations: 38.75 kB / 407.4 MB, free: 1.559 MB / 318.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002088/0.282, allocations: 91.8 kB / 407.5 MB, free: 1.469 MB / 318.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001136/0.2831, allocations: 0.7431 MB / 408.2 MB, free: 0.6719 MB / 318.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.005e-05/0.2831, allocations: 384 / 408.2 MB, free: 0.6719 MB / 318.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.215e-05/0.2832, allocations: 8.375 kB / 408.2 MB, free: 0.6641 MB / 318.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002718/0.2835, allocations: 117.7 kB / 408.4 MB, free: 0.543 MB / 318.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 7.314e-06/0.2835, allocations: 0 / 408.4 MB, free: 0.543 MB / 318.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.4e-05/0.2835, allocations: 4 kB / 408.4 MB, free: 0.5391 MB / 318.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.649e-06/0.2835, allocations: 0 / 408.4 MB, free: 0.5391 MB / 318.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0003446/0.2839, allocations: 147.8 kB / 408.5 MB, free: 404 kB / 318.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001147/0.285, allocations: 0.8181 MB / 409.3 MB, free: 15.53 MB / 334.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0001992/0.2852, allocations: 86.52 kB / 409.4 MB, free: 15.43 MB / 334.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.00017/0.2854, allocations: 68.91 kB / 409.5 MB, free: 15.36 MB / 334.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.225e-05/0.2854, allocations: 0 / 409.5 MB, free: 15.36 MB / 334.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.34e-05/0.2855, allocations: 34.56 kB / 409.5 MB, free: 15.32 MB / 334.1 MB Notification: Performance of pre-optimization done (n=3): time 9.92e-07/0.2855, allocations: 0 / 409.5 MB, free: 15.32 MB / 334.1 MB Notification: Performance of matching and sorting (n=3): time 0.0008137/0.2863, allocations: 340.3 kB / 409.8 MB, free: 14.98 MB / 334.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.244e-05/0.2863, allocations: 51.41 kB / 409.9 MB, free: 14.92 MB / 334.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.00163/0.288, allocations: 1.405 MB / 411.3 MB, free: 13.49 MB / 334.1 MB Notification: Performance of collectPreVariables (initialization): time 1.843e-05/0.288, allocations: 25.7 kB / 411.3 MB, free: 13.46 MB / 334.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002867/0.2883, allocations: 392.4 kB / 411.7 MB, free: 13.07 MB / 334.1 MB Notification: Performance of collectInitialBindings (initialization): time 2.504e-05/0.2883, allocations: 3.906 kB / 411.7 MB, free: 13.07 MB / 334.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 7.43e-05/0.2884, allocations: 25.72 kB / 411.7 MB, free: 13.04 MB / 334.1 MB Notification: Performance of setup shared object (initialization): time 9.296e-05/0.2885, allocations: 313.9 kB / 412 MB, free: 12.72 MB / 334.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001709/0.2887, allocations: 63.95 kB / 412.1 MB, free: 12.66 MB / 334.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.000188/0.2889, allocations: 86.52 kB / 412.2 MB, free: 12.57 MB / 334.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003323/0.2892, allocations: 162.4 kB / 412.3 MB, free: 12.4 MB / 334.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.014e-06/0.2892, allocations: 0 / 412.3 MB, free: 12.4 MB / 334.1 MB Notification: Performance of matching and sorting (n=3) (initialization): time 0.0005935/0.2898, allocations: 264.4 kB / 412.6 MB, free: 12.13 MB / 334.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.05e-05/0.2899, allocations: 4 kB / 412.6 MB, free: 12.13 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.991e-06/0.2899, allocations: 4.094 kB / 412.6 MB, free: 12.12 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.693e-05/0.2899, allocations: 7.984 kB / 412.6 MB, free: 12.12 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001829/0.2901, allocations: 15.98 kB / 412.6 MB, free: 12.1 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 8.947e-06/0.2901, allocations: 4 kB / 412.6 MB, free: 12.1 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002131/0.2903, allocations: 11.92 kB / 412.6 MB, free: 12.09 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.772e-05/0.2903, allocations: 7.938 kB / 412.7 MB, free: 12.08 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.0003136/0.2907, allocations: 337.6 kB / 413 MB, free: 11.74 MB / 334.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001884/0.2909, allocations: 86.95 kB / 413.1 MB, free: 11.65 MB / 334.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0005982/0.2915, allocations: 273.3 kB / 413.3 MB, free: 11.37 MB / 334.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.99e-06/0.2915, allocations: 0 / 413.3 MB, free: 11.37 MB / 334.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.928e-06/0.2915, allocations: 0 / 413.3 MB, free: 11.37 MB / 334.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.416e-06/0.2915, allocations: 4.328 kB / 413.3 MB, free: 11.37 MB / 334.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0005125/0.292, allocations: 0.5182 MB / 413.9 MB, free: 10.8 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.857e-06/0.292, allocations: 0 / 413.9 MB, free: 10.8 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 8.941e-05/0.2921, allocations: 11.98 kB / 413.9 MB, free: 10.79 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 6.763e-06/0.2921, allocations: 11.92 kB / 413.9 MB, free: 10.78 MB / 334.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.11e-05/0.2922, allocations: 0 / 413.9 MB, free: 10.78 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.196e-06/0.2922, allocations: 7.938 kB / 413.9 MB, free: 10.77 MB / 334.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.183e-06/0.2922, allocations: 0 / 413.9 MB, free: 10.77 MB / 334.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0005173/0.2927, allocations: 322.8 kB / 414.2 MB, free: 10.44 MB / 334.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0003918/0.2931, allocations: 219.9 kB / 414.4 MB, free: 10.2 MB / 334.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 6.858e-05/0.2932, allocations: 4 kB / 414.4 MB, free: 10.2 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001972/0.2934, allocations: 11.98 kB / 414.4 MB, free: 10.19 MB / 334.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.518e-05/0.2934, allocations: 3.984 kB / 414.4 MB, free: 10.18 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.038e-05/0.2934, allocations: 4 kB / 414.4 MB, free: 10.18 MB / 334.1 MB Notification: Performance of sorting global known variables: time 0.001198/0.2946, allocations: 1.013 MB / 415.5 MB, free: 9.156 MB / 334.1 MB Notification: Performance of sort global known variables: time 2.1e-07/0.2947, allocations: 4 kB / 415.5 MB, free: 9.152 MB / 334.1 MB Notification: Performance of remove unused functions: time 0.0003497/0.295, allocations: 63.94 kB / 415.5 MB, free: 9.09 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.0008872/0.2959, allocations: 0.8675 MB / 416.4 MB, free: 8.191 MB / 334.1 MB Notification: Performance of simCode: created initialization part: time 0.0003862/0.2963, allocations: 123.9 kB / 416.5 MB, free: 8.07 MB / 334.1 MB Notification: Performance of simCode: created event and clocks part: time 2.074e-06/0.2963, allocations: 0 / 416.5 MB, free: 8.07 MB / 334.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0001791/0.2965, allocations: 55.89 kB / 416.6 MB, free: 8.016 MB / 334.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005767/0.2971, allocations: 104.4 kB / 416.7 MB, free: 7.91 MB / 334.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01091/0.308, allocations: 8.76 MB / 425.4 MB, free: 15.01 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005995/0.3087, allocations: 1.005 MB / 426.4 MB, free: 13.98 MB / 350.1 MB Notification: Performance of simCode: alias equations: time 0.0006146/0.3093, allocations: 474.3 kB / 426.9 MB, free: 13.52 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003032/0.3096, allocations: 247.3 kB / 427.1 MB, free: 13.27 MB / 350.1 MB Notification: Performance of SimCode: time 8.42e-07/0.3096, allocations: 0 / 427.1 MB, free: 13.27 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.5041/0.8137, allocations: 16.42 MB / 443.6 MB, free: 13 MB / 366.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 13.76/14.57, allocations: 4.641 kB / 443.6 MB, free: 13 MB / 366.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