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.001173/0.001173, allocations: 76.05 kB / 10 MB, free: 0.6836 MB / 10.45 MB Notification: Performance of NFInstanceAPI.mkTop(): time 0.002097/0.00327, allocations: 457.8 kB / 10.45 MB, free: 244 kB / 10.45 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.001131/0.001131, allocations: 162 kB / 11.36 MB, free: 2.816 MB / 13.93 MB Notification: Performance of NFInstanceAPI.mkTop(): time 0.001611/0.002741, allocations: 475.6 kB / 11.82 MB, free: 2.348 MB / 13.93 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.001/1.001, allocations: 177.5 MB / 190 MB, free: 4.816 MB / 186.7 MB Notification: Performance of NFInstanceAPI.mkTop(): time 0.1076/1.108, allocations: 53.86 MB / 243.9 MB, free: 14.88 MB / 250.7 MB " [Timeout remaining time 179] 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: translateModel(Modelica.Electrical.Batteries.Examples.ShowImpedance,tolerance=1e-06,outputFormat="mat",numberOfIntervals=10000,variableFilter="time|impedance.z.re|impedance.z.im",fileNamePrefix="Modelica_trunk_Modelica.Electrical.Batteries.Examples.ShowImpedance") translateModel(Modelica.Electrical.Batteries.Examples.ShowImpedance,tolerance=1e-06,outputFormat="mat",numberOfIntervals=10000,variableFilter="time|impedance.z.re|impedance.z.im",fileNamePrefix="Modelica_trunk_Modelica.Electrical.Batteries.Examples.ShowImpedance") [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 1.914e-06/1.914e-06, allocations: 0 / 245.2 MB, free: 13.61 MB / 250.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 2.568e-05/2.759e-05, allocations: 5.406 kB / 245.2 MB, free: 13.61 MB / 250.7 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Batteries.Examples.ShowImpedance): time 0.002644/0.002672, allocations: 1.985 MB / 247.2 MB, free: 11.61 MB / 250.7 MB Notification: Performance of NFInst.instExpressions: time 0.001175/0.003847, allocations: 1.226 MB / 248.4 MB, free: 10.38 MB / 250.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 7.537e-05/0.003922, allocations: 0 / 248.4 MB, free: 10.38 MB / 250.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0006943/0.004616, allocations: 0.5217 MB / 248.9 MB, free: 9.852 MB / 250.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0001544/0.004771, allocations: 199.3 kB / 249.1 MB, free: 9.656 MB / 250.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002739/0.005045, allocations: 167.2 kB / 249.3 MB, free: 9.492 MB / 250.7 MB Notification: Performance of NFFlatten.flatten: time 0.0002601/0.005305, allocations: 238.8 kB / 249.5 MB, free: 9.262 MB / 250.7 MB Notification: Performance of NFFlatten.resolveConnections: time 7.611e-05/0.005381, allocations: 6.469 kB / 249.5 MB, free: 9.258 MB / 250.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002778/0.005659, allocations: 205.7 kB / 249.7 MB, free: 9.055 MB / 250.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001895/0.005848, allocations: 187.7 kB / 249.9 MB, free: 8.871 MB / 250.7 MB Notification: Performance of NFPackage.collectConstants: time 2.274e-05/0.005871, allocations: 8 kB / 249.9 MB, free: 8.863 MB / 250.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001271/0.005998, allocations: 59.91 kB / 250 MB, free: 8.805 MB / 250.7 MB Notification: Performance of NFScalarize.scalarize: time 0.0001324/0.006131, allocations: 259.3 kB / 250.2 MB, free: 8.551 MB / 250.7 MB Notification: Performance of NFVerifyModel.verify: time 8.315e-05/0.006214, allocations: 111.4 kB / 250.3 MB, free: 8.441 MB / 250.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0004241/0.006638, allocations: 0.502 MB / 250.8 MB, free: 7.938 MB / 250.7 MB Notification: Performance of FrontEnd - DAE generated: time 8.786e-06/0.006647, allocations: 0 / 250.8 MB, free: 7.938 MB / 250.7 MB Notification: Performance of FrontEnd: time 9.82e-07/0.006648, allocations: 0 / 250.8 MB, free: 7.938 MB / 250.7 MB Notification: Performance of Transformations before backend: time 1.153e-05/0.006659, allocations: 0 / 250.8 MB, free: 7.938 MB / 250.7 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.001407/0.008066, allocations: 1.211 MB / 252 MB, free: 6.68 MB / 250.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.96e-05/0.008106, allocations: 12.62 kB / 252.1 MB, free: 6.668 MB / 250.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001329/0.008239, allocations: 56.86 kB / 252.1 MB, free: 6.613 MB / 250.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004012/0.00864, allocations: 447.5 kB / 252.5 MB, free: 6.137 MB / 250.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.982e-05/0.00866, allocations: 384 / 252.5 MB, free: 6.137 MB / 250.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.781e-05/0.008678, allocations: 384 / 252.5 MB, free: 6.137 MB / 250.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001515/0.008829, allocations: 78.83 kB / 252.6 MB, free: 6.051 MB / 250.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 6.081e-06/0.008835, allocations: 192 / 252.6 MB, free: 6.051 MB / 250.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 9.548e-06/0.008845, allocations: 8.375 kB / 252.6 MB, free: 6.043 MB / 250.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 9.468e-06/0.008854, allocations: 3.938 kB / 252.6 MB, free: 6.039 MB / 250.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 4.632e-05/0.008901, allocations: 11.98 kB / 252.6 MB, free: 6.027 MB / 250.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0003585/0.009259, allocations: 224.2 kB / 252.9 MB, free: 5.793 MB / 250.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0001268/0.009386, allocations: 46.5 kB / 252.9 MB, free: 5.738 MB / 250.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 2.324e-05/0.009409, allocations: 8.859 kB / 252.9 MB, free: 5.727 MB / 250.7 MB Notification: Performance of preOpt evalFunc (simulation): time 1.316e-05/0.009422, allocations: 0 / 252.9 MB, free: 5.727 MB / 250.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.679e-05/0.009449, allocations: 46.55 kB / 253 MB, free: 5.672 MB / 250.7 MB Notification: Performance of pre-optimization done (n=3): time 1.002e-06/0.00945, allocations: 0 / 253 MB, free: 5.672 MB / 250.7 MB Notification: Performance of matching and sorting (n=3): time 0.0002182/0.009668, allocations: 101.6 kB / 253.1 MB, free: 5.566 MB / 250.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 2.888e-05/0.009697, allocations: 51.41 kB / 253.1 MB, free: 5.504 MB / 250.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0005204/0.01022, allocations: 0.7468 MB / 253.9 MB, free: 4.738 MB / 250.7 MB Notification: Performance of collectPreVariables (initialization): time 1.622e-05/0.01023, allocations: 25.7 kB / 253.9 MB, free: 4.707 MB / 250.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.000281/0.01051, allocations: 198.4 kB / 254.1 MB, free: 4.508 MB / 250.7 MB Notification: Performance of collectInitialBindings (initialization): time 2.842e-05/0.01054, allocations: 15.88 kB / 254.1 MB, free: 4.492 MB / 250.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.912e-05/0.01058, allocations: 21.66 kB / 254.1 MB, free: 4.465 MB / 250.7 MB Notification: Performance of setup shared object (initialization): time 7.131e-05/0.01065, allocations: 306 kB / 254.4 MB, free: 4.16 MB / 250.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 2.722e-05/0.01068, allocations: 7.984 kB / 254.4 MB, free: 4.152 MB / 250.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 2.126e-05/0.0107, allocations: 4 kB / 254.4 MB, free: 4.148 MB / 250.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 4.916e-05/0.01075, allocations: 20.84 kB / 254.4 MB, free: 4.125 MB / 250.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.795e-06/0.01075, allocations: 4 kB / 254.5 MB, free: 4.121 MB / 250.7 MB Notification: Performance of matching and sorting (n=3) (initialization): time 0.0001589/0.01091, allocations: 97.89 kB / 254.5 MB, free: 4.02 MB / 250.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.523e-05/0.01093, allocations: 7.938 kB / 254.6 MB, free: 4.012 MB / 250.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.633e-06/0.01093, allocations: 4 kB / 254.6 MB, free: 4.008 MB / 250.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.404e-05/0.01095, allocations: 3.984 kB / 254.6 MB, free: 4.004 MB / 250.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001135/0.01106, allocations: 19.91 kB / 254.6 MB, free: 3.984 MB / 250.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 4.359e-06/0.01107, allocations: 3.984 kB / 254.6 MB, free: 3.98 MB / 250.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 6.895e-05/0.01114, allocations: 7.984 kB / 254.6 MB, free: 3.973 MB / 250.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.634e-06/0.01114, allocations: 0 / 254.6 MB, free: 3.973 MB / 250.7 MB Notification: Model statistics after passing the back-end for initialization: * 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 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 9.112e-05/0.01123, allocations: 116.7 kB / 254.7 MB, free: 3.848 MB / 250.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 8.829e-05/0.01132, allocations: 51.94 kB / 254.8 MB, free: 3.797 MB / 250.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0002186/0.01154, allocations: 189.4 kB / 254.9 MB, free: 3.605 MB / 250.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.359e-06/0.01155, allocations: 3.938 kB / 254.9 MB, free: 3.602 MB / 250.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.573e-06/0.01155, allocations: 0 / 254.9 MB, free: 3.602 MB / 250.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.196e-06/0.01155, allocations: 4 kB / 255 MB, free: 3.598 MB / 250.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002866/0.01184, allocations: 337.2 kB / 255.3 MB, free: 3.25 MB / 250.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.641e-06/0.01184, allocations: 3.984 kB / 255.3 MB, free: 3.246 MB / 250.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 4.265e-05/0.01189, allocations: 8 kB / 255.3 MB, free: 3.238 MB / 250.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.000112/0.012, allocations: 111.4 kB / 255.4 MB, free: 3.129 MB / 250.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.184e-06/0.012, allocations: 0 / 255.4 MB, free: 3.129 MB / 250.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.183e-06/0.01201, allocations: 3.938 kB / 255.4 MB, free: 3.125 MB / 250.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 4.118e-06/0.01201, allocations: 3.938 kB / 255.4 MB, free: 3.121 MB / 250.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.122e-06/0.01201, allocations: 4 kB / 255.4 MB, free: 3.117 MB / 250.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001855/0.0122, allocations: 234.8 kB / 255.6 MB, free: 2.871 MB / 250.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.045e-05/0.01224, allocations: 7.984 kB / 255.6 MB, free: 2.863 MB / 250.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 8.217e-05/0.01232, allocations: 8 kB / 255.7 MB, free: 2.855 MB / 250.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.439e-05/0.01235, allocations: 7.938 kB / 255.7 MB, free: 2.848 MB / 250.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.122e-06/0.01236, allocations: 3.984 kB / 255.7 MB, free: 2.844 MB / 250.7 MB Notification: Performance of sorting global known variables: time 0.0002851/0.01265, allocations: 387.7 kB / 256 MB, free: 2.453 MB / 250.7 MB Notification: Performance of sort global known variables: time 3.31e-07/0.01265, allocations: 0 / 256 MB, free: 2.453 MB / 250.7 MB Notification: Performance of remove unused functions: time 0.0001835/0.01283, allocations: 63.94 kB / 256.1 MB, free: 2.391 MB / 250.7 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.0001551/0.01298, allocations: 96.39 kB / 256.2 MB, free: 2.289 MB / 250.7 MB Notification: Performance of simCode: created initialization part: time 9.228e-05/0.01308, allocations: 32.72 kB / 256.2 MB, free: 2.254 MB / 250.7 MB Notification: Performance of simCode: created event and clocks part: time 9.277e-06/0.01309, allocations: 12 kB / 256.2 MB, free: 2.242 MB / 250.7 MB Notification: Performance of simCode: created simulation system equations: time 4.502e-05/0.01313, allocations: 16.84 kB / 256.3 MB, free: 2.223 MB / 250.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005917/0.01372, allocations: 0.8218 MB / 257.1 MB, free: 1.258 MB / 250.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002358/0.01608, allocations: 1.105 MB / 258.2 MB, free: 120 kB / 250.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001611/0.01624, allocations: 189.2 kB / 258.4 MB, free: 15.91 MB / 266.7 MB Notification: Performance of simCode: alias equations: time 0.0003526/0.01659, allocations: 382.1 kB / 258.7 MB, free: 15.53 MB / 266.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002059/0.0168, allocations: 139.3 kB / 258.9 MB, free: 15.39 MB / 266.7 MB Notification: Performance of SimCode: time 1.413e-06/0.0168, allocations: 0 / 258.9 MB, free: 15.39 MB / 266.7 MB Notification: Performance of Templates: time 0.01156/0.02836, allocations: 8.558 MB / 267.4 MB, free: 6.914 MB / 266.7 MB " [Timeout remaining time 660] make -j1 -f Modelica_trunk_Modelica.Electrical.Batteries.Examples.ShowImpedance.makefile [Timeout 660] (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 & ./Modelica_trunk_Modelica.Electrical.Batteries.Examples.ShowImpedance -abortSlowSimulation -alarm=240 -emit_protected -ignoreHideResult -lv LOG_STATS > Modelica_trunk_Modelica.Electrical.Batteries.Examples.ShowImpedance.pipe 2>&1) [Timeout 240] diffSimulationResults("Modelica_trunk_Modelica.Electrical.Batteries.Examples.ShowImpedance_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.1.0/Modelica/Electrical/Batteries/Examples/ShowImpedance/ShowImpedance.csv","",relTol=0.003,relTolDiffMinMax=0.003,tube=OpenModelica.Scripting.TubeAlgorithm.rectangle) [Timeout 660] "" [Timeout remaining time 660] Reference file matches [Calling sys.exit(0), Time elapsed: 2.6849967343732715]