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.0009144/0.0009144, allocations: 82.59 kB / 21.43 MB, free: 3.07 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.001041/0.001041, allocations: 171.9 kB / 24.82 MB, free: 9.273 MB / 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 1.089/1.089, allocations: 177 MB / 205.1 MB, free: 5.469 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.413e-06/1.413e-06, allocations: 0 / 273.3 MB, free: 1.254 MB / 250.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 1.751e-05/1.893e-05, allocations: 2.312 kB / 273.3 MB, free: 1.25 MB / 250.7 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Batteries.Examples.ShowImpedance): time 0.002529/0.002547, allocations: 1.935 MB / 275.2 MB, free: 15.3 MB / 266.7 MB Notification: Performance of NFInst.instExpressions: time 0.001341/0.003888, allocations: 1.191 MB / 276.4 MB, free: 14.1 MB / 266.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 8.57e-05/0.003974, allocations: 7.938 kB / 276.4 MB, free: 14.09 MB / 266.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0008197/0.004794, allocations: 0.4905 MB / 276.9 MB, free: 13.6 MB / 266.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0001742/0.004968, allocations: 199.3 kB / 277.1 MB, free: 13.41 MB / 266.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003252/0.005293, allocations: 159.3 kB / 277.3 MB, free: 13.25 MB / 266.7 MB Notification: Performance of NFFlatten.flatten: time 0.0002822/0.005575, allocations: 238.9 kB / 277.5 MB, free: 13.02 MB / 266.7 MB Notification: Performance of NFFlatten.resolveConnections: time 7.253e-05/0.005648, allocations: 9.812 kB / 277.5 MB, free: 13 MB / 266.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002052/0.005853, allocations: 147.6 kB / 277.7 MB, free: 12.86 MB / 266.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002097/0.006063, allocations: 215.6 kB / 277.9 MB, free: 12.65 MB / 266.7 MB Notification: Performance of NFPackage.collectConstants: time 2.009e-05/0.006083, allocations: 8 kB / 277.9 MB, free: 12.64 MB / 266.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001183/0.006201, allocations: 59.89 kB / 277.9 MB, free: 12.58 MB / 266.7 MB Notification: Performance of NFScalarize.scalarize: time 0.0001348/0.006336, allocations: 271.2 kB / 278.2 MB, free: 12.32 MB / 266.7 MB Notification: Performance of NFVerifyModel.verify: time 9.925e-05/0.006435, allocations: 139.5 kB / 278.3 MB, free: 12.18 MB / 266.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0004535/0.006889, allocations: 0.5136 MB / 278.9 MB, free: 11.66 MB / 266.7 MB Notification: Performance of FrontEnd - DAE generated: time 1.653e-06/0.00689, allocations: 0 / 278.9 MB, free: 11.66 MB / 266.7 MB Notification: Performance of FrontEnd: time 9.32e-07/0.006891, allocations: 0 / 278.9 MB, free: 11.66 MB / 266.7 MB Notification: Performance of Transformations before backend: time 6.031e-06/0.006897, allocations: 0 / 278.9 MB, free: 11.66 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.001475/0.008372, allocations: 1.257 MB / 280.1 MB, free: 10.37 MB / 266.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.332e-05/0.008406, allocations: 15.98 kB / 280.1 MB, free: 10.35 MB / 266.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001224/0.008528, allocations: 96.31 kB / 280.2 MB, free: 10.26 MB / 266.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.00054/0.009068, allocations: 486.2 kB / 280.7 MB, free: 9.742 MB / 266.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.67e-05/0.009085, allocations: 384 / 280.7 MB, free: 9.742 MB / 266.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.161e-05/0.009096, allocations: 4.312 kB / 280.7 MB, free: 9.738 MB / 266.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001367/0.009233, allocations: 78.91 kB / 280.8 MB, free: 9.652 MB / 266.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 7.023e-06/0.00924, allocations: 192 / 280.8 MB, free: 9.652 MB / 266.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 9.528e-06/0.00925, allocations: 384 / 280.8 MB, free: 9.652 MB / 266.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.123e-06/0.009257, allocations: 3.938 kB / 280.8 MB, free: 9.648 MB / 266.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 5.908e-05/0.009316, allocations: 19.98 kB / 280.8 MB, free: 9.629 MB / 266.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0005798/0.009896, allocations: 0.5398 MB / 281.3 MB, free: 9.062 MB / 266.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.000131/0.01003, allocations: 54.98 kB / 281.4 MB, free: 8.996 MB / 266.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 3.115e-05/0.01006, allocations: 15.75 kB / 281.4 MB, free: 8.977 MB / 266.7 MB Notification: Performance of preOpt evalFunc (simulation): time 1.685e-05/0.01007, allocations: 4 kB / 281.4 MB, free: 8.973 MB / 266.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.133e-05/0.0101, allocations: 37.38 kB / 281.5 MB, free: 8.926 MB / 266.7 MB Notification: Performance of pre-optimization done (n=3): time 1.222e-06/0.0101, allocations: 4 kB / 281.5 MB, free: 8.922 MB / 266.7 MB Notification: Performance of matching and sorting (n=3): time 0.0002844/0.01038, allocations: 157 kB / 281.6 MB, free: 8.762 MB / 266.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 2.877e-05/0.01041, allocations: 55.34 kB / 281.7 MB, free: 8.695 MB / 266.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0007913/0.0112, allocations: 1.095 MB / 282.8 MB, free: 7.578 MB / 266.7 MB Notification: Performance of collectPreVariables (initialization): time 1.684e-05/0.01122, allocations: 29.7 kB / 282.8 MB, free: 7.543 MB / 266.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002933/0.01151, allocations: 0.5149 MB / 283.3 MB, free: 7.023 MB / 266.7 MB Notification: Performance of collectInitialBindings (initialization): time 2.048e-05/0.01153, allocations: 11.88 kB / 283.3 MB, free: 7.012 MB / 266.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.904e-05/0.01157, allocations: 27.36 kB / 283.3 MB, free: 6.977 MB / 266.7 MB Notification: Performance of setup shared object (initialization): time 0.0001003/0.01167, allocations: 484.4 kB / 283.8 MB, free: 6.496 MB / 266.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 2.629e-05/0.0117, allocations: 8 kB / 283.8 MB, free: 6.488 MB / 266.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 2.604e-05/0.01172, allocations: 16.16 kB / 283.8 MB, free: 6.473 MB / 266.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 5.325e-05/0.01178, allocations: 23.69 kB / 283.9 MB, free: 6.445 MB / 266.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.663e-06/0.01178, allocations: 0 / 283.9 MB, free: 6.445 MB / 266.7 MB Notification: Performance of matching and sorting (n=3) (initialization): time 0.000191/0.01197, allocations: 149 kB / 284 MB, free: 6.293 MB / 266.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.238e-05/0.01198, allocations: 7.125 kB / 284 MB, free: 6.289 MB / 266.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.87e-06/0.01199, allocations: 3.938 kB / 284 MB, free: 6.285 MB / 266.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.59e-05/0.012, allocations: 7.984 kB / 284 MB, free: 6.277 MB / 266.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 8.33e-05/0.01209, allocations: 8 kB / 284 MB, free: 6.27 MB / 266.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 2.234e-06/0.01209, allocations: 0 / 284 MB, free: 6.27 MB / 266.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 8.053e-05/0.01217, allocations: 11.98 kB / 284 MB, free: 6.258 MB / 266.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.696e-06/0.01218, allocations: 4 kB / 284 MB, free: 6.254 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 9.632e-05/0.01227, allocations: 156.6 kB / 284.2 MB, free: 6.09 MB / 266.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 9.95e-05/0.01237, allocations: 91.42 kB / 284.3 MB, free: 6 MB / 266.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0002117/0.01259, allocations: 161.5 kB / 284.4 MB, free: 5.832 MB / 266.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.417e-06/0.01259, allocations: 4 kB / 284.4 MB, free: 5.828 MB / 266.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.453e-06/0.01259, allocations: 0 / 284.4 MB, free: 5.828 MB / 266.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.859e-06/0.0126, allocations: 0 / 284.4 MB, free: 5.828 MB / 266.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0003234/0.01292, allocations: 369.7 kB / 284.8 MB, free: 5.441 MB / 266.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.609e-06/0.01292, allocations: 0 / 284.8 MB, free: 5.441 MB / 266.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 3.467e-05/0.01296, allocations: 15.86 kB / 284.8 MB, free: 5.426 MB / 266.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 3.166e-06/0.01296, allocations: 4 kB / 284.8 MB, free: 5.422 MB / 266.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.863e-06/0.01297, allocations: 0 / 284.8 MB, free: 5.422 MB / 266.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.863e-06/0.01297, allocations: 0 / 284.8 MB, free: 5.422 MB / 266.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.194e-06/0.01297, allocations: 3.938 kB / 284.8 MB, free: 5.418 MB / 266.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.000195/0.01317, allocations: 296.2 kB / 285.1 MB, free: 5.109 MB / 266.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001269/0.01329, allocations: 115.3 kB / 285.2 MB, free: 4.996 MB / 266.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.279e-05/0.01333, allocations: 4 kB / 285.2 MB, free: 4.992 MB / 266.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 7.935e-05/0.01341, allocations: 7.984 kB / 285.2 MB, free: 4.984 MB / 266.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.489e-05/0.01344, allocations: 7.938 kB / 285.3 MB, free: 4.977 MB / 266.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.692e-06/0.01345, allocations: 3.984 kB / 285.3 MB, free: 4.973 MB / 266.7 MB Notification: Performance of sorting global known variables: time 0.0004489/0.0139, allocations: 0.6069 MB / 285.9 MB, free: 4.355 MB / 266.7 MB Notification: Performance of sort global known variables: time 6e-08/0.0139, allocations: 0 / 285.9 MB, free: 4.355 MB / 266.7 MB Notification: Performance of remove unused functions: time 0.0002308/0.01413, allocations: 63.94 kB / 285.9 MB, free: 4.293 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.0001597/0.01429, allocations: 115.2 kB / 286 MB, free: 4.172 MB / 266.7 MB Notification: Performance of simCode: created initialization part: time 9.695e-05/0.01438, allocations: 31.66 kB / 286.1 MB, free: 4.137 MB / 266.7 MB Notification: Performance of simCode: created event and clocks part: time 1.583e-06/0.01439, allocations: 0 / 286.1 MB, free: 4.137 MB / 266.7 MB Notification: Performance of simCode: created simulation system equations: time 4.191e-05/0.01443, allocations: 19.69 kB / 286.1 MB, free: 4.113 MB / 266.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003578/0.01479, allocations: 106.2 kB / 286.2 MB, free: 4.012 MB / 266.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001193/0.01598, allocations: 1.105 MB / 287.3 MB, free: 2.871 MB / 266.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001275/0.01611, allocations: 197.1 kB / 287.5 MB, free: 2.66 MB / 266.7 MB Notification: Performance of simCode: alias equations: time 0.0003006/0.01641, allocations: 378.4 kB / 287.9 MB, free: 2.285 MB / 266.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001982/0.0166, allocations: 166.2 kB / 288 MB, free: 2.121 MB / 266.7 MB Notification: Performance of SimCode: time 5.92e-07/0.0166, allocations: 0 / 288 MB, free: 2.121 MB / 266.7 MB Notification: Performance of Templates: time 0.165/0.1816, allocations: 8.389 MB / 296.4 MB, free: 24.32 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.8912762119434774]