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.00154/0.00154, allocations: 107.6 kB / 21.18 MB, free: 0.6758 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.001706/0.001706, allocations: 208.8 kB / 24.48 MB, free: 3.977 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.439/1.439, allocations: 230.6 MB / 258.3 MB, free: 7.824 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.001489/0.001489, allocations: 47.92 kB / 378.9 MB, free: 2.52 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2642/0.2657, allocations: 53.37 MB / 432.3 MB, free: 6.781 MB / 334.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Batteries.Examples.ShowImpedance): time 0.003262/0.269, allocations: 1.87 MB / 434.2 MB, free: 4.906 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.001835/0.2708, allocations: 1.136 MB / 435.3 MB, free: 3.766 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 8.642e-05/0.2709, allocations: 3.938 kB / 435.3 MB, free: 3.762 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.001034/0.2719, allocations: 498.5 kB / 435.8 MB, free: 3.273 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0002426/0.2722, allocations: 195.4 kB / 436 MB, free: 3.082 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0004333/0.2726, allocations: 155.4 kB / 436.1 MB, free: 2.93 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.0003428/0.2729, allocations: 227.1 kB / 436.4 MB, free: 2.707 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 9.204e-05/0.273, allocations: 13.75 kB / 436.4 MB, free: 2.691 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002326/0.2733, allocations: 131.5 kB / 436.5 MB, free: 2.562 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002934/0.2735, allocations: 231.4 kB / 436.7 MB, free: 2.336 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 2.394e-05/0.2736, allocations: 4 kB / 436.7 MB, free: 2.332 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.000145/0.2737, allocations: 63.97 kB / 436.8 MB, free: 2.27 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0002206/0.2739, allocations: 263.2 kB / 437.1 MB, free: 2.012 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0002023/0.2741, allocations: 198.4 kB / 437.3 MB, free: 1.816 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0008979/0.275, allocations: 0.7853 MB / 438 MB, free: 1.031 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.017e-06/0.275, allocations: 3.938 kB / 438 MB, free: 1.027 MB / 334.1 MB Notification: Performance of FrontEnd: time 1.343e-06/0.275, allocations: 0 / 438 MB, free: 1.027 MB / 334.1 MB Notification: Performance of Transformations before backend: time 1.062e-05/0.2751, allocations: 4 kB / 438 MB, free: 1.023 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.002876/0.2779, allocations: 1.137 MB / 439.2 MB, free: 15.85 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.145e-05/0.278, allocations: 8.031 kB / 439.2 MB, free: 15.84 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001961/0.2782, allocations: 96.31 kB / 439.3 MB, free: 15.75 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001117/0.2793, allocations: 0.6954 MB / 440 MB, free: 15.02 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.383e-05/0.2793, allocations: 4.375 kB / 440 MB, free: 15.01 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.613e-05/0.2793, allocations: 4.375 kB / 440 MB, free: 15.01 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002939/0.2796, allocations: 113.9 kB / 440.1 MB, free: 14.89 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 8.516e-06/0.2796, allocations: 0 / 440.1 MB, free: 14.89 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.727e-05/0.2796, allocations: 8 kB / 440.1 MB, free: 14.88 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.34e-06/0.2796, allocations: 0 / 440.1 MB, free: 14.88 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0003618/0.28, allocations: 147.8 kB / 440.3 MB, free: 14.74 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001112/0.2811, allocations: 0.6887 MB / 440.9 MB, free: 14.02 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002173/0.2813, allocations: 86.45 kB / 441 MB, free: 13.93 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.000182/0.2815, allocations: 80.81 kB / 441.1 MB, free: 13.84 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.292e-05/0.2815, allocations: 0 / 441.1 MB, free: 13.84 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.685e-05/0.2816, allocations: 38.56 kB / 441.1 MB, free: 13.8 MB / 350.1 MB Notification: Performance of pre-optimization done (n=3): time 7.81e-07/0.2816, allocations: 0 / 441.1 MB, free: 13.8 MB / 350.1 MB Notification: Performance of matching and sorting (n=3): time 0.0008285/0.2824, allocations: 332.8 kB / 441.5 MB, free: 13.46 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.73e-05/0.2824, allocations: 51.41 kB / 441.5 MB, free: 13.4 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001687/0.2841, allocations: 1.409 MB / 442.9 MB, free: 11.97 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 2.528e-05/0.2841, allocations: 25.7 kB / 443 MB, free: 11.94 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0003687/0.2845, allocations: 388.4 kB / 443.3 MB, free: 11.56 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 3.526e-05/0.2846, allocations: 11.89 kB / 443.3 MB, free: 11.55 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 6.375e-05/0.2846, allocations: 21.72 kB / 443.4 MB, free: 11.52 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 0.0001504/0.2848, allocations: 314 kB / 443.7 MB, free: 11.21 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001737/0.2849, allocations: 59.95 kB / 443.7 MB, free: 11.15 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001904/0.2851, allocations: 86.52 kB / 443.8 MB, free: 11.05 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003494/0.2855, allocations: 158.4 kB / 444 MB, free: 10.89 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.314e-06/0.2855, allocations: 4 kB / 444 MB, free: 10.89 MB / 350.1 MB Notification: Performance of matching and sorting (n=3) (initialization): time 0.0006137/0.2861, allocations: 276.8 kB / 444.2 MB, free: 10.61 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.674e-05/0.2861, allocations: 4 kB / 444.2 MB, free: 10.61 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.514e-06/0.2861, allocations: 4 kB / 444.3 MB, free: 10.6 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.973e-05/0.2861, allocations: 0 / 444.3 MB, free: 10.6 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002076/0.2863, allocations: 11.98 kB / 444.3 MB, free: 10.59 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.874e-06/0.2864, allocations: 4 kB / 444.3 MB, free: 10.59 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002034/0.2866, allocations: 12.08 kB / 444.3 MB, free: 10.57 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.02e-05/0.2866, allocations: 11.94 kB / 444.3 MB, free: 10.56 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.0003502/0.2869, allocations: 337.6 kB / 444.6 MB, free: 10.22 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001848/0.2871, allocations: 91.42 kB / 444.7 MB, free: 10.13 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0006085/0.2877, allocations: 277.7 kB / 445 MB, free: 9.852 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 8.125e-06/0.2877, allocations: 4 kB / 445 MB, free: 9.848 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.558e-06/0.2877, allocations: 0 / 445 MB, free: 9.848 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.386e-06/0.2877, allocations: 0 / 445 MB, free: 9.848 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0005047/0.2882, allocations: 414 kB / 445.4 MB, free: 9.414 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.702e-06/0.2883, allocations: 3.938 kB / 445.4 MB, free: 9.41 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 8.051e-05/0.2883, allocations: 11.98 kB / 445.4 MB, free: 9.398 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.875e-06/0.2883, allocations: 0 / 445.4 MB, free: 9.398 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.193e-05/0.2883, allocations: 0 / 445.4 MB, free: 9.398 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.857e-06/0.2884, allocations: 7.938 kB / 445.4 MB, free: 9.391 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.703e-06/0.2884, allocations: 0 / 445.4 MB, free: 9.391 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0005131/0.2889, allocations: 319.3 kB / 445.7 MB, free: 9.062 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.000411/0.2893, allocations: 159.3 kB / 445.9 MB, free: 8.906 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 6.584e-05/0.2893, allocations: 0 / 445.9 MB, free: 8.906 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001941/0.2895, allocations: 11.92 kB / 445.9 MB, free: 8.895 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.603e-05/0.2896, allocations: 8 kB / 445.9 MB, free: 8.887 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.044e-05/0.2896, allocations: 7.922 kB / 445.9 MB, free: 8.879 MB / 350.1 MB Notification: Performance of sorting global known variables: time 0.001278/0.2909, allocations: 1.013 MB / 446.9 MB, free: 7.855 MB / 350.1 MB Notification: Performance of sort global known variables: time 1e-07/0.2909, allocations: 4 kB / 446.9 MB, free: 7.852 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.0003449/0.2912, allocations: 63.94 kB / 447 MB, free: 7.789 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.0002018/0.2914, allocations: 103.2 kB / 447.1 MB, free: 7.676 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.0004137/0.2918, allocations: 132 kB / 447.2 MB, free: 7.547 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 2.084e-06/0.2918, allocations: 0 / 447.2 MB, free: 7.547 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0001653/0.292, allocations: 55.95 kB / 447.3 MB, free: 7.492 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005943/0.2926, allocations: 94.45 kB / 447.4 MB, free: 7.398 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002025/0.2946, allocations: 1.452 MB / 448.8 MB, free: 5.914 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004414/0.2951, allocations: 396.1 kB / 449.2 MB, free: 5.504 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001316/0.2952, allocations: 35.44 kB / 449.2 MB, free: 5.469 MB / 350.1 MB Notification: Performance of SimCode: time 7.12e-07/0.2952, allocations: 0 / 449.2 MB, free: 5.469 MB / 350.1 MB Notification: Performance of Templates: time 0.01558/0.3108, allocations: 9.45 MB / 458.7 MB, free: 12.04 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/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_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.867695836001076]