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.0009156/0.0009156, allocations: 79.69 kB / 21.7 MB, free: 2.852 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.0009316/0.0009316, allocations: 157 kB / 24.99 MB, free: 8.801 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.079/1.079, allocations: 177 MB / 205.2 MB, free: 5.598 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.303e-06/1.303e-06, allocations: 0 / 273 MB, free: 1.777 MB / 250.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 2.091e-05/2.221e-05, allocations: 2.312 kB / 273 MB, free: 1.773 MB / 250.7 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Batteries.Examples.ShowImpedance): time 0.002379/0.002401, allocations: 1.946 MB / 274.9 MB, free: 15.82 MB / 266.7 MB Notification: Performance of NFInst.instExpressions: time 0.0014/0.003801, allocations: 1.211 MB / 276.1 MB, free: 14.6 MB / 266.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 8.31e-05/0.003884, allocations: 0 / 276.1 MB, free: 14.6 MB / 266.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0008471/0.004731, allocations: 0.4982 MB / 276.6 MB, free: 14.1 MB / 266.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0001709/0.004902, allocations: 199.3 kB / 276.8 MB, free: 13.91 MB / 266.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003366/0.005239, allocations: 155.2 kB / 277 MB, free: 13.75 MB / 266.7 MB Notification: Performance of NFFlatten.flatten: time 0.0003229/0.005562, allocations: 231 kB / 277.2 MB, free: 13.53 MB / 266.7 MB Notification: Performance of NFFlatten.resolveConnections: time 7.95e-05/0.005641, allocations: 13.81 kB / 277.2 MB, free: 13.51 MB / 266.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002224/0.005864, allocations: 147.6 kB / 277.4 MB, free: 13.37 MB / 266.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002015/0.006065, allocations: 219.6 kB / 277.6 MB, free: 13.15 MB / 266.7 MB Notification: Performance of NFPackage.collectConstants: time 2.175e-05/0.006087, allocations: 12 kB / 277.6 MB, free: 13.14 MB / 266.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001375/0.006225, allocations: 59.89 kB / 277.6 MB, free: 13.08 MB / 266.7 MB Notification: Performance of NFScalarize.scalarize: time 0.0001443/0.006369, allocations: 267.3 kB / 277.9 MB, free: 12.82 MB / 266.7 MB Notification: Performance of NFVerifyModel.verify: time 0.0001058/0.006475, allocations: 135.5 kB / 278 MB, free: 12.69 MB / 266.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0004593/0.006934, allocations: 0.5097 MB / 278.5 MB, free: 12.18 MB / 266.7 MB Notification: Performance of FrontEnd - DAE generated: time 2.084e-06/0.006936, allocations: 0 / 278.5 MB, free: 12.18 MB / 266.7 MB Notification: Performance of FrontEnd: time 5.61e-07/0.006937, allocations: 0 / 278.5 MB, free: 12.18 MB / 266.7 MB Notification: Performance of Transformations before backend: time 6.792e-06/0.006943, allocations: 4 kB / 278.5 MB, free: 12.17 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.001614/0.008558, allocations: 1.273 MB / 279.8 MB, free: 10.86 MB / 266.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.671e-05/0.008594, allocations: 15.98 kB / 279.8 MB, free: 10.84 MB / 266.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001509/0.008745, allocations: 100.3 kB / 279.9 MB, free: 10.75 MB / 266.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0005349/0.00928, allocations: 0.5178 MB / 280.4 MB, free: 10.19 MB / 266.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.82e-05/0.009298, allocations: 4.375 kB / 280.5 MB, free: 10.18 MB / 266.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.213e-05/0.00931, allocations: 4.312 kB / 280.5 MB, free: 10.18 MB / 266.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001574/0.009468, allocations: 74.91 kB / 280.5 MB, free: 10.1 MB / 266.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 5.631e-06/0.009473, allocations: 192 / 280.5 MB, free: 10.1 MB / 266.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.172e-05/0.009485, allocations: 384 / 280.5 MB, free: 10.1 MB / 266.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.114e-06/0.009492, allocations: 3.938 kB / 280.5 MB, free: 10.09 MB / 266.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 8.037e-05/0.009573, allocations: 23.92 kB / 280.6 MB, free: 10.07 MB / 266.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0007808/0.01035, allocations: 0.7628 MB / 281.3 MB, free: 9.273 MB / 266.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0001665/0.01052, allocations: 59.05 kB / 281.4 MB, free: 9.203 MB / 266.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 4.472e-05/0.01056, allocations: 19.75 kB / 281.4 MB, free: 9.18 MB / 266.7 MB Notification: Performance of preOpt evalFunc (simulation): time 1.077e-05/0.01058, allocations: 0 / 281.4 MB, free: 9.18 MB / 266.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.077e-05/0.0106, allocations: 41.31 kB / 281.4 MB, free: 9.129 MB / 266.7 MB Notification: Performance of pre-optimization done (n=3): time 1.243e-06/0.0106, allocations: 0 / 281.4 MB, free: 9.129 MB / 266.7 MB Notification: Performance of matching and sorting (n=3): time 0.0003256/0.01092, allocations: 169.2 kB / 281.6 MB, free: 8.957 MB / 266.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 2.678e-05/0.01095, allocations: 51.41 kB / 281.7 MB, free: 8.895 MB / 266.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0009248/0.01187, allocations: 1.13 MB / 282.8 MB, free: 7.742 MB / 266.7 MB Notification: Performance of collectPreVariables (initialization): time 1.521e-05/0.01189, allocations: 29.7 kB / 282.8 MB, free: 7.707 MB / 266.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002938/0.01218, allocations: 0.4994 MB / 283.3 MB, free: 7.203 MB / 266.7 MB Notification: Performance of collectInitialBindings (initialization): time 2.158e-05/0.01221, allocations: 11.89 kB / 283.3 MB, free: 7.191 MB / 266.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 4.236e-05/0.01225, allocations: 27.36 kB / 283.3 MB, free: 7.156 MB / 266.7 MB Notification: Performance of setup shared object (initialization): time 0.0001055/0.01235, allocations: 488.4 kB / 283.8 MB, free: 6.672 MB / 266.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 4.205e-05/0.0124, allocations: 7.984 kB / 283.8 MB, free: 6.664 MB / 266.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 3.444e-05/0.01243, allocations: 8 kB / 283.8 MB, free: 6.656 MB / 266.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 8.298e-05/0.01251, allocations: 35.61 kB / 283.9 MB, free: 6.617 MB / 266.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.884e-06/0.01251, allocations: 4 kB / 283.9 MB, free: 6.613 MB / 266.7 MB Notification: Performance of matching and sorting (n=3) (initialization): time 0.0002343/0.01275, allocations: 149.1 kB / 284 MB, free: 6.461 MB / 266.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.436e-05/0.01276, allocations: 11.06 kB / 284 MB, free: 6.453 MB / 266.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.168e-06/0.01277, allocations: 0 / 284 MB, free: 6.453 MB / 266.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.125e-05/0.01278, allocations: 4 kB / 284 MB, free: 6.449 MB / 266.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 9.341e-05/0.01287, allocations: 12 kB / 284.1 MB, free: 6.438 MB / 266.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 4.839e-06/0.01288, allocations: 0 / 284.1 MB, free: 6.438 MB / 266.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 8.042e-05/0.01296, allocations: 7.984 kB / 284.1 MB, free: 6.43 MB / 266.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.201e-05/0.01297, allocations: 0 / 284.1 MB, free: 6.43 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.0001011/0.01307, allocations: 160.5 kB / 284.2 MB, free: 6.262 MB / 266.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001103/0.01318, allocations: 99.36 kB / 284.3 MB, free: 6.164 MB / 266.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0002388/0.01342, allocations: 161.6 kB / 284.5 MB, free: 5.996 MB / 266.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.347e-06/0.01342, allocations: 0 / 284.5 MB, free: 5.996 MB / 266.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.915e-06/0.01343, allocations: 4 kB / 284.5 MB, free: 5.992 MB / 266.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.357e-06/0.01343, allocations: 0 / 284.5 MB, free: 5.992 MB / 266.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0004144/0.01384, allocations: 0.5409 MB / 285 MB, free: 5.418 MB / 266.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.268e-06/0.01385, allocations: 0 / 285 MB, free: 5.418 MB / 266.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 3.884e-05/0.01389, allocations: 11.98 kB / 285 MB, free: 5.406 MB / 266.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.124e-06/0.01389, allocations: 0 / 285 MB, free: 5.406 MB / 266.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 9.899e-06/0.0139, allocations: 7.938 kB / 285 MB, free: 5.398 MB / 266.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.633e-06/0.0139, allocations: 0 / 285 MB, free: 5.398 MB / 266.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.863e-06/0.0139, allocations: 4 kB / 285 MB, free: 5.395 MB / 266.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002256/0.01413, allocations: 300.1 kB / 285.3 MB, free: 5.082 MB / 266.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001497/0.01428, allocations: 139.3 kB / 285.5 MB, free: 4.945 MB / 266.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.968e-05/0.01432, allocations: 3.938 kB / 285.5 MB, free: 4.941 MB / 266.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 8.813e-05/0.01441, allocations: 11.98 kB / 285.5 MB, free: 4.93 MB / 266.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.238e-05/0.01444, allocations: 0 / 285.5 MB, free: 4.93 MB / 266.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.182e-06/0.01444, allocations: 4 kB / 285.5 MB, free: 4.926 MB / 266.7 MB Notification: Performance of sorting global known variables: time 0.0005515/0.015, allocations: 0.6578 MB / 286.1 MB, free: 4.258 MB / 266.7 MB Notification: Performance of sort global known variables: time 9e-08/0.015, allocations: 4 kB / 286.1 MB, free: 4.254 MB / 266.7 MB Notification: Performance of remove unused functions: time 0.000222/0.01522, allocations: 67.94 kB / 286.2 MB, free: 4.188 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.0001385/0.01536, allocations: 103.2 kB / 286.3 MB, free: 4.078 MB / 266.7 MB Notification: Performance of simCode: created initialization part: time 0.0001188/0.01547, allocations: 31.67 kB / 286.3 MB, free: 4.043 MB / 266.7 MB Notification: Performance of simCode: created event and clocks part: time 1.563e-06/0.01548, allocations: 3.938 kB / 286.4 MB, free: 4.039 MB / 266.7 MB Notification: Performance of simCode: created simulation system equations: time 4.91e-05/0.01553, allocations: 27.67 kB / 286.4 MB, free: 4.008 MB / 266.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003821/0.01591, allocations: 100.1 kB / 286.5 MB, free: 3.906 MB / 266.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001265/0.01717, allocations: 1.105 MB / 287.6 MB, free: 2.766 MB / 266.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001387/0.01731, allocations: 197.1 kB / 287.8 MB, free: 2.555 MB / 266.7 MB Notification: Performance of simCode: alias equations: time 0.0003918/0.0177, allocations: 430.4 kB / 288.2 MB, free: 2.129 MB / 266.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 8.681e-05/0.01779, allocations: 40.5 kB / 288.2 MB, free: 2.09 MB / 266.7 MB Notification: Performance of SimCode: time 7.81e-07/0.01779, allocations: 0 / 288.2 MB, free: 2.09 MB / 266.7 MB Notification: Performance of Templates: time 0.1114/0.1292, allocations: 7.929 MB / 296.2 MB, free: 27.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.9820103070233017]