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.001464/0.001464, allocations: 103.9 kB / 17.63 MB, free: 5.523 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.002025/0.002025, allocations: 206.4 kB / 18.58 MB, free: 4.582 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.414/1.414, allocations: 227.4 MB / 246.8 MB, free: 10.61 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001063/0.001063, allocations: 65.64 kB / 307.1 MB, free: 0.5234 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.07324/0.07431, allocations: 50.53 MB / 357.6 MB, free: 13.99 MB / 302.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Batteries.Examples.ShowImpedance): time 0.002852/0.07719, allocations: 1.894 MB / 359.5 MB, free: 12.09 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.001601/0.07882, allocations: 1.253 MB / 360.7 MB, free: 10.82 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 9.26e-05/0.07893, allocations: 4 kB / 360.7 MB, free: 10.82 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0008895/0.07984, allocations: 0.5027 MB / 361.2 MB, free: 10.32 MB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0002003/0.08005, allocations: 203.4 kB / 361.4 MB, free: 10.12 MB / 302.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003688/0.08043, allocations: 167.3 kB / 361.6 MB, free: 9.953 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 0.0002591/0.0807, allocations: 231.1 kB / 361.8 MB, free: 9.727 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 7.646e-05/0.08079, allocations: 21.69 kB / 361.8 MB, free: 9.703 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002017/0.08099, allocations: 123.6 kB / 362 MB, free: 9.582 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002283/0.08123, allocations: 211.5 kB / 362.2 MB, free: 9.375 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 2.6e-05/0.08127, allocations: 11.94 kB / 362.2 MB, free: 9.363 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001289/0.0814, allocations: 59.97 kB / 362.2 MB, free: 9.305 MB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001663/0.08157, allocations: 263.2 kB / 362.5 MB, free: 9.047 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0002046/0.08179, allocations: 277.9 kB / 362.8 MB, free: 8.773 MB / 302.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0005728/0.08236, allocations: 0.755 MB / 363.5 MB, free: 8.016 MB / 302.1 MB Notification: Performance of FrontEnd - DAE generated: time 2.725e-06/0.08238, allocations: 0 / 363.5 MB, free: 8.016 MB / 302.1 MB Notification: Performance of FrontEnd: time 1.353e-06/0.08239, allocations: 4 kB / 363.5 MB, free: 8.012 MB / 302.1 MB Notification: Performance of Transformations before backend: time 1.286e-05/0.0824, allocations: 0 / 363.5 MB, free: 8.012 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.002269/0.08468, allocations: 1.177 MB / 364.7 MB, free: 6.781 MB / 302.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.183e-05/0.08472, allocations: 8.031 kB / 364.7 MB, free: 6.773 MB / 302.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 3.832e-05/0.08476, allocations: 42.75 kB / 364.8 MB, free: 6.723 MB / 302.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001721/0.08494, allocations: 95.73 kB / 364.8 MB, free: 6.629 MB / 302.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0008577/0.0858, allocations: 0.7392 MB / 365.6 MB, free: 5.836 MB / 302.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.356e-05/0.08583, allocations: 4.375 kB / 365.6 MB, free: 5.832 MB / 302.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.599e-05/0.08585, allocations: 4.375 kB / 365.6 MB, free: 5.828 MB / 302.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002553/0.08611, allocations: 117.7 kB / 365.7 MB, free: 5.707 MB / 302.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 6.622e-06/0.08612, allocations: 3.938 kB / 365.7 MB, free: 5.703 MB / 302.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.293e-05/0.08614, allocations: 0 / 365.7 MB, free: 5.703 MB / 302.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.709e-06/0.08615, allocations: 7.984 kB / 365.7 MB, free: 5.695 MB / 302.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0003145/0.08647, allocations: 147.8 kB / 365.9 MB, free: 5.551 MB / 302.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.000862/0.08734, allocations: 0.8142 MB / 366.7 MB, free: 4.688 MB / 302.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0001836/0.08754, allocations: 82.52 kB / 366.8 MB, free: 4.598 MB / 302.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001626/0.08771, allocations: 76.89 kB / 366.8 MB, free: 4.52 MB / 302.1 MB Notification: Performance of preOpt evalFunc (simulation): time 9.929e-06/0.08773, allocations: 0 / 366.8 MB, free: 4.52 MB / 302.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.786e-05/0.08775, allocations: 30.56 kB / 366.9 MB, free: 4.48 MB / 302.1 MB Notification: Performance of pre-optimization done (n=3): time 2.014e-06/0.08776, allocations: 4 kB / 366.9 MB, free: 4.477 MB / 302.1 MB Notification: Performance of matching and sorting (n=3): time 0.000712/0.08847, allocations: 328.4 kB / 367.2 MB, free: 4.148 MB / 302.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 2.932e-05/0.08851, allocations: 51.41 kB / 367.2 MB, free: 4.086 MB / 302.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001416/0.08993, allocations: 1.409 MB / 368.6 MB, free: 2.656 MB / 302.1 MB Notification: Performance of collectPreVariables (initialization): time 1.594e-05/0.08996, allocations: 25.7 kB / 368.7 MB, free: 2.625 MB / 302.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002688/0.09023, allocations: 380.4 kB / 369 MB, free: 2.25 MB / 302.1 MB Notification: Performance of collectInitialBindings (initialization): time 2.345e-05/0.09026, allocations: 15.81 kB / 369.1 MB, free: 2.234 MB / 302.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 4.937e-05/0.09032, allocations: 13.72 kB / 369.1 MB, free: 2.215 MB / 302.1 MB Notification: Performance of setup shared object (initialization): time 8.061e-05/0.0904, allocations: 321.9 kB / 369.4 MB, free: 1.895 MB / 302.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001546/0.09056, allocations: 63.95 kB / 369.5 MB, free: 1.832 MB / 302.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001638/0.09074, allocations: 86.52 kB / 369.5 MB, free: 1.738 MB / 302.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003061/0.09105, allocations: 158.4 kB / 369.7 MB, free: 1.574 MB / 302.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.512e-06/0.09106, allocations: 0 / 369.7 MB, free: 1.574 MB / 302.1 MB Notification: Performance of matching and sorting (n=3) (initialization): time 0.0005091/0.09157, allocations: 264.5 kB / 369.9 MB, free: 1.309 MB / 302.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.189e-05/0.09159, allocations: 4 kB / 370 MB, free: 1.305 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.181e-06/0.09161, allocations: 4 kB / 370 MB, free: 1.301 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.058e-05/0.09162, allocations: 96 / 370 MB, free: 1.301 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.00016/0.09179, allocations: 15.98 kB / 370 MB, free: 1.285 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.841e-06/0.0918, allocations: 4 kB / 370 MB, free: 1.281 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001738/0.09198, allocations: 11.92 kB / 370 MB, free: 1.27 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.418e-05/0.092, allocations: 4 kB / 370 MB, free: 1.266 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.0002724/0.09228, allocations: 342.7 kB / 370.3 MB, free: 0.9219 MB / 302.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001635/0.09245, allocations: 90.86 kB / 370.4 MB, free: 0.832 MB / 302.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0005364/0.09299, allocations: 277.6 kB / 370.7 MB, free: 0.5508 MB / 302.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.639e-06/0.093, allocations: 0 / 370.7 MB, free: 0.5508 MB / 302.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.146e-06/0.09301, allocations: 3.938 kB / 370.7 MB, free: 0.5469 MB / 302.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.645e-06/0.09302, allocations: 0 / 370.7 MB, free: 0.5469 MB / 302.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.1747/0.2677, allocations: 0.5227 MB / 371.2 MB, free: 20.46 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 9.598e-06/0.2678, allocations: 0.5625 kB / 371.2 MB, free: 20.46 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001442/0.2679, allocations: 10.66 kB / 371.2 MB, free: 20.46 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 6.001e-06/0.2679, allocations: 1.484 kB / 371.2 MB, free: 20.46 MB / 302.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.156e-05/0.268, allocations: 2.438 kB / 371.2 MB, free: 20.46 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 4.208e-06/0.268, allocations: 1.969 kB / 371.2 MB, free: 20.46 MB / 302.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.344e-06/0.268, allocations: 1.219 kB / 371.2 MB, free: 20.46 MB / 302.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0007262/0.2687, allocations: 322.8 kB / 371.5 MB, free: 20.33 MB / 302.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0003297/0.2691, allocations: 226.6 kB / 371.8 MB, free: 20.21 MB / 302.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 7.713e-05/0.2691, allocations: 1.281 kB / 371.8 MB, free: 20.21 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.000206/0.2694, allocations: 7.031 kB / 371.8 MB, free: 20.21 MB / 302.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.434e-05/0.2694, allocations: 6.609 kB / 371.8 MB, free: 20.21 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.192e-05/0.2694, allocations: 2.391 kB / 371.8 MB, free: 20.21 MB / 302.1 MB Notification: Performance of sorting global known variables: time 0.001595/0.271, allocations: 1.014 MB / 372.8 MB, free: 20.1 MB / 302.1 MB Notification: Performance of sort global known variables: time 3.41e-07/0.271, allocations: 0 / 372.8 MB, free: 20.1 MB / 302.1 MB Notification: Performance of remove unused functions: time 0.0004091/0.2715, allocations: 63.7 kB / 372.9 MB, free: 20.1 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.0009728/0.2724, allocations: 0.8632 MB / 373.7 MB, free: 19.4 MB / 302.1 MB Notification: Performance of simCode: created initialization part: time 0.0004372/0.2729, allocations: 123.5 kB / 373.8 MB, free: 19.4 MB / 302.1 MB Notification: Performance of simCode: created event and clocks part: time 2.465e-06/0.2729, allocations: 0.5938 kB / 373.8 MB, free: 19.4 MB / 302.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0001809/0.2731, allocations: 58.62 kB / 373.9 MB, free: 19.4 MB / 302.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0006028/0.2737, allocations: 94.64 kB / 374 MB, free: 19.4 MB / 302.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01241/0.2861, allocations: 9.389 MB / 383.4 MB, free: 15.4 MB / 302.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0006214/0.2868, allocations: 0.9996 MB / 384.4 MB, free: 14.66 MB / 302.1 MB Notification: Performance of simCode: alias equations: time 0.0009137/0.2877, allocations: 479 kB / 384.9 MB, free: 14.62 MB / 302.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003011/0.288, allocations: 248 kB / 385.1 MB, free: 14.43 MB / 302.1 MB Notification: Performance of SimCode: time 9.42e-07/0.288, allocations: 1.125 kB / 385.1 MB, free: 14.43 MB / 302.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.03823/0.3263, allocations: 15.85 MB / 400.9 MB, free: 3.336 MB / 302.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 8.208/8.535, allocations: 3.625 kB / 400.9 MB, free: 3.336 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