Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.1.0-beta.om_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.001332/0.001332, allocations: 108.4 kB / 21.17 MB, free: 0.7852 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.001518/0.001518, allocations: 216.5 kB / 24.47 MB, free: 4.359 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0-beta.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0-beta.om/package.mo): time 1.532/1.532, allocations: 230.4 MB / 258.1 MB, free: 8.145 MB / 206.1 MB " [Timeout remaining time 178] Using package Modelica with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0-beta.om/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_4.1.0-beta.om_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_4.1.0-beta.om_Modelica.Electrical.Batteries.Examples.ShowImpedance") [Timeout 660] "Warning: Requested package Modelica of version trunk, but this package was already loaded with version 4.1.0. OpenModelica cannot reason about compatibility between the two packages since they are not semantic versions. Warning: Requested package Complex of version 4.1.0, but this package was already loaded with version trunk. OpenModelica cannot reason about compatibility between the two packages since they are not semantic versions. Warning: Requested package ModelicaServices of version 4.1.0, but this package was already loaded with version trunk. OpenModelica cannot reason about compatibility between the two packages since they are not semantic versions. Notification: Performance of FrontEnd - loaded program: time 0.002142/0.002142, allocations: 71.83 kB / 378.7 MB, free: 2.918 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2755/0.2777, allocations: 53.31 MB / 432 MB, free: 7.41 MB / 334.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Batteries.Examples.ShowImpedance): time 0.003148/0.2808, allocations: 1.936 MB / 434 MB, free: 5.469 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.00178/0.2826, allocations: 1.269 MB / 435.2 MB, free: 4.191 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 8.103e-05/0.2827, allocations: 4 kB / 435.2 MB, free: 4.188 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0009911/0.2837, allocations: 0.4962 MB / 435.7 MB, free: 3.691 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0002367/0.2839, allocations: 199.4 kB / 435.9 MB, free: 3.496 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.000472/0.2844, allocations: 171.3 kB / 436.1 MB, free: 3.328 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.0003602/0.2848, allocations: 223.1 kB / 436.3 MB, free: 3.109 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 9.105e-05/0.2849, allocations: 17.69 kB / 436.3 MB, free: 3.09 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002461/0.2851, allocations: 123.6 kB / 436.4 MB, free: 2.969 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002971/0.2854, allocations: 227.4 kB / 436.7 MB, free: 2.746 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 2.541e-05/0.2854, allocations: 8 kB / 436.7 MB, free: 2.738 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001622/0.2856, allocations: 63.94 kB / 436.7 MB, free: 2.676 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0002145/0.2858, allocations: 263.2 kB / 437 MB, free: 2.418 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0002333/0.286, allocations: 277.9 kB / 437.3 MB, free: 2.145 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.00088/0.2869, allocations: 0.7777 MB / 438 MB, free: 1.363 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.496e-06/0.2869, allocations: 4 kB / 438 MB, free: 1.359 MB / 334.1 MB Notification: Performance of FrontEnd: time 2.865e-06/0.2869, allocations: 7.984 kB / 438.1 MB, free: 1.352 MB / 334.1 MB Notification: Performance of Transformations before backend: time 1.3e-05/0.2869, allocations: 0 / 438.1 MB, free: 1.352 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.002686/0.2896, allocations: 1.205 MB / 439.3 MB, free: 96 kB / 334.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.022e-05/0.2897, allocations: 12.03 kB / 439.3 MB, free: 84 kB / 334.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001957/0.2899, allocations: 92.56 kB / 439.4 MB, free: 15.99 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001049/0.2909, allocations: 0.7479 MB / 440.1 MB, free: 15.19 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.72e-05/0.2909, allocations: 8.375 kB / 440.1 MB, free: 15.18 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.012e-05/0.2909, allocations: 4.312 kB / 440.1 MB, free: 15.18 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003062/0.2912, allocations: 125.7 kB / 440.2 MB, free: 15.05 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 7.394e-06/0.2913, allocations: 0 / 440.2 MB, free: 15.05 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.578e-05/0.2913, allocations: 3.938 kB / 440.2 MB, free: 15.05 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.218e-06/0.2913, allocations: 0 / 440.2 MB, free: 15.05 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0003579/0.2916, allocations: 143.9 kB / 440.4 MB, free: 14.91 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001117/0.2927, allocations: 0.8104 MB / 441.2 MB, free: 14.05 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002133/0.293, allocations: 86.52 kB / 441.3 MB, free: 13.95 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001716/0.2931, allocations: 68.91 kB / 441.4 MB, free: 13.88 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.533e-05/0.2931, allocations: 0 / 441.4 MB, free: 13.88 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.308e-05/0.2932, allocations: 42.48 kB / 441.4 MB, free: 13.83 MB / 350.1 MB Notification: Performance of pre-optimization done (n=3): time 8.11e-07/0.2932, allocations: 0 / 441.4 MB, free: 13.83 MB / 350.1 MB Notification: Performance of matching and sorting (n=3): time 0.0008169/0.294, allocations: 329 kB / 441.7 MB, free: 13.5 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.39e-05/0.294, allocations: 51.41 kB / 441.8 MB, free: 13.44 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001828/0.2959, allocations: 1.409 MB / 443.2 MB, free: 12.01 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 2.516e-05/0.2959, allocations: 25.7 kB / 443.2 MB, free: 11.98 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.00037/0.2963, allocations: 392.3 kB / 443.6 MB, free: 11.59 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 3.038e-05/0.2963, allocations: 11.94 kB / 443.6 MB, free: 11.58 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 6.071e-05/0.2964, allocations: 13.72 kB / 443.6 MB, free: 11.56 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 0.0001595/0.2965, allocations: 321.9 kB / 443.9 MB, free: 11.24 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001747/0.2967, allocations: 63.94 kB / 444 MB, free: 11.18 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001956/0.2969, allocations: 90.45 kB / 444.1 MB, free: 11.08 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003762/0.2973, allocations: 154.5 kB / 444.2 MB, free: 10.92 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.288e-06/0.2973, allocations: 4 kB / 444.2 MB, free: 10.92 MB / 350.1 MB Notification: Performance of matching and sorting (n=3) (initialization): time 0.0005948/0.2979, allocations: 268.9 kB / 444.5 MB, free: 10.65 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.136e-05/0.2979, allocations: 8 kB / 444.5 MB, free: 10.64 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.951e-06/0.2979, allocations: 0 / 444.5 MB, free: 10.64 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.843e-05/0.2979, allocations: 0 / 444.5 MB, free: 10.64 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001971/0.2981, allocations: 24.02 kB / 444.5 MB, free: 10.62 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.37e-06/0.2981, allocations: 0 / 444.5 MB, free: 10.62 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002014/0.2983, allocations: 11.94 kB / 444.5 MB, free: 10.61 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.727e-05/0.2983, allocations: 4 kB / 444.5 MB, free: 10.6 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.0003867/0.2987, allocations: 341.6 kB / 444.9 MB, free: 10.26 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001882/0.2989, allocations: 91.7 kB / 445 MB, free: 10.17 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.000637/0.2995, allocations: 277.2 kB / 445.2 MB, free: 9.887 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.642e-06/0.2995, allocations: 0 / 445.2 MB, free: 9.887 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.658e-06/0.2996, allocations: 0 / 445.2 MB, free: 9.887 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.166e-06/0.2996, allocations: 0 / 445.2 MB, free: 9.887 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0005827/0.3001, allocations: 0.5104 MB / 445.7 MB, free: 9.328 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.379e-06/0.3001, allocations: 4 kB / 445.7 MB, free: 9.324 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 8.065e-05/0.3002, allocations: 15.92 kB / 445.8 MB, free: 9.309 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.224e-06/0.3002, allocations: 0 / 445.8 MB, free: 9.309 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.457e-05/0.3002, allocations: 7.984 kB / 445.8 MB, free: 9.301 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.272e-06/0.3002, allocations: 3.938 kB / 445.8 MB, free: 9.297 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.82e-07/0.3002, allocations: 0 / 445.8 MB, free: 9.297 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0005215/0.3008, allocations: 319.3 kB / 446.1 MB, free: 8.969 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0004129/0.3012, allocations: 228.5 kB / 446.3 MB, free: 8.727 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 7.119e-05/0.3012, allocations: 8 kB / 446.3 MB, free: 8.719 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001839/0.3014, allocations: 4 kB / 446.3 MB, free: 8.715 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.515e-05/0.3015, allocations: 3.984 kB / 446.3 MB, free: 8.711 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 9.969e-06/0.3015, allocations: 4 kB / 446.3 MB, free: 8.707 MB / 350.1 MB Notification: Performance of sorting global known variables: time 0.001403/0.3029, allocations: 1.013 MB / 447.3 MB, free: 7.684 MB / 350.1 MB Notification: Performance of sort global known variables: time 7e-08/0.3029, allocations: 0 / 447.3 MB, free: 7.684 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.0003508/0.3032, allocations: 67.89 kB / 447.4 MB, free: 7.617 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.0002235/0.3035, allocations: 119.2 kB / 447.5 MB, free: 7.492 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.0004141/0.3039, allocations: 123.9 kB / 447.6 MB, free: 7.371 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 2.404e-06/0.3039, allocations: 0 / 447.6 MB, free: 7.371 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0001698/0.3041, allocations: 56.23 kB / 447.7 MB, free: 7.316 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0006068/0.3047, allocations: 104.2 kB / 447.8 MB, free: 7.211 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001902/0.3066, allocations: 1.379 MB / 449.2 MB, free: 5.805 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0007498/0.3073, allocations: 0.9969 MB / 450.2 MB, free: 4.781 MB / 350.1 MB Notification: Performance of simCode: alias equations: time 0.000634/0.308, allocations: 478 kB / 450.6 MB, free: 4.309 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001151/0.3081, allocations: 39.42 kB / 450.7 MB, free: 4.27 MB / 350.1 MB Notification: Performance of SimCode: time 7.32e-07/0.3081, allocations: 0 / 450.7 MB, free: 4.27 MB / 350.1 MB Notification: Performance of Templates: time 0.01497/0.323, allocations: 7.506 MB / 458.2 MB, free: 12.81 MB / 366.1 MB " [Timeout remaining time 660] make -j1 -f Modelica_4.1.0-beta.om_Modelica.Electrical.Batteries.Examples.ShowImpedance.makefile [Timeout 660] (rm -f Modelica_4.1.0-beta.om_Modelica.Electrical.Batteries.Examples.ShowImpedance.pipe ; mkfifo Modelica_4.1.0-beta.om_Modelica.Electrical.Batteries.Examples.ShowImpedance.pipe ; head -c 1048576 < Modelica_4.1.0-beta.om_Modelica.Electrical.Batteries.Examples.ShowImpedance.pipe >> ../files/Modelica_4.1.0-beta.om_Modelica.Electrical.Batteries.Examples.ShowImpedance.sim & ./Modelica_4.1.0-beta.om_Modelica.Electrical.Batteries.Examples.ShowImpedance -abortSlowSimulation -alarm=480 -s cvode -emit_protected -lv LOG_STATS > Modelica_4.1.0-beta.om_Modelica.Electrical.Batteries.Examples.ShowImpedance.pipe 2>&1) [Timeout 480] diffSimulationResults("Modelica_4.1.0-beta.om_Modelica.Electrical.Batteries.Examples.ShowImpedance_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork_2/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.1.0/Modelica/Electrical/Batteries/Examples/ShowImpedance/ShowImpedance.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork_2/OpenModelicaLibraryTesting/files/Modelica_4.1.0-beta.om_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: 4.933476746082306]