Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.0.0_Modelica.Electrical.Batteries.Examples.ShowImpedance.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001696/0.001696, allocations: 107.5 kB / 20.44 MB, free: 1.188 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.002275/0.002275, allocations: 194.6 kB / 23.71 MB, free: 4.406 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.52/1.52, allocations: 225.7 MB / 252.5 MB, free: 12.79 MB / 206.1 MB " [Timeout remaining time 178] Using package Modelica with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo) Using package Complex with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo) Using package ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/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_4.0.0_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_4.0.0_Modelica.Electrical.Batteries.Examples.ShowImpedance") [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 0.001577/0.001577, allocations: 55.91 kB / 370.9 MB, free: 9.188 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2889/0.2905, allocations: 52.18 MB / 423 MB, free: 14.48 MB / 334.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Batteries.Examples.ShowImpedance): time 0.003618/0.2941, allocations: 1.861 MB / 424.9 MB, free: 12.61 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.001909/0.296, allocations: 1.121 MB / 426 MB, free: 11.49 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 9.54e-05/0.2961, allocations: 0 / 426 MB, free: 11.49 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0011/0.2972, allocations: 494.5 kB / 426.5 MB, free: 11 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0002477/0.2974, allocations: 191.4 kB / 426.7 MB, free: 10.82 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0004895/0.2979, allocations: 171.4 kB / 426.9 MB, free: 10.65 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.0003537/0.2983, allocations: 219.1 kB / 427.1 MB, free: 10.43 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 9.785e-05/0.2984, allocations: 13.8 kB / 427.1 MB, free: 10.42 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002154/0.2986, allocations: 127.5 kB / 427.2 MB, free: 10.29 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0003176/0.2989, allocations: 227.4 kB / 427.4 MB, free: 10.07 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 2.926e-05/0.2989, allocations: 4 kB / 427.4 MB, free: 10.07 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001627/0.2991, allocations: 63.91 kB / 427.5 MB, free: 10 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0002426/0.2993, allocations: 267.2 kB / 427.8 MB, free: 9.742 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0002047/0.2995, allocations: 194.4 kB / 428 MB, free: 9.551 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.000924/0.3005, allocations: 0.7881 MB / 428.7 MB, free: 8.762 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 7.163e-06/0.3005, allocations: 4 kB / 428.8 MB, free: 8.758 MB / 334.1 MB Notification: Performance of FrontEnd: time 1.392e-06/0.3005, allocations: 0 / 428.8 MB, free: 8.758 MB / 334.1 MB Notification: Performance of Transformations before backend: time 7.975e-06/0.3005, allocations: 0 / 428.8 MB, free: 8.758 MB / 334.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.002612/0.3031, allocations: 1.149 MB / 429.9 MB, free: 7.574 MB / 334.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.75e-05/0.3031, allocations: 11.97 kB / 429.9 MB, free: 7.562 MB / 334.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001824/0.3033, allocations: 88.38 kB / 430 MB, free: 7.477 MB / 334.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001127/0.3044, allocations: 0.6915 MB / 430.7 MB, free: 6.746 MB / 334.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.661e-05/0.3045, allocations: 8.375 kB / 430.7 MB, free: 6.738 MB / 334.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.016e-05/0.3045, allocations: 4.375 kB / 430.7 MB, free: 6.734 MB / 334.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002892/0.3048, allocations: 121.9 kB / 430.8 MB, free: 6.609 MB / 334.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 8.075e-06/0.3048, allocations: 0 / 430.8 MB, free: 6.609 MB / 334.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.439e-05/0.3048, allocations: 0 / 430.8 MB, free: 6.609 MB / 334.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.508e-06/0.3048, allocations: 0 / 430.8 MB, free: 6.609 MB / 334.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0003485/0.3051, allocations: 143.9 kB / 431 MB, free: 6.469 MB / 334.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001195/0.3063, allocations: 0.6964 MB / 431.7 MB, free: 5.742 MB / 334.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002446/0.3066, allocations: 90.45 kB / 431.7 MB, free: 5.645 MB / 334.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001889/0.3068, allocations: 76.89 kB / 431.8 MB, free: 5.566 MB / 334.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.962e-05/0.3068, allocations: 0 / 431.8 MB, free: 5.566 MB / 334.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.747e-05/0.3068, allocations: 30.56 kB / 431.9 MB, free: 5.527 MB / 334.1 MB Notification: Performance of pre-optimization done (n=3): time 9.12e-07/0.3068, allocations: 0 / 431.9 MB, free: 5.527 MB / 334.1 MB Notification: Performance of matching and sorting (n=3): time 0.0008793/0.3077, allocations: 340.9 kB / 432.2 MB, free: 5.188 MB / 334.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.2e-05/0.3077, allocations: 55.39 kB / 432.2 MB, free: 5.121 MB / 334.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001924/0.3097, allocations: 1.409 MB / 433.6 MB, free: 3.691 MB / 334.1 MB Notification: Performance of collectPreVariables (initialization): time 3.011e-05/0.3097, allocations: 25.7 kB / 433.7 MB, free: 3.66 MB / 334.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0003689/0.3101, allocations: 384.4 kB / 434 MB, free: 3.281 MB / 334.1 MB Notification: Performance of collectInitialBindings (initialization): time 3.415e-05/0.3101, allocations: 15.84 kB / 434.1 MB, free: 3.266 MB / 334.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 5.849e-05/0.3102, allocations: 17.7 kB / 434.1 MB, free: 3.242 MB / 334.1 MB Notification: Performance of setup shared object (initialization): time 0.0001602/0.3103, allocations: 317.9 kB / 434.4 MB, free: 2.926 MB / 334.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001796/0.3105, allocations: 63.94 kB / 434.5 MB, free: 2.863 MB / 334.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.000189/0.3107, allocations: 86.52 kB / 434.5 MB, free: 2.77 MB / 334.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.000356/0.311, allocations: 162.4 kB / 434.7 MB, free: 2.602 MB / 334.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.355e-06/0.311, allocations: 0 / 434.7 MB, free: 2.602 MB / 334.1 MB Notification: Performance of matching and sorting (n=3) (initialization): time 0.0006184/0.3117, allocations: 272.9 kB / 435 MB, free: 2.328 MB / 334.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.763e-05/0.3117, allocations: 4 kB / 435 MB, free: 2.324 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.157e-05/0.3117, allocations: 4 kB / 435 MB, free: 2.32 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.137e-05/0.3117, allocations: 8.094 kB / 435 MB, free: 2.312 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001894/0.3119, allocations: 15.98 kB / 435 MB, free: 2.297 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.783e-06/0.3119, allocations: 0 / 435 MB, free: 2.297 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001937/0.3121, allocations: 7.984 kB / 435 MB, free: 2.289 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.898e-05/0.3121, allocations: 4 kB / 435 MB, free: 2.285 MB / 334.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.0003827/0.3125, allocations: 341.6 kB / 435.3 MB, free: 1.941 MB / 334.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001808/0.3127, allocations: 95.39 kB / 435.4 MB, free: 1.848 MB / 334.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0006467/0.3133, allocations: 281.3 kB / 435.7 MB, free: 1.562 MB / 334.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.404e-06/0.3133, allocations: 0 / 435.7 MB, free: 1.562 MB / 334.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.9e-06/0.3133, allocations: 0 / 435.7 MB, free: 1.562 MB / 334.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.965e-06/0.3134, allocations: 0 / 435.7 MB, free: 1.562 MB / 334.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0005452/0.3139, allocations: 410.3 kB / 436.1 MB, free: 1.133 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.802e-06/0.3139, allocations: 7.938 kB / 436.1 MB, free: 1.125 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 8.512e-05/0.314, allocations: 15.97 kB / 436.1 MB, free: 1.109 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 3.046e-06/0.314, allocations: 0 / 436.1 MB, free: 1.109 MB / 334.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.495e-05/0.314, allocations: 4 kB / 436.1 MB, free: 1.105 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.466e-06/0.314, allocations: 3.984 kB / 436.1 MB, free: 1.102 MB / 334.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.683e-06/0.314, allocations: 0 / 436.1 MB, free: 1.102 MB / 334.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.000557/0.3146, allocations: 323.3 kB / 436.5 MB, free: 0.7695 MB / 334.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0004075/0.315, allocations: 155.3 kB / 436.6 MB, free: 0.6172 MB / 334.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 7.76e-05/0.3151, allocations: 0 / 436.6 MB, free: 0.6172 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.000212/0.3153, allocations: 15.98 kB / 436.6 MB, free: 0.6016 MB / 334.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.955e-05/0.3153, allocations: 4 kB / 436.6 MB, free: 0.5977 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.48e-05/0.3153, allocations: 7.984 kB / 436.6 MB, free: 0.5898 MB / 334.1 MB Notification: Performance of sorting global known variables: time 0.001459/0.3168, allocations: 1.013 MB / 437.6 MB, free: 15.57 MB / 350.1 MB Notification: Performance of sort global known variables: time 8e-08/0.3168, allocations: 0 / 437.6 MB, free: 15.57 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.0003545/0.3172, allocations: 63.94 kB / 437.7 MB, free: 15.5 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.0002124/0.3174, allocations: 111.2 kB / 437.8 MB, free: 15.38 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.0004201/0.3178, allocations: 131.8 kB / 437.9 MB, free: 15.25 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 2.966e-06/0.3178, allocations: 0 / 437.9 MB, free: 15.25 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0001678/0.318, allocations: 51.95 kB / 438 MB, free: 15.2 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0006157/0.3186, allocations: 107.7 kB / 438.1 MB, free: 15.1 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002291/0.3209, allocations: 1.38 MB / 439.5 MB, free: 13.69 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005221/0.3214, allocations: 407.9 kB / 439.9 MB, free: 13.27 MB / 350.1 MB Notification: Performance of simCode: alias equations: time 0.0006977/0.3221, allocations: 470.2 kB / 440.3 MB, free: 12.81 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001329/0.3222, allocations: 43.42 kB / 440.4 MB, free: 12.77 MB / 350.1 MB Notification: Performance of SimCode: time 6.92e-07/0.3222, allocations: 4 kB / 440.4 MB, free: 12.76 MB / 350.1 MB Notification: Performance of Templates: time 0.01799/0.3402, allocations: 8.609 MB / 449 MB, free: 4.215 MB / 350.1 MB " [Timeout remaining time 660] make -j1 -f Modelica_4.0.0_Modelica.Electrical.Batteries.Examples.ShowImpedance.makefile [Timeout 660] (rm -f Modelica_4.0.0_Modelica.Electrical.Batteries.Examples.ShowImpedance.pipe ; mkfifo Modelica_4.0.0_Modelica.Electrical.Batteries.Examples.ShowImpedance.pipe ; head -c 1048576 < Modelica_4.0.0_Modelica.Electrical.Batteries.Examples.ShowImpedance.pipe >> ../files/Modelica_4.0.0_Modelica.Electrical.Batteries.Examples.ShowImpedance.sim & ./Modelica_4.0.0_Modelica.Electrical.Batteries.Examples.ShowImpedance -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Modelica_4.0.0_Modelica.Electrical.Batteries.Examples.ShowImpedance.pipe 2>&1) [Timeout 480] diffSimulationResults("Modelica_4.0.0_Modelica.Electrical.Batteries.Examples.ShowImpedance_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Electrical/Batteries/Examples/ShowImpedance/ShowImpedance.csv","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_4.0.0_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: 4.883259084075689]