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) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.001402/0.001402, allocations: 116.7 kB / 20.43 MB, free: 1.457 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001562/0.001562, allocations: 213.6 kB / 23.74 MB, free: 4.672 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.488/1.488, allocations: 230.5 MB / 257.4 MB, free: 8.023 MB / 206.1 MB " [Timeout remaining time 178] 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"}) [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 0.002036/0.002036, allocations: 59.89 kB / 377.8 MB, free: 3.129 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2712/0.2732, allocations: 53.4 MB / 431.2 MB, free: 6.723 MB / 334.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Batteries.Examples.ShowImpedance): time 0.003313/0.2765, allocations: 1.936 MB / 433.1 MB, free: 4.781 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.001967/0.2785, allocations: 1.261 MB / 434.4 MB, free: 3.512 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 9.662e-05/0.2786, allocations: 11.94 kB / 434.4 MB, free: 3.5 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.001069/0.2797, allocations: 0.4995 MB / 434.9 MB, free: 3 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0002584/0.2799, allocations: 199.4 kB / 435.1 MB, free: 2.805 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0004439/0.2804, allocations: 167.4 kB / 435.2 MB, free: 2.641 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.0003349/0.2807, allocations: 230.7 kB / 435.5 MB, free: 2.418 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 8.502e-05/0.2808, allocations: 17.8 kB / 435.5 MB, free: 2.398 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002437/0.281, allocations: 127.6 kB / 435.6 MB, free: 2.273 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002909/0.2813, allocations: 227.4 kB / 435.8 MB, free: 2.051 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 2.484e-05/0.2814, allocations: 11.94 kB / 435.8 MB, free: 2.039 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.000145/0.2815, allocations: 59.95 kB / 435.9 MB, free: 1.98 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0002246/0.2817, allocations: 267.2 kB / 436.1 MB, free: 1.719 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0002606/0.282, allocations: 273.9 kB / 436.4 MB, free: 1.449 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0008739/0.2829, allocations: 0.785 MB / 437.2 MB, free: 0.6641 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.908e-06/0.2829, allocations: 0 / 437.2 MB, free: 0.6641 MB / 334.1 MB Notification: Performance of FrontEnd: time 1.624e-06/0.2829, allocations: 0 / 437.2 MB, free: 0.6641 MB / 334.1 MB Notification: Performance of Transformations before backend: time 9.878e-06/0.2829, allocations: 0 / 437.2 MB, free: 0.6641 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.002732/0.2856, allocations: 1.129 MB / 438.3 MB, free: 15.5 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.171e-05/0.2857, allocations: 12.03 kB / 438.3 MB, free: 15.49 MB / 350.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 3.929e-05/0.2857, allocations: 30.75 kB / 438.4 MB, free: 15.45 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001757/0.2859, allocations: 92.33 kB / 438.5 MB, free: 15.36 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001095/0.287, allocations: 0.7031 MB / 439.2 MB, free: 14.62 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.293e-05/0.287, allocations: 8.312 kB / 439.2 MB, free: 14.61 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.704e-05/0.287, allocations: 4.375 kB / 439.2 MB, free: 14.61 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002877/0.2873, allocations: 117.7 kB / 439.3 MB, free: 14.48 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 8.726e-06/0.2873, allocations: 0 / 439.3 MB, free: 14.48 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.347e-05/0.2873, allocations: 0 / 439.3 MB, free: 14.48 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.422e-06/0.2873, allocations: 4 kB / 439.3 MB, free: 14.48 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0003728/0.2877, allocations: 139.9 kB / 439.4 MB, free: 14.34 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001149/0.2888, allocations: 0.7899 MB / 440.2 MB, free: 13.51 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002198/0.289, allocations: 86.45 kB / 440.3 MB, free: 13.42 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001737/0.2892, allocations: 76.89 kB / 440.4 MB, free: 13.34 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.166e-05/0.2892, allocations: 3.984 kB / 440.4 MB, free: 13.34 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.793e-05/0.2893, allocations: 30.56 kB / 440.4 MB, free: 13.3 MB / 350.1 MB Notification: Performance of pre-optimization done (n=3): time 1.122e-06/0.2893, allocations: 4 kB / 440.4 MB, free: 13.29 MB / 350.1 MB Notification: Performance of matching and sorting (n=3): time 0.0008204/0.2901, allocations: 329 kB / 440.7 MB, free: 12.96 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.066e-05/0.2901, allocations: 55.34 kB / 440.8 MB, free: 12.9 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001803/0.2919, allocations: 1.401 MB / 442.2 MB, free: 11.48 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 2.479e-05/0.292, allocations: 29.7 kB / 442.2 MB, free: 11.44 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0004392/0.2924, allocations: 392.3 kB / 442.6 MB, free: 11.05 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 2.85e-05/0.2924, allocations: 11.95 kB / 442.6 MB, free: 11.04 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 6.725e-05/0.2925, allocations: 21.7 kB / 442.6 MB, free: 11.02 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 0.0001545/0.2927, allocations: 309.9 kB / 442.9 MB, free: 10.71 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001827/0.2928, allocations: 71.94 kB / 443 MB, free: 10.64 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001797/0.293, allocations: 82.53 kB / 443.1 MB, free: 10.55 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003463/0.2934, allocations: 158.4 kB / 443.3 MB, free: 10.38 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.174e-06/0.2934, allocations: 0 / 443.3 MB, free: 10.38 MB / 350.1 MB Notification: Performance of matching and sorting (n=3) (initialization): time 0.0005787/0.294, allocations: 265 kB / 443.5 MB, free: 10.12 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.712e-05/0.294, allocations: 4.094 kB / 443.5 MB, free: 10.11 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.864e-06/0.294, allocations: 8 kB / 443.5 MB, free: 10.11 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.445e-05/0.294, allocations: 0 / 443.5 MB, free: 10.11 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001814/0.2942, allocations: 19.92 kB / 443.5 MB, free: 10.09 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.077e-05/0.2942, allocations: 8 kB / 443.5 MB, free: 10.08 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001887/0.2944, allocations: 11.94 kB / 443.6 MB, free: 10.07 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.661e-05/0.2944, allocations: 4 kB / 443.6 MB, free: 10.06 MB / 350.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.000358/0.2947, allocations: 341.6 kB / 443.9 MB, free: 9.719 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001753/0.2949, allocations: 91.42 kB / 444 MB, free: 9.629 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0006217/0.2955, allocations: 277.6 kB / 444.3 MB, free: 9.348 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.711e-06/0.2955, allocations: 48 / 444.3 MB, free: 9.348 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.331e-06/0.2956, allocations: 7.984 kB / 444.3 MB, free: 9.34 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.755e-06/0.2956, allocations: 0 / 444.3 MB, free: 9.34 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.000571/0.2961, allocations: 0.49 MB / 444.8 MB, free: 8.809 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.647e-06/0.2961, allocations: 0 / 444.8 MB, free: 8.809 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 7.896e-05/0.2962, allocations: 11.98 kB / 444.8 MB, free: 8.797 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.314e-06/0.2962, allocations: 0 / 444.8 MB, free: 8.797 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.069e-05/0.2962, allocations: 0 / 444.8 MB, free: 8.797 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.954e-06/0.2962, allocations: 0 / 444.8 MB, free: 8.797 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.132e-06/0.2962, allocations: 0 / 444.8 MB, free: 8.797 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0005182/0.2967, allocations: 327.2 kB / 445.1 MB, free: 8.461 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0003752/0.2971, allocations: 159.3 kB / 445.2 MB, free: 8.305 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 6.671e-05/0.2972, allocations: 4 kB / 445.2 MB, free: 8.301 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001877/0.2974, allocations: 7.984 kB / 445.3 MB, free: 8.293 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.42e-05/0.2974, allocations: 4 kB / 445.3 MB, free: 8.289 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 9.668e-06/0.2974, allocations: 4 kB / 445.3 MB, free: 8.285 MB / 350.1 MB Notification: Performance of sorting global known variables: time 0.001294/0.2987, allocations: 1.013 MB / 446.3 MB, free: 7.262 MB / 350.1 MB Notification: Performance of sort global known variables: time 1e-07/0.2987, allocations: 4 kB / 446.3 MB, free: 7.258 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.0003469/0.2991, allocations: 63.98 kB / 446.3 MB, free: 7.195 MB / 350.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.0009259/0.3, allocations: 0.8642 MB / 447.2 MB, free: 6.301 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.0003843/0.3004, allocations: 123.8 kB / 447.3 MB, free: 6.18 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 1.894e-06/0.3004, allocations: 3.938 kB / 447.3 MB, free: 6.176 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0001591/0.3005, allocations: 51.95 kB / 447.4 MB, free: 6.125 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005814/0.3011, allocations: 113 kB / 447.5 MB, free: 6.02 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01281/0.3139, allocations: 8.791 MB / 456.3 MB, free: 13.08 MB / 366.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0007487/0.3147, allocations: 0.9928 MB / 457.3 MB, free: 12.07 MB / 366.1 MB Notification: Performance of simCode: alias equations: time 0.00077/0.3154, allocations: 482.2 kB / 457.7 MB, free: 11.59 MB / 366.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003525/0.3158, allocations: 247.4 kB / 458 MB, free: 11.35 MB / 366.1 MB Notification: Performance of SimCode: time 1.673e-06/0.3158, allocations: 0 / 458 MB, free: 11.35 MB / 366.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.0522/0.368, allocations: 16.28 MB / 474.3 MB, free: 11.21 MB / 382.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 12.67/13.04, allocations: 12.73 kB / 474.3 MB, free: 11.2 MB / 382.1 MB " [Timeout remaining time 647] (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 --stepSize=0.0001 --timeout=50 --tolerance=1e-06 Modelica_trunk_Modelica_Electrical_Batteries_Examples_ShowImpedance.fmu > Modelica_trunk_Modelica.Electrical.Batteries.Examples.ShowImpedance.pipe 2>&1) [Timeout 52.5] 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) [Timeout 660] "" [Timeout remaining time 660] Reference file matches [Calling sys.exit(0), Time elapsed: 15.88966208905913]