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.001742/0.001742, allocations: 112.8 kB / 19.17 MB, free: 3.871 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.002213/0.002213, allocations: 210.5 kB / 22.13 MB, free: 0.918 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.453/1.453, allocations: 230.2 MB / 255.1 MB, free: 15.27 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.00189/0.00189, allocations: 59.89 kB / 374.5 MB, free: 9.93 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.106/0.1079, allocations: 53.33 MB / 427.8 MB, free: 4.504 MB / 350.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Batteries.Examples.ShowImpedance): time 0.003537/0.1115, allocations: 1.916 MB / 429.7 MB, free: 2.582 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.00188/0.1133, allocations: 1.265 MB / 431 MB, free: 1.309 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 7.992e-05/0.1134, allocations: 0 / 431 MB, free: 1.309 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.001017/0.1144, allocations: 0.5063 MB / 431.5 MB, free: 0.8008 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0002163/0.1147, allocations: 191.4 kB / 431.7 MB, free: 0.6133 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0004091/0.1151, allocations: 171.3 kB / 431.9 MB, free: 456 kB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.0003259/0.1154, allocations: 231.1 kB / 432.1 MB, free: 224 kB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 8.666e-05/0.1155, allocations: 17.67 kB / 432.1 MB, free: 204 kB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002227/0.1157, allocations: 119.6 kB / 432.2 MB, free: 84 kB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.22/0.3357, allocations: 225.9 kB / 432.4 MB, free: 8.422 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 5.897e-05/0.3358, allocations: 7.906 kB / 432.5 MB, free: 8.422 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0002326/0.336, allocations: 63.62 kB / 432.5 MB, free: 8.422 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0002548/0.3363, allocations: 260.8 kB / 432.8 MB, free: 8.418 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0002412/0.3365, allocations: 276.5 kB / 433 MB, free: 8.293 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0008312/0.3373, allocations: 0.7848 MB / 433.8 MB, free: 8.141 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.098e-06/0.3373, allocations: 0 / 433.8 MB, free: 8.141 MB / 350.1 MB Notification: Performance of FrontEnd: time 2.004e-06/0.3374, allocations: 0.9375 kB / 433.8 MB, free: 8.141 MB / 350.1 MB Notification: Performance of Transformations before backend: time 1.051e-05/0.3374, allocations: 0.5312 kB / 433.8 MB, free: 8.141 MB / 350.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.002343/0.3397, allocations: 1.204 MB / 435 MB, free: 7.375 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.053e-05/0.3397, allocations: 8.938 kB / 435 MB, free: 7.375 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001828/0.3399, allocations: 98.12 kB / 435.1 MB, free: 7.324 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0008941/0.3408, allocations: 0.7574 MB / 435.9 MB, free: 6.965 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.564e-05/0.3408, allocations: 1.562 kB / 435.9 MB, free: 6.965 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.379e-05/0.3409, allocations: 4.266 kB / 435.9 MB, free: 6.965 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.00027/0.3411, allocations: 112.7 kB / 436 MB, free: 6.934 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.119e-05/0.3411, allocations: 6.188 kB / 436 MB, free: 6.93 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.616e-05/0.3412, allocations: 3.406 kB / 436 MB, free: 6.93 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.117e-06/0.3412, allocations: 0.875 kB / 436 MB, free: 6.93 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0003416/0.3415, allocations: 145.5 kB / 436.2 MB, free: 6.93 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001044/0.3425, allocations: 0.8051 MB / 437 MB, free: 6.668 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002141/0.3428, allocations: 93.33 kB / 437.1 MB, free: 6.637 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001737/0.3429, allocations: 76.73 kB / 437.1 MB, free: 6.629 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.088e-05/0.343, allocations: 0 / 437.1 MB, free: 6.629 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.033e-05/0.343, allocations: 36.14 kB / 437.2 MB, free: 6.59 MB / 350.1 MB Notification: Performance of pre-optimization done (n=3): time 9.12e-07/0.343, allocations: 0 / 437.2 MB, free: 6.59 MB / 350.1 MB Notification: Performance of matching and sorting (n=3): time 0.0008468/0.3438, allocations: 328.2 kB / 437.5 MB, free: 6.512 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 2.604e-05/0.3439, allocations: 52.72 kB / 437.5 MB, free: 6.449 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001865/0.3457, allocations: 1.407 MB / 438.9 MB, free: 6.305 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 1.961e-05/0.3457, allocations: 29.14 kB / 439 MB, free: 6.273 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002719/0.346, allocations: 386.7 kB / 439.4 MB, free: 6.188 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 2.616e-05/0.346, allocations: 7.766 kB / 439.4 MB, free: 6.184 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 6.776e-05/0.3461, allocations: 20.16 kB / 439.4 MB, free: 6.168 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 5.751e-05/0.3462, allocations: 314.2 kB / 439.7 MB, free: 5.863 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001768/0.3463, allocations: 65.66 kB / 439.7 MB, free: 5.855 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001822/0.3465, allocations: 88 kB / 439.8 MB, free: 5.809 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003599/0.3469, allocations: 151.9 kB / 440 MB, free: 5.742 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.731e-06/0.3469, allocations: 5.672 kB / 440 MB, free: 5.738 MB / 350.1 MB Notification: Performance of matching and sorting (n=3) (initialization): time 0.0006165/0.3475, allocations: 275.1 kB / 440.3 MB, free: 5.613 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.667e-05/0.3475, allocations: 5.562 kB / 440.3 MB, free: 5.613 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.889e-06/0.3475, allocations: 0 / 440.3 MB, free: 5.613 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.612e-05/0.3475, allocations: 1.094 kB / 440.3 MB, free: 5.613 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001853/0.3477, allocations: 20.8 kB / 440.3 MB, free: 5.609 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 4.559e-06/0.3477, allocations: 1.031 kB / 440.3 MB, free: 5.609 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002142/0.3479, allocations: 16.84 kB / 440.3 MB, free: 5.602 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.834e-05/0.348, allocations: 5.344 kB / 440.3 MB, free: 5.602 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.0003467/0.3483, allocations: 343.9 kB / 440.6 MB, free: 5.426 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001746/0.3485, allocations: 91.67 kB / 440.7 MB, free: 5.379 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0006203/0.3491, allocations: 276.1 kB / 441 MB, free: 5.258 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.662e-06/0.3491, allocations: 1.469 kB / 441 MB, free: 5.258 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.558e-06/0.3491, allocations: 1.25 kB / 441 MB, free: 5.258 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.947e-06/0.3491, allocations: 0.75 kB / 441 MB, free: 5.258 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0006247/0.3497, allocations: 0.5122 MB / 441.5 MB, free: 4.965 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.218e-06/0.3497, allocations: 0 / 441.5 MB, free: 4.965 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 8.236e-05/0.3498, allocations: 16.52 kB / 441.5 MB, free: 4.961 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.705e-06/0.3498, allocations: 0.75 kB / 441.5 MB, free: 4.961 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.352e-05/0.3498, allocations: 2.656 kB / 441.5 MB, free: 4.961 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.512e-06/0.3498, allocations: 3.938 kB / 441.5 MB, free: 4.957 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.713e-06/0.3498, allocations: 0 / 441.5 MB, free: 4.957 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.000524/0.3504, allocations: 327 kB / 441.9 MB, free: 4.738 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0003268/0.3507, allocations: 226.8 kB / 442.1 MB, free: 4.578 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 6.754e-05/0.3508, allocations: 7.797 kB / 442.1 MB, free: 4.574 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002024/0.351, allocations: 7.594 kB / 442.1 MB, free: 4.574 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.023e-05/0.351, allocations: 7.578 kB / 442.1 MB, free: 4.57 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 9.848e-06/0.351, allocations: 1.891 kB / 442.1 MB, free: 4.57 MB / 350.1 MB Notification: Performance of sorting global known variables: time 0.001288/0.3523, allocations: 1.014 MB / 443.1 MB, free: 4.234 MB / 350.1 MB Notification: Performance of sort global known variables: time 9.1e-08/0.3523, allocations: 0 / 443.1 MB, free: 4.234 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.0003854/0.3527, allocations: 61.73 kB / 443.2 MB, free: 4.234 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.0002016/0.3529, allocations: 119 kB / 443.3 MB, free: 4.133 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.0004089/0.3533, allocations: 123.7 kB / 443.4 MB, free: 4.098 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 1.763e-06/0.3533, allocations: 0 / 443.4 MB, free: 4.098 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0001742/0.3535, allocations: 53.16 kB / 443.5 MB, free: 4.082 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0006199/0.3541, allocations: 110.4 kB / 443.6 MB, free: 4.027 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001957/0.3561, allocations: 1.432 MB / 445 MB, free: 3.371 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005447/0.3566, allocations: 0.9965 MB / 446 MB, free: 2.621 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001338/0.3568, allocations: 38.98 kB / 446 MB, free: 2.613 MB / 350.1 MB Notification: Performance of SimCode: time 5.21e-07/0.3568, allocations: 0 / 446 MB, free: 2.613 MB / 350.1 MB Notification: Performance of Templates: time 0.0178/0.3745, allocations: 9.178 MB / 455.2 MB, free: 15.77 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_2/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.1.0/Modelica/Electrical/Batteries/Examples/ShowImpedance/ShowImpedance.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork_2/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: 7.876372482860461]