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.001787/0.001787, allocations: 119.1 kB / 20.45 MB, free: 1.176 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.002322/0.002322, allocations: 207.5 kB / 23.72 MB, free: 4.391 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.513/1.513, allocations: 230.5 MB / 257.4 MB, free: 7.77 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.002113/0.002113, allocations: 67.91 kB / 378.2 MB, free: 2.332 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2724/0.2745, allocations: 53.4 MB / 431.6 MB, free: 6.543 MB / 334.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Batteries.Examples.ShowImpedance): time 0.003452/0.278, allocations: 1.855 MB / 433.5 MB, free: 4.684 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.00186/0.2798, allocations: 1.148 MB / 434.6 MB, free: 3.531 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 9.068e-05/0.2799, allocations: 0 / 434.6 MB, free: 3.531 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.00117/0.2811, allocations: 0.4907 MB / 435.1 MB, free: 3.039 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0002479/0.2813, allocations: 191.4 kB / 435.3 MB, free: 2.852 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0004558/0.2818, allocations: 159.4 kB / 435.4 MB, free: 2.695 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.0003651/0.2821, allocations: 223.1 kB / 435.7 MB, free: 2.477 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001017/0.2822, allocations: 13.81 kB / 435.7 MB, free: 2.461 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002698/0.2825, allocations: 131.5 kB / 435.8 MB, free: 2.332 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0003131/0.2828, allocations: 231.4 kB / 436 MB, free: 2.105 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 2.741e-05/0.2829, allocations: 4 kB / 436 MB, free: 2.102 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001578/0.283, allocations: 63.91 kB / 436.1 MB, free: 2.039 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0002216/0.2832, allocations: 255.3 kB / 436.4 MB, free: 1.789 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0002127/0.2834, allocations: 198.4 kB / 436.5 MB, free: 1.594 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0009321/0.2844, allocations: 0.7842 MB / 437.3 MB, free: 0.8086 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 6.512e-06/0.2844, allocations: 3.984 kB / 437.3 MB, free: 0.8047 MB / 334.1 MB Notification: Performance of FrontEnd: time 1.322e-06/0.2844, allocations: 0 / 437.3 MB, free: 0.8047 MB / 334.1 MB Notification: Performance of Transformations before backend: time 1.004e-05/0.2844, allocations: 4 kB / 437.3 MB, free: 0.8008 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.002873/0.2873, allocations: 1.141 MB / 438.5 MB, free: 15.62 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.253e-05/0.2873, allocations: 11.98 kB / 438.5 MB, free: 15.61 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001941/0.2875, allocations: 96.31 kB / 438.6 MB, free: 15.52 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001166/0.2887, allocations: 0.6954 MB / 439.3 MB, free: 14.79 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.209e-05/0.2887, allocations: 8.312 kB / 439.3 MB, free: 14.78 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.313e-05/0.2887, allocations: 4.375 kB / 439.3 MB, free: 14.77 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002913/0.289, allocations: 113.9 kB / 439.4 MB, free: 14.66 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.182e-05/0.289, allocations: 4 kB / 439.4 MB, free: 14.65 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.534e-05/0.289, allocations: 4 kB / 439.4 MB, free: 14.65 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.69e-06/0.289, allocations: 0 / 439.4 MB, free: 14.65 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0003515/0.2894, allocations: 139.9 kB / 439.5 MB, free: 14.51 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001116/0.2905, allocations: 0.6926 MB / 440.2 MB, free: 13.79 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002125/0.2907, allocations: 90.39 kB / 440.3 MB, free: 13.69 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001731/0.2909, allocations: 68.91 kB / 440.4 MB, free: 13.62 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.026e-05/0.2909, allocations: 0 / 440.4 MB, free: 13.62 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.029e-05/0.2909, allocations: 42.56 kB / 440.4 MB, free: 13.57 MB / 350.1 MB Notification: Performance of pre-optimization done (n=3): time 7.72e-07/0.2909, allocations: 0 / 440.4 MB, free: 13.57 MB / 350.1 MB Notification: Performance of matching and sorting (n=3): time 0.0008423/0.2918, allocations: 329.1 kB / 440.8 MB, free: 13.24 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.633e-05/0.2918, allocations: 55.34 kB / 440.8 MB, free: 13.18 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001912/0.2937, allocations: 1.405 MB / 442.2 MB, free: 11.75 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 4.6e-05/0.2938, allocations: 33.64 kB / 442.3 MB, free: 11.71 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0004455/0.2942, allocations: 384.4 kB / 442.6 MB, free: 11.33 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 3.727e-05/0.2943, allocations: 15.88 kB / 442.6 MB, free: 11.32 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 7.618e-05/0.2943, allocations: 25.66 kB / 442.7 MB, free: 11.29 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 0.0001843/0.2945, allocations: 310 kB / 443 MB, free: 10.98 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001869/0.2947, allocations: 63.94 kB / 443 MB, free: 10.91 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002064/0.2949, allocations: 90.5 kB / 443.1 MB, free: 10.82 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003739/0.2953, allocations: 158.4 kB / 443.3 MB, free: 10.65 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.955e-06/0.2953, allocations: 4 kB / 443.3 MB, free: 10.65 MB / 350.1 MB Notification: Performance of matching and sorting (n=3) (initialization): time 0.0006478/0.2959, allocations: 276.8 kB / 443.5 MB, free: 10.37 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.119e-05/0.296, allocations: 6.5 kB / 443.6 MB, free: 10.37 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.698e-06/0.296, allocations: 4 kB / 443.6 MB, free: 10.36 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.518e-05/0.296, allocations: 0 / 443.6 MB, free: 10.36 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001816/0.2962, allocations: 11.98 kB / 443.6 MB, free: 10.35 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 8.005e-06/0.2962, allocations: 4 kB / 443.6 MB, free: 10.35 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001868/0.2964, allocations: 12.08 kB / 443.6 MB, free: 10.34 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.938e-05/0.2964, allocations: 4 kB / 443.6 MB, free: 10.33 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.0004079/0.2968, allocations: 337.6 kB / 443.9 MB, free: 9.992 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001794/0.297, allocations: 91.42 kB / 444 MB, free: 9.902 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.000635/0.2976, allocations: 277.4 kB / 444.3 MB, free: 9.621 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 9.207e-06/0.2976, allocations: 4 kB / 444.3 MB, free: 9.617 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.861e-06/0.2976, allocations: 0 / 444.3 MB, free: 9.617 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.336e-06/0.2976, allocations: 0 / 444.3 MB, free: 9.617 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0005301/0.2982, allocations: 410 kB / 444.7 MB, free: 9.188 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.534e-06/0.2982, allocations: 3.938 kB / 444.7 MB, free: 9.184 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 7.669e-05/0.2983, allocations: 11.98 kB / 444.7 MB, free: 9.172 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.816e-06/0.2983, allocations: 144 / 444.7 MB, free: 9.172 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.266e-05/0.2983, allocations: 4 kB / 444.7 MB, free: 9.168 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.263e-06/0.2983, allocations: 0 / 444.7 MB, free: 9.168 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.052e-06/0.2983, allocations: 0 / 444.7 MB, free: 9.168 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0005196/0.2988, allocations: 323.3 kB / 445 MB, free: 8.836 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0004142/0.2992, allocations: 163.3 kB / 445.2 MB, free: 8.676 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 7.024e-05/0.2993, allocations: 4 kB / 445.2 MB, free: 8.672 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001757/0.2994, allocations: 4 kB / 445.2 MB, free: 8.668 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.718e-05/0.2995, allocations: 11.98 kB / 445.2 MB, free: 8.656 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.204e-06/0.2995, allocations: 0 / 445.2 MB, free: 8.656 MB / 350.1 MB Notification: Performance of sorting global known variables: time 0.001311/0.3008, allocations: 1.017 MB / 446.2 MB, free: 7.629 MB / 350.1 MB Notification: Performance of sort global known variables: time 9e-08/0.3008, allocations: 0 / 446.2 MB, free: 7.629 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.0003375/0.3012, allocations: 63.94 kB / 446.3 MB, free: 7.566 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.0002192/0.3014, allocations: 111.2 kB / 446.4 MB, free: 7.445 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.0003952/0.3018, allocations: 135.8 kB / 446.5 MB, free: 7.312 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 2.345e-06/0.3018, allocations: 0 / 446.5 MB, free: 7.312 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 0.00016/0.3019, allocations: 51.91 kB / 446.6 MB, free: 7.262 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005828/0.3025, allocations: 100 kB / 446.7 MB, free: 7.164 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002216/0.3047, allocations: 1.38 MB / 448 MB, free: 5.758 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004977/0.3052, allocations: 412 kB / 448.4 MB, free: 5.332 MB / 350.1 MB Notification: Performance of simCode: alias equations: time 0.000661/0.3059, allocations: 478.2 kB / 448.9 MB, free: 4.859 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001218/0.306, allocations: 39.44 kB / 449 MB, free: 4.82 MB / 350.1 MB Notification: Performance of SimCode: time 8.71e-07/0.306, allocations: 0 / 449 MB, free: 4.82 MB / 350.1 MB Notification: Performance of Templates: time 0.01759/0.3236, allocations: 8.571 MB / 457.5 MB, free: 12.32 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/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_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: 4.73925855755806]