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.001453/0.001453, allocations: 88.86 kB / 21.5 MB, free: 2.988 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.001224/0.001224, allocations: 159.4 kB / 24.91 MB, free: 8.719 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 0.9329/0.9329, allocations: 177 MB / 205.2 MB, free: 5.039 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.593e-06/1.593e-06, allocations: 0 / 273.4 MB, free: 1.105 MB / 250.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 2.101e-05/2.26e-05, allocations: 9.266 kB / 273.4 MB, free: 1.098 MB / 250.7 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Batteries.Examples.ShowImpedance): time 0.002476/0.002498, allocations: 1.938 MB / 275.3 MB, free: 15.14 MB / 266.7 MB Notification: Performance of NFInst.instExpressions: time 0.001425/0.003924, allocations: 1.218 MB / 276.5 MB, free: 13.92 MB / 266.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 8.197e-05/0.004006, allocations: 4 kB / 276.5 MB, free: 13.91 MB / 266.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0008443/0.00485, allocations: 0.4982 MB / 277 MB, free: 13.41 MB / 266.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0001764/0.005026, allocations: 195.3 kB / 277.2 MB, free: 13.22 MB / 266.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003398/0.005366, allocations: 155.3 kB / 277.4 MB, free: 13.07 MB / 266.7 MB Notification: Performance of NFFlatten.flatten: time 0.0003/0.005666, allocations: 246.8 kB / 277.6 MB, free: 12.83 MB / 266.7 MB Notification: Performance of NFFlatten.resolveConnections: time 7.495e-05/0.005741, allocations: 14.47 kB / 277.6 MB, free: 12.82 MB / 266.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002347/0.005976, allocations: 151.6 kB / 277.8 MB, free: 12.67 MB / 266.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001972/0.006173, allocations: 187.7 kB / 277.9 MB, free: 12.48 MB / 266.7 MB Notification: Performance of NFPackage.collectConstants: time 2.012e-05/0.006193, allocations: 8 kB / 278 MB, free: 12.48 MB / 266.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001231/0.006316, allocations: 59.84 kB / 278 MB, free: 12.42 MB / 266.7 MB Notification: Performance of NFScalarize.scalarize: time 0.0001409/0.006457, allocations: 267.3 kB / 278.3 MB, free: 12.16 MB / 266.7 MB Notification: Performance of NFVerifyModel.verify: time 0.0001077/0.006565, allocations: 135.5 kB / 278.4 MB, free: 12.02 MB / 266.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0004627/0.007028, allocations: 0.5097 MB / 278.9 MB, free: 11.51 MB / 266.7 MB Notification: Performance of FrontEnd - DAE generated: time 2.845e-06/0.00703, allocations: 4 kB / 278.9 MB, free: 11.51 MB / 266.7 MB Notification: Performance of FrontEnd: time 8.81e-07/0.007031, allocations: 0 / 278.9 MB, free: 11.51 MB / 266.7 MB Notification: Performance of Transformations before backend: time 8.897e-06/0.00704, allocations: 0 / 278.9 MB, free: 11.51 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.00139/0.008431, allocations: 1.038 MB / 280 MB, free: 10.44 MB / 266.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.473e-05/0.008465, allocations: 11.98 kB / 280 MB, free: 10.43 MB / 266.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.00015/0.008615, allocations: 48.88 kB / 280 MB, free: 10.38 MB / 266.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000445/0.00906, allocations: 451.5 kB / 280.5 MB, free: 9.902 MB / 266.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.731e-05/0.009078, allocations: 4.375 kB / 280.5 MB, free: 9.898 MB / 266.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.47e-05/0.009092, allocations: 4.312 kB / 280.5 MB, free: 9.895 MB / 266.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001416/0.009234, allocations: 70.91 kB / 280.5 MB, free: 9.816 MB / 266.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 7.474e-06/0.009241, allocations: 4.172 kB / 280.5 MB, free: 9.812 MB / 266.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 9.648e-06/0.009251, allocations: 384 / 280.5 MB, free: 9.812 MB / 266.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.368e-06/0.009255, allocations: 7.938 kB / 280.5 MB, free: 9.805 MB / 266.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 4.995e-05/0.009305, allocations: 16 kB / 280.6 MB, free: 9.789 MB / 266.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0003829/0.009688, allocations: 236.1 kB / 280.8 MB, free: 9.543 MB / 266.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0001375/0.009826, allocations: 38.5 kB / 280.8 MB, free: 9.496 MB / 266.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 2.714e-05/0.009853, allocations: 16.86 kB / 280.8 MB, free: 9.477 MB / 266.7 MB Notification: Performance of preOpt evalFunc (simulation): time 1.152e-05/0.009864, allocations: 0 / 280.8 MB, free: 9.477 MB / 266.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.951e-05/0.009884, allocations: 38.5 kB / 280.9 MB, free: 9.43 MB / 266.7 MB Notification: Performance of pre-optimization done (n=3): time 7.72e-07/0.009885, allocations: 4 kB / 280.9 MB, free: 9.426 MB / 266.7 MB Notification: Performance of matching and sorting (n=3): time 0.0002237/0.01011, allocations: 97.56 kB / 281 MB, free: 9.324 MB / 266.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 2.863e-05/0.01014, allocations: 55.39 kB / 281 MB, free: 9.258 MB / 266.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0005221/0.01066, allocations: 0.7468 MB / 281.8 MB, free: 8.492 MB / 266.7 MB Notification: Performance of collectPreVariables (initialization): time 1.892e-05/0.01068, allocations: 25.7 kB / 281.8 MB, free: 8.461 MB / 266.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001052/0.01078, allocations: 198.5 kB / 282 MB, free: 8.262 MB / 266.7 MB Notification: Performance of collectInitialBindings (initialization): time 2.393e-05/0.01081, allocations: 7.938 kB / 282 MB, free: 8.254 MB / 266.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 4.352e-05/0.01085, allocations: 21.7 kB / 282 MB, free: 8.227 MB / 266.7 MB Notification: Performance of setup shared object (initialization): time 7.82e-05/0.01093, allocations: 310 kB / 282.3 MB, free: 7.918 MB / 266.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 2.921e-05/0.01096, allocations: 4 kB / 282.3 MB, free: 7.914 MB / 266.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 2.107e-05/0.01098, allocations: 4 kB / 282.3 MB, free: 7.91 MB / 266.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 5.321e-05/0.01103, allocations: 21.12 kB / 282.4 MB, free: 7.887 MB / 266.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.244e-06/0.01103, allocations: 0 / 282.4 MB, free: 7.887 MB / 266.7 MB Notification: Performance of matching and sorting (n=3) (initialization): time 0.0001711/0.01121, allocations: 97.61 kB / 282.5 MB, free: 7.785 MB / 266.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.432e-05/0.01122, allocations: 11.98 kB / 282.5 MB, free: 7.773 MB / 266.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.01e-06/0.01122, allocations: 0 / 282.5 MB, free: 7.773 MB / 266.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.253e-05/0.01124, allocations: 7.875 kB / 282.5 MB, free: 7.766 MB / 266.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 9.494e-05/0.01133, allocations: 8 kB / 282.5 MB, free: 7.758 MB / 266.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 2.846e-06/0.01134, allocations: 0 / 282.5 MB, free: 7.758 MB / 266.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 7.33e-05/0.01141, allocations: 7.984 kB / 282.5 MB, free: 7.75 MB / 266.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 9.548e-06/0.01142, allocations: 4 kB / 282.5 MB, free: 7.746 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.0001162/0.01153, allocations: 112.7 kB / 282.6 MB, free: 7.625 MB / 266.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 9.728e-05/0.01163, allocations: 51.92 kB / 282.7 MB, free: 7.574 MB / 266.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0002417/0.01187, allocations: 193.4 kB / 282.9 MB, free: 7.375 MB / 266.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.929e-06/0.01188, allocations: 3.938 kB / 282.9 MB, free: 7.371 MB / 266.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.394e-06/0.01188, allocations: 4 kB / 282.9 MB, free: 7.367 MB / 266.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.398e-06/0.01189, allocations: 3.984 kB / 282.9 MB, free: 7.363 MB / 266.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002976/0.01218, allocations: 333.2 kB / 283.2 MB, free: 7.02 MB / 266.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.697e-06/0.01219, allocations: 4 kB / 283.2 MB, free: 7.016 MB / 266.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 4.241e-05/0.01223, allocations: 11.94 kB / 283.2 MB, free: 7.004 MB / 266.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.324e-06/0.01223, allocations: 4 kB / 283.2 MB, free: 7 MB / 266.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.014e-06/0.01224, allocations: 3.984 kB / 283.2 MB, free: 6.996 MB / 266.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.904e-06/0.01224, allocations: 0 / 283.2 MB, free: 6.996 MB / 266.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 9.82e-07/0.01224, allocations: 96 / 283.2 MB, free: 6.996 MB / 266.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001747/0.01242, allocations: 242.6 kB / 283.4 MB, free: 6.742 MB / 266.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001235/0.01254, allocations: 111.3 kB / 283.6 MB, free: 6.633 MB / 266.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.752e-05/0.01258, allocations: 7.984 kB / 283.6 MB, free: 6.625 MB / 266.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 8.733e-05/0.01266, allocations: 4 kB / 283.6 MB, free: 6.621 MB / 266.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.015e-05/0.01269, allocations: 7.938 kB / 283.6 MB, free: 6.613 MB / 266.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.111e-06/0.0127, allocations: 7.984 kB / 283.6 MB, free: 6.605 MB / 266.7 MB Notification: Performance of sorting global known variables: time 0.0003119/0.01301, allocations: 387.7 kB / 284 MB, free: 6.215 MB / 266.7 MB Notification: Performance of sort global known variables: time 6e-08/0.01301, allocations: 0 / 284 MB, free: 6.215 MB / 266.7 MB Notification: Performance of remove unused functions: time 0.0001935/0.01321, allocations: 60 kB / 284 MB, free: 6.156 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.0001425/0.01335, allocations: 96.34 kB / 284.1 MB, free: 6.055 MB / 266.7 MB Notification: Performance of simCode: created initialization part: time 8.542e-05/0.01343, allocations: 24.84 kB / 284.1 MB, free: 6.027 MB / 266.7 MB Notification: Performance of simCode: created event and clocks part: time 9.868e-06/0.01344, allocations: 12 kB / 284.2 MB, free: 6.016 MB / 266.7 MB Notification: Performance of simCode: created simulation system equations: time 3.795e-05/0.01348, allocations: 16.84 kB / 284.2 MB, free: 5.996 MB / 266.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003233/0.0138, allocations: 104.1 kB / 284.3 MB, free: 5.891 MB / 266.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001225/0.01503, allocations: 1.109 MB / 285.4 MB, free: 4.746 MB / 266.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001317/0.01516, allocations: 193.2 kB / 285.6 MB, free: 4.539 MB / 266.7 MB Notification: Performance of simCode: alias equations: time 0.0003242/0.01549, allocations: 378.4 kB / 285.9 MB, free: 4.164 MB / 266.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002004/0.01569, allocations: 139.3 kB / 286.1 MB, free: 4.027 MB / 266.7 MB Notification: Performance of SimCode: time 9.92e-07/0.01569, allocations: 3.938 kB / 286.1 MB, free: 4.023 MB / 266.7 MB Notification: Performance of Templates: time 0.114/0.1297, allocations: 8.35 MB / 294.4 MB, free: 23.65 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.7948727910406888]