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.001616/0.001616, allocations: 109.1 kB / 21.18 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.002233/0.002233, allocations: 218 kB / 24.49 MB, free: 4.172 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.461/1.461, allocations: 230.5 MB / 258.1 MB, free: 8.012 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: 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 0.001879/0.001879, allocations: 71.89 kB / 379 MB, free: 2.516 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2679/0.2698, allocations: 53.4 MB / 432.4 MB, free: 6.766 MB / 334.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Batteries.Examples.ShowImpedance): time 0.003453/0.2733, allocations: 1.931 MB / 434.4 MB, free: 4.832 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.001976/0.2753, allocations: 1.269 MB / 435.6 MB, free: 3.555 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001056/0.2754, allocations: 7.938 kB / 435.6 MB, free: 3.547 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.001108/0.2765, allocations: 0.5021 MB / 436.1 MB, free: 3.047 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0002569/0.2767, allocations: 195.4 kB / 436.3 MB, free: 2.855 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0004833/0.2772, allocations: 175.3 kB / 436.5 MB, free: 2.684 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.0003694/0.2776, allocations: 223.1 kB / 436.7 MB, free: 2.465 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001006/0.2777, allocations: 13.81 kB / 436.7 MB, free: 2.449 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002581/0.2779, allocations: 127.5 kB / 436.9 MB, free: 2.324 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.000303/0.2782, allocations: 231.4 kB / 437.1 MB, free: 2.098 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 2.596e-05/0.2783, allocations: 8 kB / 437.1 MB, free: 2.09 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001534/0.2784, allocations: 63.89 kB / 437.1 MB, free: 2.027 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0002271/0.2786, allocations: 259.2 kB / 437.4 MB, free: 1.773 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0002648/0.2789, allocations: 277.9 kB / 437.7 MB, free: 1.5 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0009111/0.2798, allocations: 0.7832 MB / 438.5 MB, free: 0.7148 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 7.444e-06/0.2798, allocations: 4 kB / 438.5 MB, free: 0.7109 MB / 334.1 MB Notification: Performance of FrontEnd: time 2.124e-06/0.2798, allocations: 0 / 438.5 MB, free: 0.7109 MB / 334.1 MB Notification: Performance of Transformations before backend: time 8.186e-06/0.2798, allocations: 0 / 438.5 MB, free: 0.7109 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.002737/0.2826, allocations: 1.129 MB / 439.6 MB, free: 15.55 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.104e-05/0.2826, allocations: 11.97 kB / 439.6 MB, free: 15.54 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001881/0.2828, allocations: 92.33 kB / 439.7 MB, free: 15.45 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001145/0.284, allocations: 0.6992 MB / 440.4 MB, free: 14.71 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.195e-05/0.284, allocations: 12.36 kB / 440.4 MB, free: 14.7 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.783e-05/0.284, allocations: 384 / 440.4 MB, free: 14.7 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003/0.2843, allocations: 117.9 kB / 440.5 MB, free: 14.57 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 9.949e-06/0.2843, allocations: 0 / 440.5 MB, free: 14.57 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.589e-05/0.2843, allocations: 0 / 440.5 MB, free: 14.57 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.769e-06/0.2843, allocations: 0 / 440.5 MB, free: 14.57 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.000359/0.2847, allocations: 143.9 kB / 440.7 MB, free: 14.43 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001257/0.2859, allocations: 0.7899 MB / 441.4 MB, free: 13.6 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002168/0.2862, allocations: 82.53 kB / 441.5 MB, free: 13.51 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001784/0.2863, allocations: 72.89 kB / 441.6 MB, free: 13.44 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.043e-05/0.2864, allocations: 4 kB / 441.6 MB, free: 13.43 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.32e-05/0.2864, allocations: 34.56 kB / 441.6 MB, free: 13.39 MB / 350.1 MB Notification: Performance of pre-optimization done (n=3): time 1.292e-06/0.2864, allocations: 0 / 441.6 MB, free: 13.39 MB / 350.1 MB Notification: Performance of matching and sorting (n=3): time 0.0008203/0.2872, allocations: 328.9 kB / 442 MB, free: 13.06 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.542e-05/0.2873, allocations: 51.41 kB / 442 MB, free: 13 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001818/0.2891, allocations: 1.409 MB / 443.4 MB, free: 11.57 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 2.516e-05/0.2891, allocations: 25.7 kB / 443.4 MB, free: 11.54 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.000375/0.2895, allocations: 392.4 kB / 443.8 MB, free: 11.15 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 2.749e-05/0.2895, allocations: 11.89 kB / 443.8 MB, free: 11.14 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 6.971e-05/0.2896, allocations: 25.7 kB / 443.9 MB, free: 11.11 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 0.0001526/0.2898, allocations: 306 kB / 444.2 MB, free: 10.8 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001788/0.2899, allocations: 71.94 kB / 444.2 MB, free: 10.73 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001831/0.2901, allocations: 82.47 kB / 444.3 MB, free: 10.64 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003398/0.2905, allocations: 170.3 kB / 444.5 MB, free: 10.47 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.304e-06/0.2905, allocations: 0 / 444.5 MB, free: 10.47 MB / 350.1 MB Notification: Performance of matching and sorting (n=3) (initialization): time 0.0005633/0.291, allocations: 261 kB / 444.7 MB, free: 10.21 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.03e-05/0.291, allocations: 12.09 kB / 444.7 MB, free: 10.2 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.502e-06/0.291, allocations: 0 / 444.7 MB, free: 10.2 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.729e-05/0.2911, allocations: 0 / 444.7 MB, free: 10.2 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002012/0.2913, allocations: 15.98 kB / 444.8 MB, free: 10.18 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 8.917e-06/0.2913, allocations: 3.984 kB / 444.8 MB, free: 10.18 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001909/0.2915, allocations: 15.94 kB / 444.8 MB, free: 10.16 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.514e-05/0.2915, allocations: 7.938 kB / 444.8 MB, free: 10.15 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.0003808/0.2919, allocations: 341.6 kB / 445.1 MB, free: 9.809 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001732/0.292, allocations: 91.44 kB / 445.2 MB, free: 9.719 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0006177/0.2927, allocations: 277.6 kB / 445.5 MB, free: 9.438 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.081e-06/0.2927, allocations: 4 kB / 445.5 MB, free: 9.434 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.007e-06/0.2927, allocations: 4 kB / 445.5 MB, free: 9.43 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.637e-06/0.2927, allocations: 0 / 445.5 MB, free: 9.43 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0005948/0.2933, allocations: 493.7 kB / 446 MB, free: 8.906 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.298e-06/0.2933, allocations: 0 / 446 MB, free: 8.906 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 7.955e-05/0.2933, allocations: 15.98 kB / 446 MB, free: 8.891 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.234e-06/0.2933, allocations: 0 / 446 MB, free: 8.891 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.527e-05/0.2934, allocations: 4 kB / 446 MB, free: 8.887 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.704e-06/0.2934, allocations: 0 / 446 MB, free: 8.887 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.322e-06/0.2934, allocations: 0 / 446 MB, free: 8.887 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0005205/0.2939, allocations: 327.2 kB / 446.3 MB, free: 8.551 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0003955/0.2943, allocations: 155.3 kB / 446.5 MB, free: 8.398 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 6.52e-05/0.2943, allocations: 0 / 446.5 MB, free: 8.398 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001885/0.2945, allocations: 11.98 kB / 446.5 MB, free: 8.387 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.482e-05/0.2946, allocations: 4 kB / 446.5 MB, free: 8.383 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 9.718e-06/0.2946, allocations: 4 kB / 446.5 MB, free: 8.379 MB / 350.1 MB Notification: Performance of sorting global known variables: time 0.001339/0.2959, allocations: 1.009 MB / 447.5 MB, free: 7.359 MB / 350.1 MB Notification: Performance of sort global known variables: time 1.1e-07/0.2959, allocations: 4 kB / 447.5 MB, free: 7.355 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.0003504/0.2963, allocations: 71.92 kB / 447.6 MB, free: 7.285 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.0002055/0.2965, allocations: 103.2 kB / 447.7 MB, free: 7.172 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.000412/0.2969, allocations: 135.8 kB / 447.8 MB, free: 7.039 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 2.474e-06/0.2969, allocations: 0 / 447.8 MB, free: 7.039 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0001598/0.2971, allocations: 47.95 kB / 447.8 MB, free: 6.992 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0006092/0.2977, allocations: 113.8 kB / 448 MB, free: 6.883 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002175/0.2998, allocations: 1.436 MB / 449.4 MB, free: 5.414 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0006965/0.3005, allocations: 0.9967 MB / 450.4 MB, free: 4.391 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001241/0.3007, allocations: 39.44 kB / 450.4 MB, free: 4.352 MB / 350.1 MB Notification: Performance of SimCode: time 4.2e-07/0.3007, allocations: 0 / 450.4 MB, free: 4.352 MB / 350.1 MB Notification: Performance of Templates: time 0.0169/0.3176, allocations: 9.191 MB / 459.6 MB, free: 11.18 MB / 366.1 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=480 -emit_protected -lv LOG_STATS > Modelica_trunk_Modelica.Electrical.Batteries.Examples.ShowImpedance.pipe 2>&1) [Timeout 480] 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: 8.40421088389121]