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.0009286/0.0009286, allocations: 91.5 kB / 21.19 MB, free: 3.375 MB / 18.57 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.0009239/0.0009239, allocations: 160.5 kB / 24.55 MB, free: 16 kB / 18.57 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 0.946/0.946, allocations: 177 MB / 204.8 MB, free: 5.602 MB / 186.7 MB " [Timeout remaining time 179] 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 1.362e-06/1.362e-06, allocations: 0 / 272.9 MB, free: 1.5 MB / 250.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 2.419e-05/2.555e-05, allocations: 5.266 kB / 272.9 MB, free: 1.496 MB / 250.7 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Batteries.Examples.ShowImpedance): time 0.002267/0.002293, allocations: 1.947 MB / 274.8 MB, free: 15.54 MB / 266.7 MB Notification: Performance of NFInst.instExpressions: time 0.001269/0.003562, allocations: 1.215 MB / 276 MB, free: 14.31 MB / 266.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 8.119e-05/0.003643, allocations: 0 / 276 MB, free: 14.31 MB / 266.7 MB Notification: Performance of NFTyping.typeComponents: time 0.000857/0.0045, allocations: 0.4982 MB / 276.5 MB, free: 13.81 MB / 266.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0001477/0.004648, allocations: 195.3 kB / 276.7 MB, free: 13.62 MB / 266.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002947/0.004943, allocations: 159.2 kB / 276.9 MB, free: 13.46 MB / 266.7 MB Notification: Performance of NFFlatten.flatten: time 0.0002626/0.005205, allocations: 231 kB / 277.1 MB, free: 13.24 MB / 266.7 MB Notification: Performance of NFFlatten.resolveConnections: time 7.895e-05/0.005284, allocations: 13.81 kB / 277.1 MB, free: 13.22 MB / 266.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001938/0.005478, allocations: 151.6 kB / 277.3 MB, free: 13.07 MB / 266.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001965/0.005675, allocations: 215.6 kB / 277.5 MB, free: 12.86 MB / 266.7 MB Notification: Performance of NFPackage.collectConstants: time 2.472e-05/0.005699, allocations: 8 kB / 277.5 MB, free: 12.86 MB / 266.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001098/0.005809, allocations: 59.89 kB / 277.6 MB, free: 12.8 MB / 266.7 MB Notification: Performance of NFScalarize.scalarize: time 0.0001416/0.005951, allocations: 267.3 kB / 277.8 MB, free: 12.54 MB / 266.7 MB Notification: Performance of NFVerifyModel.verify: time 0.0001102/0.006061, allocations: 139.5 kB / 278 MB, free: 12.4 MB / 266.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0004402/0.006501, allocations: 0.5097 MB / 278.5 MB, free: 11.89 MB / 266.7 MB Notification: Performance of FrontEnd - DAE generated: time 2.385e-06/0.006503, allocations: 0 / 278.5 MB, free: 11.89 MB / 266.7 MB Notification: Performance of FrontEnd: time 8.72e-07/0.006504, allocations: 0 / 278.5 MB, free: 11.89 MB / 266.7 MB Notification: Performance of Transformations before backend: time 6.022e-06/0.00651, allocations: 4 kB / 278.5 MB, free: 11.88 MB / 266.7 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.001521/0.008031, allocations: 1.28 MB / 279.7 MB, free: 10.56 MB / 266.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.295e-05/0.008074, allocations: 11.98 kB / 279.8 MB, free: 10.55 MB / 266.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001397/0.008214, allocations: 104.2 kB / 279.9 MB, free: 10.45 MB / 266.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0005605/0.008774, allocations: 0.5139 MB / 280.4 MB, free: 9.895 MB / 266.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.793e-05/0.008792, allocations: 4.375 kB / 280.4 MB, free: 9.891 MB / 266.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.453e-05/0.008807, allocations: 4.359 kB / 280.4 MB, free: 9.887 MB / 266.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001766/0.008983, allocations: 74.89 kB / 280.5 MB, free: 9.805 MB / 266.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 7.043e-06/0.00899, allocations: 192 / 280.5 MB, free: 9.805 MB / 266.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.378e-05/0.009004, allocations: 4.375 kB / 280.5 MB, free: 9.801 MB / 266.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.065e-06/0.009012, allocations: 7.938 kB / 280.5 MB, free: 9.793 MB / 266.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 7.142e-05/0.009084, allocations: 23.92 kB / 280.5 MB, free: 9.77 MB / 266.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0007789/0.009862, allocations: 0.7511 MB / 281.2 MB, free: 8.984 MB / 266.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0001709/0.01003, allocations: 59.05 kB / 281.3 MB, free: 8.914 MB / 266.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 4.218e-05/0.01008, allocations: 23.73 kB / 281.3 MB, free: 8.887 MB / 266.7 MB Notification: Performance of preOpt evalFunc (simulation): time 1.226e-05/0.01009, allocations: 0 / 281.3 MB, free: 8.887 MB / 266.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.421e-05/0.01011, allocations: 45.27 kB / 281.4 MB, free: 8.832 MB / 266.7 MB Notification: Performance of pre-optimization done (n=3): time 1.032e-06/0.01011, allocations: 0 / 281.4 MB, free: 8.832 MB / 266.7 MB Notification: Performance of matching and sorting (n=3): time 0.0003324/0.01045, allocations: 157.1 kB / 281.5 MB, free: 8.672 MB / 266.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.353e-05/0.01048, allocations: 51.41 kB / 281.6 MB, free: 8.609 MB / 266.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0009263/0.01141, allocations: 1.134 MB / 282.7 MB, free: 7.453 MB / 266.7 MB Notification: Performance of collectPreVariables (initialization): time 1.71e-05/0.01142, allocations: 29.7 kB / 282.7 MB, free: 7.418 MB / 266.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002896/0.01171, allocations: 0.4955 MB / 283.2 MB, free: 6.918 MB / 266.7 MB Notification: Performance of collectInitialBindings (initialization): time 2.554e-05/0.01174, allocations: 15.88 kB / 283.2 MB, free: 6.902 MB / 266.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 4.379e-05/0.01178, allocations: 19.38 kB / 283.3 MB, free: 6.875 MB / 266.7 MB Notification: Performance of setup shared object (initialization): time 0.0001225/0.0119, allocations: 488.4 kB / 283.7 MB, free: 6.391 MB / 266.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 3.923e-05/0.01194, allocations: 11.98 kB / 283.8 MB, free: 6.379 MB / 266.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 3.016e-05/0.01197, allocations: 8 kB / 283.8 MB, free: 6.371 MB / 266.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 7.561e-05/0.01205, allocations: 35.61 kB / 283.8 MB, free: 6.332 MB / 266.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.335e-06/0.01205, allocations: 0 / 283.8 MB, free: 6.332 MB / 266.7 MB Notification: Performance of matching and sorting (n=3) (initialization): time 0.0002088/0.01226, allocations: 153.1 kB / 283.9 MB, free: 6.176 MB / 266.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.599e-05/0.01228, allocations: 18.69 kB / 284 MB, free: 6.16 MB / 266.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.559e-06/0.01228, allocations: 336 / 284 MB, free: 6.16 MB / 266.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.442e-05/0.01229, allocations: 0 / 284 MB, free: 6.16 MB / 266.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 9.682e-05/0.01239, allocations: 11.98 kB / 284 MB, free: 6.148 MB / 266.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.841e-06/0.0124, allocations: 0 / 284 MB, free: 6.148 MB / 266.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 7.775e-05/0.01248, allocations: 4 kB / 284 MB, free: 6.145 MB / 266.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.187e-05/0.01249, allocations: 4 kB / 284 MB, free: 6.141 MB / 266.7 MB Notification: Model statistics after passing the back-end for initialization: * 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 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.0001016/0.01259, allocations: 156.6 kB / 284.1 MB, free: 5.977 MB / 266.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001093/0.0127, allocations: 103.3 kB / 284.2 MB, free: 5.875 MB / 266.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0002441/0.01294, allocations: 161.5 kB / 284.4 MB, free: 5.707 MB / 266.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.898e-06/0.01295, allocations: 0 / 284.4 MB, free: 5.707 MB / 266.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.649e-06/0.01295, allocations: 0 / 284.4 MB, free: 5.707 MB / 266.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.576e-06/0.01295, allocations: 0 / 284.4 MB, free: 5.707 MB / 266.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0004427/0.0134, allocations: 0.5487 MB / 284.9 MB, free: 5.125 MB / 266.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.37e-06/0.0134, allocations: 4 kB / 284.9 MB, free: 5.121 MB / 266.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 4.04e-05/0.01344, allocations: 7.984 kB / 285 MB, free: 5.113 MB / 266.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 3.827e-06/0.01345, allocations: 4 kB / 285 MB, free: 5.109 MB / 266.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.064e-05/0.01346, allocations: 3.938 kB / 285 MB, free: 5.105 MB / 266.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.004e-06/0.01346, allocations: 0 / 285 MB, free: 5.105 MB / 266.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.062e-06/0.01346, allocations: 0 / 285 MB, free: 5.105 MB / 266.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002299/0.01369, allocations: 300.1 kB / 285.3 MB, free: 4.793 MB / 266.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001556/0.01385, allocations: 139.3 kB / 285.4 MB, free: 4.656 MB / 266.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.819e-05/0.01388, allocations: 7.938 kB / 285.4 MB, free: 4.648 MB / 266.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 8.128e-05/0.01397, allocations: 4 kB / 285.4 MB, free: 4.645 MB / 266.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.374e-05/0.01401, allocations: 12.06 kB / 285.4 MB, free: 4.633 MB / 266.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.961e-06/0.01401, allocations: 4 kB / 285.4 MB, free: 4.629 MB / 266.7 MB Notification: Performance of sorting global known variables: time 0.0005962/0.01461, allocations: 0.6539 MB / 286.1 MB, free: 3.965 MB / 266.7 MB Notification: Performance of sort global known variables: time 7e-08/0.01461, allocations: 0 / 286.1 MB, free: 3.965 MB / 266.7 MB Notification: Performance of remove unused functions: time 0.0002362/0.01485, allocations: 67.94 kB / 286.1 MB, free: 3.898 MB / 266.7 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.0001689/0.01502, allocations: 103.2 kB / 286.2 MB, free: 3.789 MB / 266.7 MB Notification: Performance of simCode: created initialization part: time 0.0001315/0.01515, allocations: 39.61 kB / 286.3 MB, free: 3.746 MB / 266.7 MB Notification: Performance of simCode: created event and clocks part: time 1.363e-06/0.01515, allocations: 4 kB / 286.3 MB, free: 3.742 MB / 266.7 MB Notification: Performance of simCode: created simulation system equations: time 4.794e-05/0.0152, allocations: 19.69 kB / 286.3 MB, free: 3.719 MB / 266.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003712/0.01557, allocations: 112.9 kB / 286.4 MB, free: 3.605 MB / 266.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001305/0.01687, allocations: 1.105 MB / 287.5 MB, free: 2.465 MB / 266.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001331/0.01701, allocations: 197.1 kB / 287.7 MB, free: 2.254 MB / 266.7 MB Notification: Performance of simCode: alias equations: time 0.000385/0.01739, allocations: 426.3 kB / 288.1 MB, free: 1.832 MB / 266.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 8.685e-05/0.01748, allocations: 44.5 kB / 288.2 MB, free: 1.789 MB / 266.7 MB Notification: Performance of SimCode: time 7.71e-07/0.01748, allocations: 0 / 288.2 MB, free: 1.789 MB / 266.7 MB Notification: Performance of Templates: time 0.1168/0.1342, allocations: 8.404 MB / 296.6 MB, free: 24.06 MB / 266.7 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=240 -emit_protected -lv LOG_STATS > Modelica_trunk_Modelica.Electrical.Batteries.Examples.ShowImpedance.pipe 2>&1) [Timeout 240] 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","",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) [Timeout 660] "" [Timeout remaining time 660] Reference file matches [Calling sys.exit(0), Time elapsed: 2.829941618721932]