Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.1.0_Modelica.Electrical.Batteries.Examples.ShowImpedance.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo): time 0.00132/0.00132, allocations: 111.1 kB / 20.44 MB, free: 1.184 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo): time 0.001498/0.001498, allocations: 210.7 kB / 23.72 MB, free: 4.391 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo): time 1.486/1.486, allocations: 230.6 MB / 257.5 MB, free: 7.801 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+maint.om/package.mo) Using package Complex with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo) Using package ModelicaServices with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/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_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_Modelica.Electrical.Batteries.Examples.ShowImpedance") [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 0.001648/0.001648, allocations: 51.92 kB / 378.2 MB, free: 2.5 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2653/0.267, allocations: 53.36 MB / 431.6 MB, free: 6.746 MB / 334.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Batteries.Examples.ShowImpedance): time 0.003361/0.2704, allocations: 1.869 MB / 433.4 MB, free: 4.875 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.001865/0.2722, allocations: 1.135 MB / 434.6 MB, free: 3.734 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 9.101e-05/0.2723, allocations: 0 / 434.6 MB, free: 3.734 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.001057/0.2734, allocations: 498.5 kB / 435 MB, free: 3.246 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0002443/0.2736, allocations: 199.4 kB / 435.2 MB, free: 3.051 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0004248/0.274, allocations: 155.4 kB / 435.4 MB, free: 2.898 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.0003333/0.2744, allocations: 227.1 kB / 435.6 MB, free: 2.676 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 8.63e-05/0.2745, allocations: 13.81 kB / 435.6 MB, free: 2.66 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002334/0.2747, allocations: 127.5 kB / 435.8 MB, free: 2.535 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002937/0.275, allocations: 231.4 kB / 436 MB, free: 2.309 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 2.615e-05/0.275, allocations: 4 kB / 436 MB, free: 2.305 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.000158/0.2752, allocations: 59.91 kB / 436 MB, free: 2.246 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0002216/0.2754, allocations: 259.3 kB / 436.3 MB, free: 1.992 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 0.000204/0.2756, allocations: 202.4 kB / 436.5 MB, free: 1.793 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0009156/0.2765, allocations: 0.7853 MB / 437.3 MB, free: 1.008 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 6.051e-06/0.2765, allocations: 3.984 kB / 437.3 MB, free: 1.004 MB / 334.1 MB Notification: Performance of FrontEnd: time 1.804e-06/0.2765, allocations: 4 kB / 437.3 MB, free: 1 MB / 334.1 MB Notification: Performance of Transformations before backend: time 9.498e-06/0.2765, allocations: 0 / 437.3 MB, free: 1 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.00266/0.2792, allocations: 1.133 MB / 438.4 MB, free: 15.83 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.488e-05/0.2792, allocations: 8.031 kB / 438.4 MB, free: 15.82 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001938/0.2794, allocations: 96.31 kB / 438.5 MB, free: 15.73 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001091/0.2805, allocations: 0.6993 MB / 439.2 MB, free: 14.99 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.541e-05/0.2805, allocations: 4.312 kB / 439.2 MB, free: 14.99 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.032e-05/0.2805, allocations: 8.359 kB / 439.2 MB, free: 14.98 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002839/0.2808, allocations: 117.9 kB / 439.3 MB, free: 14.86 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 9.668e-06/0.2808, allocations: 8 kB / 439.4 MB, free: 14.85 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.45e-05/0.2809, allocations: 0 / 439.4 MB, free: 14.85 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.519e-06/0.2809, allocations: 3.938 kB / 439.4 MB, free: 14.85 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0003598/0.2812, allocations: 143.9 kB / 439.5 MB, free: 14.71 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001047/0.2823, allocations: 0.6848 MB / 440.2 MB, free: 13.99 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002267/0.2825, allocations: 94.39 kB / 440.3 MB, free: 13.89 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001816/0.2827, allocations: 68.91 kB / 440.3 MB, free: 13.82 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.628e-05/0.2827, allocations: 4 kB / 440.3 MB, free: 13.82 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.045e-05/0.2827, allocations: 34.56 kB / 440.4 MB, free: 13.77 MB / 350.1 MB Notification: Performance of pre-optimization done (n=3): time 1.132e-06/0.2827, allocations: 0 / 440.4 MB, free: 13.77 MB / 350.1 MB Notification: Performance of matching and sorting (n=3): time 0.0008305/0.2835, allocations: 324.9 kB / 440.7 MB, free: 13.45 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.956e-05/0.2836, allocations: 59.34 kB / 440.8 MB, free: 13.38 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001821/0.2854, allocations: 1.405 MB / 442.2 MB, free: 11.95 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 2.709e-05/0.2855, allocations: 25.7 kB / 442.2 MB, free: 11.92 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0003804/0.2858, allocations: 388.4 kB / 442.6 MB, free: 11.54 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 3.267e-05/0.2859, allocations: 15.88 kB / 442.6 MB, free: 11.52 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 5.757e-05/0.2859, allocations: 21.72 kB / 442.6 MB, free: 11.5 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 0.0001456/0.2861, allocations: 306 kB / 442.9 MB, free: 11.19 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001763/0.2862, allocations: 71.88 kB / 443 MB, free: 11.12 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001867/0.2864, allocations: 86.52 kB / 443.1 MB, free: 11.03 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003685/0.2868, allocations: 158.4 kB / 443.2 MB, free: 10.86 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.234e-06/0.2868, allocations: 0 / 443.2 MB, free: 10.86 MB / 350.1 MB Notification: Performance of matching and sorting (n=3) (initialization): time 0.0005804/0.2874, allocations: 276.8 kB / 443.5 MB, free: 10.59 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.624e-05/0.2874, allocations: 4 kB / 443.5 MB, free: 10.58 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.043e-06/0.2874, allocations: 4 kB / 443.5 MB, free: 10.58 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.675e-05/0.2874, allocations: 0 / 443.5 MB, free: 10.58 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001844/0.2876, allocations: 15.98 kB / 443.5 MB, free: 10.56 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.631e-06/0.2876, allocations: 8.094 kB / 443.5 MB, free: 10.55 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001841/0.2878, allocations: 11.98 kB / 443.5 MB, free: 10.54 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.718e-05/0.2878, allocations: 4 kB / 443.5 MB, free: 10.54 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.0003487/0.2882, allocations: 337.6 kB / 443.9 MB, free: 10.2 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001779/0.2883, allocations: 91.42 kB / 443.9 MB, free: 10.11 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0005962/0.2889, allocations: 281.6 kB / 444.2 MB, free: 9.824 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.213e-06/0.2889, allocations: 4 kB / 444.2 MB, free: 9.82 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.837e-06/0.289, allocations: 0 / 444.2 MB, free: 9.82 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.855e-06/0.289, allocations: 0 / 444.2 MB, free: 9.82 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0004937/0.2894, allocations: 410 kB / 444.6 MB, free: 9.391 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.594e-06/0.2895, allocations: 3.938 kB / 444.6 MB, free: 9.387 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 7.749e-05/0.2895, allocations: 11.98 kB / 444.6 MB, free: 9.375 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.034e-06/0.2895, allocations: 4 kB / 444.6 MB, free: 9.371 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.273e-05/0.2895, allocations: 4 kB / 444.6 MB, free: 9.367 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.222e-06/0.2896, allocations: 0 / 444.6 MB, free: 9.367 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.61e-07/0.2896, allocations: 0 / 444.6 MB, free: 9.367 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0005109/0.2901, allocations: 315.4 kB / 445 MB, free: 9.043 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.000409/0.2905, allocations: 171.1 kB / 445.1 MB, free: 8.875 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 6.669e-05/0.2905, allocations: 0 / 445.1 MB, free: 8.875 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.000202/0.2907, allocations: 4 kB / 445.1 MB, free: 8.871 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.749e-05/0.2908, allocations: 7.984 kB / 445.1 MB, free: 8.863 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.534e-06/0.2908, allocations: 4 kB / 445.1 MB, free: 8.859 MB / 350.1 MB Notification: Performance of sorting global known variables: time 0.001313/0.2921, allocations: 1.013 MB / 446.2 MB, free: 7.836 MB / 350.1 MB Notification: Performance of sort global known variables: time 9.1e-08/0.2921, allocations: 0 / 446.2 MB, free: 7.836 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.000343/0.2925, allocations: 67.94 kB / 446.2 MB, free: 7.77 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.0001777/0.2926, allocations: 111.2 kB / 446.3 MB, free: 7.648 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.0003715/0.293, allocations: 127.9 kB / 446.5 MB, free: 7.523 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 2.104e-06/0.293, allocations: 3.938 kB / 446.5 MB, free: 7.52 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0001677/0.2932, allocations: 47.97 kB / 446.5 MB, free: 7.473 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005851/0.2938, allocations: 110.6 kB / 446.6 MB, free: 7.363 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001973/0.2957, allocations: 1.384 MB / 448 MB, free: 5.953 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004793/0.2962, allocations: 408 kB / 448.4 MB, free: 5.531 MB / 350.1 MB Notification: Performance of simCode: alias equations: time 0.0006431/0.2969, allocations: 470.1 kB / 448.9 MB, free: 5.066 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001179/0.297, allocations: 43.38 kB / 448.9 MB, free: 5.023 MB / 350.1 MB Notification: Performance of SimCode: time 3.71e-07/0.297, allocations: 0 / 448.9 MB, free: 5.023 MB / 350.1 MB Notification: Performance of Templates: time 0.01602/0.313, allocations: 8.569 MB / 457.5 MB, free: 12.53 MB / 366.1 MB " [Timeout remaining time 660] make -j1 -f Modelica_4.1.0_Modelica.Electrical.Batteries.Examples.ShowImpedance.makefile [Timeout 660] (rm -f Modelica_4.1.0_Modelica.Electrical.Batteries.Examples.ShowImpedance.pipe ; mkfifo Modelica_4.1.0_Modelica.Electrical.Batteries.Examples.ShowImpedance.pipe ; head -c 1048576 < Modelica_4.1.0_Modelica.Electrical.Batteries.Examples.ShowImpedance.pipe >> ../files/Modelica_4.1.0_Modelica.Electrical.Batteries.Examples.ShowImpedance.sim & ./Modelica_4.1.0_Modelica.Electrical.Batteries.Examples.ShowImpedance -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Modelica_4.1.0_Modelica.Electrical.Batteries.Examples.ShowImpedance.pipe 2>&1) [Timeout 480] diffSimulationResults("Modelica_4.1.0_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","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_4.1.0_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.823471101000905]