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.00152/0.00152, allocations: 115.5 kB / 21.18 MB, free: 0.5898 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.001685/0.001685, allocations: 210.8 kB / 24.47 MB, free: 3.996 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.401/1.401, allocations: 230.4 MB / 258.1 MB, free: 8.137 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.001919/0.001919, allocations: 71.83 kB / 378.7 MB, free: 2.895 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2612/0.2631, allocations: 53.33 MB / 432 MB, free: 7.383 MB / 334.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Batteries.Examples.ShowImpedance): time 0.003323/0.2665, allocations: 1.921 MB / 434 MB, free: 5.457 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.001845/0.2683, allocations: 1.265 MB / 435.2 MB, free: 4.184 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 8.382e-05/0.2684, allocations: 4 kB / 435.2 MB, free: 4.18 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0009995/0.2694, allocations: 0.5005 MB / 435.7 MB, free: 3.68 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0002366/0.2696, allocations: 195.4 kB / 435.9 MB, free: 3.488 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0004326/0.2701, allocations: 175.2 kB / 436.1 MB, free: 3.316 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.0003413/0.2704, allocations: 223.2 kB / 436.3 MB, free: 3.098 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 8.114e-05/0.2705, allocations: 9.672 kB / 436.3 MB, free: 3.086 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002283/0.2707, allocations: 127.5 kB / 436.4 MB, free: 2.961 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002917/0.271, allocations: 239.4 kB / 436.7 MB, free: 2.727 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 2.69e-05/0.271, allocations: 11.94 kB / 436.7 MB, free: 2.715 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001511/0.2712, allocations: 59.95 kB / 436.7 MB, free: 2.656 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0002169/0.2714, allocations: 259.3 kB / 437 MB, free: 2.402 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0002305/0.2716, allocations: 273.9 kB / 437.3 MB, free: 2.133 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0008565/0.2725, allocations: 0.7817 MB / 438 MB, free: 1.348 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.065e-06/0.2725, allocations: 0 / 438 MB, free: 1.348 MB / 334.1 MB Notification: Performance of FrontEnd: time 1.242e-06/0.2725, allocations: 3.938 kB / 438 MB, free: 1.344 MB / 334.1 MB Notification: Performance of Transformations before backend: time 9.738e-06/0.2725, allocations: 0 / 438 MB, free: 1.344 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.002634/0.2751, allocations: 1.209 MB / 439.3 MB, free: 84 kB / 334.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.602e-05/0.2752, allocations: 11.97 kB / 439.3 MB, free: 72 kB / 334.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002157/0.2754, allocations: 96.56 kB / 439.4 MB, free: 15.97 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001109/0.2765, allocations: 0.7518 MB / 440.1 MB, free: 15.17 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.363e-05/0.2765, allocations: 384 / 440.1 MB, free: 15.17 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.83e-05/0.2765, allocations: 8.375 kB / 440.1 MB, free: 15.16 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002957/0.2768, allocations: 117.7 kB / 440.2 MB, free: 15.04 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 8.225e-06/0.2768, allocations: 0 / 440.2 MB, free: 15.04 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.587e-05/0.2768, allocations: 0 / 440.2 MB, free: 15.04 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 9.858e-06/0.2768, allocations: 4 kB / 440.2 MB, free: 15.04 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0003526/0.2772, allocations: 139.9 kB / 440.4 MB, free: 14.9 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001132/0.2783, allocations: 0.8142 MB / 441.2 MB, free: 14.04 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002099/0.2785, allocations: 86.52 kB / 441.3 MB, free: 13.95 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.000181/0.2787, allocations: 72.91 kB / 441.4 MB, free: 13.87 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.605e-05/0.2787, allocations: 0 / 441.4 MB, free: 13.87 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.717e-05/0.2788, allocations: 34.55 kB / 441.4 MB, free: 13.83 MB / 350.1 MB Notification: Performance of pre-optimization done (n=3): time 2.455e-06/0.2788, allocations: 3.984 kB / 441.4 MB, free: 13.82 MB / 350.1 MB Notification: Performance of matching and sorting (n=3): time 0.000822/0.2796, allocations: 340.9 kB / 441.7 MB, free: 13.48 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.954e-05/0.2796, allocations: 51.41 kB / 441.8 MB, free: 13.42 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001701/0.2813, allocations: 1.401 MB / 443.2 MB, free: 12 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 2.316e-05/0.2814, allocations: 25.7 kB / 443.2 MB, free: 11.97 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0003403/0.2817, allocations: 392.3 kB / 443.6 MB, free: 11.58 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 2.825e-05/0.2817, allocations: 7.938 kB / 443.6 MB, free: 11.57 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 5.684e-05/0.2818, allocations: 25.72 kB / 443.6 MB, free: 11.54 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 0.0001268/0.2819, allocations: 309.9 kB / 443.9 MB, free: 11.23 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001826/0.2821, allocations: 71.94 kB / 444 MB, free: 11.16 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001844/0.2823, allocations: 86.45 kB / 444.1 MB, free: 11.07 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003445/0.2826, allocations: 158.4 kB / 444.2 MB, free: 10.91 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.823e-06/0.2826, allocations: 0 / 444.2 MB, free: 10.91 MB / 350.1 MB Notification: Performance of matching and sorting (n=3) (initialization): time 0.0005779/0.2832, allocations: 268.9 kB / 444.5 MB, free: 10.64 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.543e-05/0.2832, allocations: 4 kB / 444.5 MB, free: 10.63 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.629e-06/0.2832, allocations: 4.031 kB / 444.5 MB, free: 10.63 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.666e-05/0.2832, allocations: 8 kB / 444.5 MB, free: 10.62 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001835/0.2834, allocations: 19.98 kB / 444.5 MB, free: 10.6 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.441e-06/0.2834, allocations: 0 / 444.5 MB, free: 10.6 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002023/0.2836, allocations: 15.94 kB / 444.5 MB, free: 10.59 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.368e-05/0.2837, allocations: 0 / 444.5 MB, free: 10.59 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.0003567/0.284, allocations: 345.6 kB / 444.9 MB, free: 10.24 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.000187/0.2842, allocations: 91.42 kB / 445 MB, free: 10.15 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0005861/0.2848, allocations: 269.6 kB / 445.2 MB, free: 9.875 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.23e-06/0.2848, allocations: 0 / 445.2 MB, free: 9.875 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.802e-06/0.2848, allocations: 4 kB / 445.2 MB, free: 9.871 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.1e-06/0.2848, allocations: 8.031 kB / 445.2 MB, free: 9.863 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0005554/0.2854, allocations: 0.5104 MB / 445.8 MB, free: 9.305 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.547e-06/0.2854, allocations: 0 / 445.8 MB, free: 9.305 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 7.864e-05/0.2854, allocations: 11.98 kB / 445.8 MB, free: 9.293 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.404e-06/0.2854, allocations: 0 / 445.8 MB, free: 9.293 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.096e-05/0.2854, allocations: 0 / 445.8 MB, free: 9.293 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 4.168e-06/0.2855, allocations: 3.984 kB / 445.8 MB, free: 9.289 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 9.11e-07/0.2855, allocations: 0 / 445.8 MB, free: 9.289 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0005052/0.286, allocations: 327.2 kB / 446.1 MB, free: 8.953 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0004013/0.2864, allocations: 228.5 kB / 446.3 MB, free: 8.711 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 6.533e-05/0.2864, allocations: 0 / 446.3 MB, free: 8.711 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001819/0.2866, allocations: 4 kB / 446.3 MB, free: 8.707 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.76e-05/0.2867, allocations: 11.98 kB / 446.3 MB, free: 8.695 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.073e-06/0.2867, allocations: 0 / 446.3 MB, free: 8.695 MB / 350.1 MB Notification: Performance of sorting global known variables: time 0.001245/0.2879, allocations: 1.013 MB / 447.3 MB, free: 7.672 MB / 350.1 MB Notification: Performance of sort global known variables: time 8e-08/0.2879, allocations: 0 / 447.3 MB, free: 7.672 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.0003303/0.2882, allocations: 71.89 kB / 447.4 MB, free: 7.602 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.0001865/0.2884, allocations: 111.2 kB / 447.5 MB, free: 7.484 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.0003918/0.2888, allocations: 123.8 kB / 447.6 MB, free: 7.363 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 5.22e-06/0.2888, allocations: 4.188 kB / 447.6 MB, free: 7.359 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0001655/0.289, allocations: 55.95 kB / 447.7 MB, free: 7.305 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005663/0.2896, allocations: 104.1 kB / 447.8 MB, free: 7.199 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001968/0.2915, allocations: 1.439 MB / 449.2 MB, free: 5.727 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0006492/0.2922, allocations: 0.9969 MB / 450.2 MB, free: 4.703 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001209/0.2923, allocations: 39.42 kB / 450.3 MB, free: 4.664 MB / 350.1 MB Notification: Performance of SimCode: time 4.81e-07/0.2923, allocations: 0 / 450.3 MB, free: 4.664 MB / 350.1 MB Notification: Performance of Templates: time 0.0143/0.3066, allocations: 9.181 MB / 459.5 MB, free: 11.5 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 -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: 7.484900577925146]