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) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0-beta.om/package.mo", uses=false) 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=20000,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=20000,variableFilter="time|impedance.z.re|impedance.z.im",fileNamePrefix="Modelica_4.1.0-beta.om_Modelica.Electrical.Batteries.Examples.ShowImpedance") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.001262/0.001262, allocations: 120.5 kB / 18.45 MB, free: 4.633 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001286/0.001286, allocations: 215.8 kB / 19.41 MB, free: 3.684 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0-beta.om/package.mo): time 1.399/1.399, allocations: 227.7 MB / 247.9 MB, free: 10.2 MB / 206.1 MB 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.001931/0.001931, allocations: 67.81 kB / 359.7 MB, free: 12.75 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2448/0.2467, allocations: 50.54 MB / 410.2 MB, free: 1.422 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Batteries.Examples.ShowImpedance): time 0.003316/0.25, allocations: 1.912 MB / 412.1 MB, free: 15.51 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.001822/0.2519, allocations: 1.25 MB / 413.3 MB, free: 14.25 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 7.983e-05/0.2519, allocations: 7.938 kB / 413.4 MB, free: 14.24 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0009747/0.2529, allocations: 0.4946 MB / 413.9 MB, free: 13.74 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0002151/0.2531, allocations: 195.4 kB / 414 MB, free: 13.55 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0004304/0.2536, allocations: 171.4 kB / 414.2 MB, free: 13.38 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.0003962/0.254, allocations: 227.1 kB / 414.4 MB, free: 13.16 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001209/0.2541, allocations: 9.688 kB / 414.4 MB, free: 13.15 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002801/0.2544, allocations: 135.5 kB / 414.6 MB, free: 13.02 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002659/0.2546, allocations: 203.5 kB / 414.8 MB, free: 12.82 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 2.392e-05/0.2547, allocations: 8 kB / 414.8 MB, free: 12.81 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001563/0.2548, allocations: 71.83 kB / 414.8 MB, free: 12.74 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0002146/0.255, allocations: 267.2 kB / 415.1 MB, free: 12.48 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0002393/0.2553, allocations: 269.9 kB / 415.4 MB, free: 12.21 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0008036/0.2561, allocations: 0.7776 MB / 416.2 MB, free: 11.43 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.009e-06/0.2561, allocations: 4 kB / 416.2 MB, free: 11.43 MB / 334.1 MB Notification: Performance of FrontEnd: time 1.202e-06/0.2561, allocations: 0 / 416.2 MB, free: 11.43 MB / 334.1 MB Notification: Performance of Transformations before backend: time 7.454e-06/0.2561, allocations: 4 kB / 416.2 MB, free: 11.43 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.002564/0.2586, allocations: 1.209 MB / 417.4 MB, free: 10.16 MB / 334.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.441e-05/0.2587, allocations: 12.03 kB / 417.4 MB, free: 10.15 MB / 334.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001985/0.2589, allocations: 92.33 kB / 417.5 MB, free: 10.06 MB / 334.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001019/0.2599, allocations: 0.7557 MB / 418.2 MB, free: 9.254 MB / 334.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.53e-05/0.2599, allocations: 4.375 kB / 418.2 MB, free: 9.25 MB / 334.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.709e-05/0.2599, allocations: 384 / 418.2 MB, free: 9.25 MB / 334.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002839/0.2602, allocations: 125.8 kB / 418.4 MB, free: 9.121 MB / 334.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 7.704e-06/0.2602, allocations: 4 kB / 418.4 MB, free: 9.117 MB / 334.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.766e-05/0.2602, allocations: 3.984 kB / 418.4 MB, free: 9.113 MB / 334.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.098e-06/0.2602, allocations: 0 / 418.4 MB, free: 9.113 MB / 334.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0003451/0.2606, allocations: 143.9 kB / 418.5 MB, free: 8.973 MB / 334.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001032/0.2616, allocations: 0.8141 MB / 419.3 MB, free: 8.109 MB / 334.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002144/0.2618, allocations: 90.52 kB / 419.4 MB, free: 8.012 MB / 334.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001808/0.262, allocations: 64.91 kB / 419.5 MB, free: 7.945 MB / 334.1 MB Notification: Performance of preOpt evalFunc (simulation): time 9.859e-06/0.262, allocations: 0 / 419.5 MB, free: 7.945 MB / 334.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.917e-05/0.2621, allocations: 38.56 kB / 419.5 MB, free: 7.898 MB / 334.1 MB Notification: Performance of pre-optimization done (n=3): time 7.92e-07/0.2621, allocations: 0 / 419.5 MB, free: 7.898 MB / 334.1 MB Notification: Performance of matching and sorting (n=3): time 0.0007951/0.2628, allocations: 328.9 kB / 419.8 MB, free: 7.57 MB / 334.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.872e-05/0.2629, allocations: 55.41 kB / 419.9 MB, free: 7.504 MB / 334.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001697/0.2646, allocations: 1.409 MB / 421.3 MB, free: 6.074 MB / 334.1 MB Notification: Performance of collectPreVariables (initialization): time 2.366e-05/0.2646, allocations: 25.7 kB / 421.3 MB, free: 6.043 MB / 334.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0003398/0.2649, allocations: 384.4 kB / 421.7 MB, free: 5.664 MB / 334.1 MB Notification: Performance of collectInitialBindings (initialization): time 2.641e-05/0.265, allocations: 7.953 kB / 421.7 MB, free: 5.656 MB / 334.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 5.887e-05/0.265, allocations: 21.7 kB / 421.7 MB, free: 5.629 MB / 334.1 MB Notification: Performance of setup shared object (initialization): time 0.0001227/0.2652, allocations: 306 kB / 422 MB, free: 5.324 MB / 334.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001739/0.2653, allocations: 71.94 kB / 422.1 MB, free: 5.254 MB / 334.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.000186/0.2655, allocations: 86.52 kB / 422.2 MB, free: 5.16 MB / 334.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.000355/0.2659, allocations: 162.3 kB / 422.3 MB, free: 4.992 MB / 334.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.853e-06/0.2659, allocations: 0 / 422.3 MB, free: 4.992 MB / 334.1 MB Notification: Performance of matching and sorting (n=3) (initialization): time 0.0005809/0.2665, allocations: 268.9 kB / 422.6 MB, free: 4.723 MB / 334.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.754e-05/0.2665, allocations: 11.98 kB / 422.6 MB, free: 4.711 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.708e-06/0.2665, allocations: 0 / 422.6 MB, free: 4.711 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.277e-05/0.2665, allocations: 0 / 422.6 MB, free: 4.711 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001739/0.2667, allocations: 15.98 kB / 422.6 MB, free: 4.695 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 4.969e-06/0.2667, allocations: 0 / 422.6 MB, free: 4.695 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001862/0.2669, allocations: 16.02 kB / 422.6 MB, free: 4.68 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.553e-05/0.2669, allocations: 4 kB / 422.6 MB, free: 4.676 MB / 334.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.0003462/0.2672, allocations: 341.6 kB / 423 MB, free: 4.332 MB / 334.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.000182/0.2674, allocations: 91.42 kB / 423.1 MB, free: 4.242 MB / 334.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0006066/0.268, allocations: 285.5 kB / 423.3 MB, free: 3.949 MB / 334.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.24e-06/0.268, allocations: 3.938 kB / 423.3 MB, free: 3.945 MB / 334.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.407e-06/0.268, allocations: 0 / 423.3 MB, free: 3.945 MB / 334.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.913e-06/0.268, allocations: 0 / 423.3 MB, free: 3.945 MB / 334.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0005484/0.2686, allocations: 0.5104 MB / 423.9 MB, free: 3.387 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.179e-06/0.2686, allocations: 4 kB / 423.9 MB, free: 3.383 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 7.81e-05/0.2686, allocations: 11.98 kB / 423.9 MB, free: 3.371 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.903e-06/0.2686, allocations: 4 kB / 423.9 MB, free: 3.367 MB / 334.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.409e-05/0.2687, allocations: 8 kB / 423.9 MB, free: 3.359 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.896e-06/0.2687, allocations: 3.984 kB / 423.9 MB, free: 3.355 MB / 334.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.042e-06/0.2687, allocations: 0 / 423.9 MB, free: 3.355 MB / 334.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0005213/0.2692, allocations: 319.2 kB / 424.2 MB, free: 3.027 MB / 334.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0003679/0.2696, allocations: 232.4 kB / 424.4 MB, free: 2.781 MB / 334.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 7.189e-05/0.2696, allocations: 11.98 kB / 424.4 MB, free: 2.77 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001857/0.2698, allocations: 4 kB / 424.4 MB, free: 2.766 MB / 334.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.739e-05/0.2699, allocations: 3.984 kB / 424.4 MB, free: 2.762 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.013e-05/0.2699, allocations: 4 kB / 424.4 MB, free: 2.758 MB / 334.1 MB Notification: Performance of sorting global known variables: time 0.001262/0.2711, allocations: 1.013 MB / 425.5 MB, free: 1.734 MB / 334.1 MB Notification: Performance of sort global known variables: time 8e-08/0.2711, allocations: 0 / 425.5 MB, free: 1.734 MB / 334.1 MB Notification: Performance of remove unused functions: time 0.0003309/0.2715, allocations: 60 kB / 425.5 MB, free: 1.676 MB / 334.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.0001768/0.2716, allocations: 111.2 kB / 425.6 MB, free: 1.555 MB / 334.1 MB Notification: Performance of simCode: created initialization part: time 0.0003819/0.272, allocations: 123.8 kB / 425.8 MB, free: 1.434 MB / 334.1 MB Notification: Performance of simCode: created event and clocks part: time 2.925e-06/0.272, allocations: 0 / 425.8 MB, free: 1.434 MB / 334.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0001638/0.2722, allocations: 51.95 kB / 425.8 MB, free: 1.383 MB / 334.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005678/0.2727, allocations: 120.8 kB / 425.9 MB, free: 1.266 MB / 334.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001834/0.2746, allocations: 1.383 MB / 427.3 MB, free: 15.86 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0006605/0.2752, allocations: 0.9969 MB / 428.3 MB, free: 14.83 MB / 350.1 MB Notification: Performance of simCode: alias equations: time 0.0006078/0.2758, allocations: 470.3 kB / 428.8 MB, free: 14.37 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001174/0.276, allocations: 43.42 kB / 428.8 MB, free: 14.32 MB / 350.1 MB Notification: Performance of SimCode: time 8.02e-07/0.276, allocations: 0 / 428.8 MB, free: 14.32 MB / 350.1 MB Notification: Performance of Templates: time 0.01463/0.2906, allocations: 7.446 MB / 436.2 MB, free: 6.922 MB / 350.1 MB make -j1 -f Modelica_4.1.0-beta.om_Modelica.Electrical.Batteries.Examples.ShowImpedance.makefile (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 gbode -emit_protected -lv LOG_STATS > Modelica_4.1.0-beta.om_Modelica.Electrical.Batteries.Examples.ShowImpedance.pipe 2>&1) diffSimulationResults("Modelica_4.1.0-beta.om_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_4.1.0-beta.om_Modelica.Electrical.Batteries.Examples.ShowImpedance.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches