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.0008063/0.0008064, allocations: 96.33 kB / 17.35 MB, free: 6.367 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.0009742/0.0009742, allocations: 211.2 kB / 18.29 MB, free: 5.496 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.189/1.189, allocations: 227.7 MB / 246.8 MB, free: 11.27 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0001873/0.0001874, allocations: 8 kB / 307.8 MB, free: 0.7305 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.07665/0.07685, allocations: 51.53 MB / 359.4 MB, free: 13.2 MB / 302.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Batteries.Examples.ShowImpedance): time 0.001828/0.0787, allocations: 1.612 MB / 361 MB, free: 11.57 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.001488/0.0802, allocations: 1.207 MB / 362.2 MB, free: 10.36 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 7.933e-05/0.08029, allocations: 4 kB / 362.2 MB, free: 10.36 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0008805/0.08118, allocations: 0.495 MB / 362.7 MB, free: 9.859 MB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001987/0.08139, allocations: 187.5 kB / 362.9 MB, free: 9.676 MB / 302.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003574/0.08176, allocations: 167.5 kB / 363 MB, free: 9.512 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 0.0002632/0.08203, allocations: 234.6 kB / 363.3 MB, free: 9.285 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 7.004e-05/0.08211, allocations: 17.69 kB / 363.3 MB, free: 9.266 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002085/0.08233, allocations: 111.6 kB / 363.4 MB, free: 9.156 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002249/0.08256, allocations: 211.4 kB / 363.6 MB, free: 8.949 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 2.163e-05/0.08259, allocations: 8 kB / 363.6 MB, free: 8.941 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001364/0.08274, allocations: 63.95 kB / 363.7 MB, free: 8.879 MB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001768/0.08292, allocations: 259.3 kB / 363.9 MB, free: 8.625 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 0.000205/0.08313, allocations: 299.6 kB / 364.2 MB, free: 8.324 MB / 302.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0005925/0.08373, allocations: 0.7354 MB / 364.9 MB, free: 7.586 MB / 302.1 MB Notification: Performance of FrontEnd - DAE generated: time 2.325e-06/0.08374, allocations: 0 / 364.9 MB, free: 7.586 MB / 302.1 MB Notification: Performance of FrontEnd: time 9.02e-07/0.08375, allocations: 0 / 364.9 MB, free: 7.586 MB / 302.1 MB Notification: Performance of Transformations before backend: time 1.179e-05/0.08376, allocations: 0 / 364.9 MB, free: 7.586 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.002123/0.08589, allocations: 1.083 MB / 366 MB, free: 6.453 MB / 302.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.415e-05/0.08593, allocations: 8.031 kB / 366 MB, free: 6.445 MB / 302.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 4.177e-05/0.08598, allocations: 38.69 kB / 366.1 MB, free: 6.398 MB / 302.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001668/0.08615, allocations: 87.91 kB / 366.2 MB, free: 6.312 MB / 302.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0008648/0.08702, allocations: 0.7469 MB / 366.9 MB, free: 5.512 MB / 302.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.02e-05/0.08704, allocations: 384 / 366.9 MB, free: 5.512 MB / 302.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.892e-05/0.08707, allocations: 4.375 kB / 366.9 MB, free: 5.508 MB / 302.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002647/0.08734, allocations: 125.7 kB / 367 MB, free: 5.379 MB / 302.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 5.831e-06/0.08735, allocations: 4 kB / 367 MB, free: 5.375 MB / 302.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.354e-05/0.08737, allocations: 0 / 367 MB, free: 5.375 MB / 302.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.25e-06/0.08738, allocations: 0 / 367 MB, free: 5.375 MB / 302.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0003407/0.08773, allocations: 151.8 kB / 367.2 MB, free: 5.227 MB / 302.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0008901/0.08862, allocations: 0.8181 MB / 368 MB, free: 4.359 MB / 302.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002/0.08883, allocations: 86.53 kB / 368.1 MB, free: 4.266 MB / 302.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001697/0.08901, allocations: 80.89 kB / 368.2 MB, free: 4.184 MB / 302.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.233e-05/0.08904, allocations: 4 kB / 368.2 MB, free: 4.18 MB / 302.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.869e-05/0.08906, allocations: 34.56 kB / 368.2 MB, free: 4.137 MB / 302.1 MB Notification: Performance of pre-optimization done (n=3): time 1.112e-06/0.08906, allocations: 0 / 368.2 MB, free: 4.137 MB / 302.1 MB Notification: Performance of matching and sorting (n=3): time 0.0007714/0.08984, allocations: 356.3 kB / 368.5 MB, free: 3.781 MB / 302.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 2.77e-05/0.08988, allocations: 51.41 kB / 368.6 MB, free: 3.719 MB / 302.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.00153/0.09141, allocations: 1.397 MB / 370 MB, free: 2.301 MB / 302.1 MB Notification: Performance of collectPreVariables (initialization): time 2.547e-05/0.09145, allocations: 29.69 kB / 370 MB, free: 2.266 MB / 302.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002837/0.09174, allocations: 384.4 kB / 370.4 MB, free: 1.887 MB / 302.1 MB Notification: Performance of collectInitialBindings (initialization): time 2.222e-05/0.09177, allocations: 7.906 kB / 370.4 MB, free: 1.879 MB / 302.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.943e-05/0.0918, allocations: 13.72 kB / 370.4 MB, free: 1.859 MB / 302.1 MB Notification: Performance of setup shared object (initialization): time 9.319e-05/0.0919, allocations: 317.9 kB / 370.7 MB, free: 1.543 MB / 302.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001652/0.09207, allocations: 67.95 kB / 370.8 MB, free: 1.477 MB / 302.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.00017/0.09225, allocations: 94.45 kB / 370.9 MB, free: 1.375 MB / 302.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003359/0.09259, allocations: 170.4 kB / 371.1 MB, free: 1.199 MB / 302.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.984e-06/0.0926, allocations: 0 / 371.1 MB, free: 1.199 MB / 302.1 MB Notification: Performance of matching and sorting (n=3) (initialization): time 0.0005461/0.09315, allocations: 284.4 kB / 371.3 MB, free: 0.9141 MB / 302.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.219e-05/0.09318, allocations: 4 kB / 371.3 MB, free: 0.9102 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.26e-06/0.09319, allocations: 4 kB / 371.3 MB, free: 0.9062 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 9.678e-06/0.0932, allocations: 0 / 371.3 MB, free: 0.9062 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001713/0.09338, allocations: 20.08 kB / 371.4 MB, free: 0.8867 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 4.078e-06/0.09339, allocations: 0 / 371.4 MB, free: 0.8867 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001815/0.09357, allocations: 11.98 kB / 371.4 MB, free: 0.875 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.547e-05/0.0936, allocations: 8 kB / 371.4 MB, free: 0.8672 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.0002982/0.0939, allocations: 346.6 kB / 371.7 MB, free: 0.5195 MB / 302.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001651/0.09407, allocations: 86.95 kB / 371.8 MB, free: 444 kB / 302.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0005831/0.09466, allocations: 289.3 kB / 372.1 MB, free: 144 kB / 302.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.447e-06/0.09468, allocations: 0 / 372.1 MB, free: 144 kB / 302.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.576e-06/0.09468, allocations: 336 / 372.1 MB, free: 144 kB / 302.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.235e-06/0.09469, allocations: 0 / 372.1 MB, free: 144 kB / 302.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.1232/0.2179, allocations: 0.512 MB / 372.6 MB, free: 19.29 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.38e-06/0.2179, allocations: 4.484 kB / 372.6 MB, free: 19.29 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001145/0.218, allocations: 14.56 kB / 372.6 MB, free: 19.29 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 4.699e-06/0.218, allocations: 2.672 kB / 372.6 MB, free: 19.29 MB / 302.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.062e-05/0.2181, allocations: 1.422 kB / 372.6 MB, free: 19.29 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.374e-06/0.2181, allocations: 0.9062 kB / 372.6 MB, free: 19.29 MB / 302.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.453e-06/0.2181, allocations: 1.125 kB / 372.6 MB, free: 19.29 MB / 302.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0004901/0.2186, allocations: 332.6 kB / 372.9 MB, free: 19.16 MB / 302.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002112/0.2188, allocations: 225.6 kB / 373.2 MB, free: 19.04 MB / 302.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.953e-05/0.2189, allocations: 1.188 kB / 373.2 MB, free: 19.04 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001891/0.2191, allocations: 9.422 kB / 373.2 MB, free: 19.04 MB / 302.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.607e-05/0.2191, allocations: 9.406 kB / 373.2 MB, free: 19.04 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 9.668e-06/0.2191, allocations: 1.703 kB / 373.2 MB, free: 19.04 MB / 302.1 MB Notification: Performance of sorting global known variables: time 0.001106/0.2202, allocations: 1.018 MB / 374.2 MB, free: 18.93 MB / 302.1 MB Notification: Performance of sort global known variables: time 1.2e-07/0.2202, allocations: 0 / 374.2 MB, free: 18.93 MB / 302.1 MB Notification: Performance of remove unused functions: time 0.0003161/0.2205, allocations: 60.53 kB / 374.3 MB, free: 18.93 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.0006274/0.2212, allocations: 0.8759 MB / 375.1 MB, free: 18.23 MB / 302.1 MB Notification: Performance of simCode: created initialization part: time 0.0003559/0.2215, allocations: 127.7 kB / 375.3 MB, free: 18.23 MB / 302.1 MB Notification: Performance of simCode: created event and clocks part: time 2.154e-06/0.2216, allocations: 3.938 kB / 375.3 MB, free: 18.23 MB / 302.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0001662/0.2217, allocations: 62.48 kB / 375.3 MB, free: 18.23 MB / 302.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005772/0.2223, allocations: 101.1 kB / 375.4 MB, free: 18.23 MB / 302.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01099/0.2333, allocations: 9.519 MB / 385 MB, free: 14.3 MB / 302.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004312/0.2338, allocations: 0.9998 MB / 386 MB, free: 13.55 MB / 302.1 MB Notification: Performance of simCode: alias equations: time 0.0006289/0.2344, allocations: 474.6 kB / 386.4 MB, free: 13.52 MB / 302.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002406/0.2346, allocations: 245.2 kB / 386.7 MB, free: 13.33 MB / 302.1 MB Notification: Performance of SimCode: time 4.51e-07/0.2347, allocations: 0 / 386.7 MB, free: 13.33 MB / 302.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.0217/0.2564, allocations: 15.21 MB / 401.9 MB, free: 2.465 MB / 302.1 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001414/0.2565, allocations: 213 kB / 402.1 MB, free: 2.203 MB / 302.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 1.791/2.047, allocations: 0 / 402.1 MB, free: 2.203 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