Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.1.0_Modelica.Electrical.Batteries.Examples.ShowImpedance.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo): time 0.001536/0.001536, allocations: 83.69 kB / 21.18 MB, free: 3.395 MB / 18.57 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo): time 0.001342/0.001342, allocations: 165 kB / 24.56 MB, free: 24 kB / 18.57 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo): time 1.002/1.002, allocations: 177.1 MB / 205 MB, free: 5.605 MB / 186.7 MB " [Timeout remaining time 179] Using package Modelica with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo) Using package Complex with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo) Using package ModelicaServices with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.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.1.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.1.0_Modelica.Electrical.Batteries.Examples.ShowImpedance") [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 1.874e-06/1.874e-06, allocations: 0 / 273 MB, free: 1.547 MB / 250.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 2.883e-05/3.071e-05, allocations: 2.312 kB / 273 MB, free: 1.543 MB / 250.7 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Batteries.Examples.ShowImpedance): time 0.002508/0.002539, allocations: 1.95 MB / 274.9 MB, free: 15.59 MB / 266.7 MB Notification: Performance of NFInst.instExpressions: time 0.00127/0.003809, allocations: 1.211 MB / 276.1 MB, free: 14.37 MB / 266.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 7.638e-05/0.003886, allocations: 3.938 kB / 276.1 MB, free: 14.36 MB / 266.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0007791/0.004665, allocations: 0.4944 MB / 276.6 MB, free: 13.87 MB / 266.7 MB Notification: Performance of NFTyping.typeBindings: time 0.00015/0.004815, allocations: 195.3 kB / 276.8 MB, free: 13.68 MB / 266.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003025/0.005117, allocations: 163.2 kB / 277 MB, free: 13.52 MB / 266.7 MB Notification: Performance of NFFlatten.flatten: time 0.0002731/0.00539, allocations: 230.2 kB / 277.2 MB, free: 13.29 MB / 266.7 MB Notification: Performance of NFFlatten.resolveConnections: time 7.736e-05/0.005468, allocations: 17.8 kB / 277.2 MB, free: 13.27 MB / 266.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.000179/0.005647, allocations: 147.6 kB / 277.4 MB, free: 13.13 MB / 266.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001929/0.00584, allocations: 215.6 kB / 277.6 MB, free: 12.92 MB / 266.7 MB Notification: Performance of NFPackage.collectConstants: time 2.013e-05/0.00586, allocations: 8 kB / 277.6 MB, free: 12.91 MB / 266.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001159/0.005976, allocations: 67.83 kB / 277.6 MB, free: 12.84 MB / 266.7 MB Notification: Performance of NFScalarize.scalarize: time 0.0001505/0.006126, allocations: 263.3 kB / 277.9 MB, free: 12.59 MB / 266.7 MB Notification: Performance of NFVerifyModel.verify: time 0.0001045/0.006231, allocations: 135.5 kB / 278 MB, free: 12.45 MB / 266.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0004165/0.006647, allocations: 0.5097 MB / 278.5 MB, free: 11.94 MB / 266.7 MB Notification: Performance of FrontEnd - DAE generated: time 4.158e-06/0.006651, allocations: 3.984 kB / 278.5 MB, free: 11.94 MB / 266.7 MB Notification: Performance of FrontEnd: time 1.072e-06/0.006652, allocations: 0 / 278.5 MB, free: 11.94 MB / 266.7 MB Notification: Performance of Transformations before backend: time 6.312e-06/0.006659, allocations: 4 kB / 278.5 MB, free: 11.93 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.001516/0.008175, allocations: 1.273 MB / 279.8 MB, free: 10.62 MB / 266.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.502e-05/0.00821, allocations: 8.031 kB / 279.8 MB, free: 10.61 MB / 266.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001372/0.008347, allocations: 100.3 kB / 279.9 MB, free: 10.52 MB / 266.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000496/0.008843, allocations: 0.5177 MB / 280.4 MB, free: 9.957 MB / 266.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.773e-05/0.008861, allocations: 4.312 kB / 280.4 MB, free: 9.953 MB / 266.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.526e-05/0.008876, allocations: 8.375 kB / 280.5 MB, free: 9.945 MB / 266.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001637/0.00904, allocations: 70.91 kB / 280.5 MB, free: 9.867 MB / 266.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.432e-05/0.009054, allocations: 192 / 280.5 MB, free: 9.867 MB / 266.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.212e-05/0.009066, allocations: 384 / 280.5 MB, free: 9.867 MB / 266.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 9.689e-06/0.009076, allocations: 7.938 kB / 280.5 MB, free: 9.859 MB / 266.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 7.309e-05/0.009149, allocations: 23.98 kB / 280.6 MB, free: 9.836 MB / 266.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0007896/0.009938, allocations: 0.7589 MB / 281.3 MB, free: 9.043 MB / 266.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0001729/0.01011, allocations: 62.98 kB / 281.4 MB, free: 8.969 MB / 266.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 3.98e-05/0.01015, allocations: 19.73 kB / 281.4 MB, free: 8.945 MB / 266.7 MB Notification: Performance of preOpt evalFunc (simulation): time 1.191e-05/0.01016, allocations: 0 / 281.4 MB, free: 8.945 MB / 266.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.392e-05/0.01019, allocations: 37.33 kB / 281.4 MB, free: 8.898 MB / 266.7 MB Notification: Performance of pre-optimization done (n=3): time 1.002e-06/0.01019, allocations: 4 kB / 281.4 MB, free: 8.895 MB / 266.7 MB Notification: Performance of matching and sorting (n=3): time 0.0003091/0.0105, allocations: 165 kB / 281.6 MB, free: 8.727 MB / 266.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 2.982e-05/0.01053, allocations: 51.41 kB / 281.6 MB, free: 8.664 MB / 266.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0009199/0.01145, allocations: 1.13 MB / 282.8 MB, free: 7.512 MB / 266.7 MB Notification: Performance of collectPreVariables (initialization): time 1.537e-05/0.01146, allocations: 25.7 kB / 282.8 MB, free: 7.48 MB / 266.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002891/0.01175, allocations: 0.5072 MB / 283.3 MB, free: 6.969 MB / 266.7 MB Notification: Performance of collectInitialBindings (initialization): time 2.355e-05/0.01177, allocations: 7.953 kB / 283.3 MB, free: 6.961 MB / 266.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 4.392e-05/0.01182, allocations: 27.36 kB / 283.3 MB, free: 6.926 MB / 266.7 MB Notification: Performance of setup shared object (initialization): time 0.0001137/0.01193, allocations: 484.4 kB / 283.8 MB, free: 6.445 MB / 266.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 3.652e-05/0.01197, allocations: 8 kB / 283.8 MB, free: 6.438 MB / 266.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 3.348e-05/0.012, allocations: 11.98 kB / 283.8 MB, free: 6.426 MB / 266.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 7.101e-05/0.01207, allocations: 27.69 kB / 283.9 MB, free: 6.395 MB / 266.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.184e-06/0.01208, allocations: 0 / 283.9 MB, free: 6.395 MB / 266.7 MB Notification: Performance of matching and sorting (n=3) (initialization): time 0.0002064/0.01228, allocations: 161 kB / 284 MB, free: 6.23 MB / 266.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.473e-05/0.0123, allocations: 11.94 kB / 284 MB, free: 6.219 MB / 266.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.448e-06/0.0123, allocations: 0 / 284 MB, free: 6.219 MB / 266.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.429e-05/0.01232, allocations: 0 / 284 MB, free: 6.219 MB / 266.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 9.636e-05/0.01241, allocations: 11.98 kB / 284 MB, free: 6.207 MB / 266.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.47e-06/0.01242, allocations: 0 / 284 MB, free: 6.207 MB / 266.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 7.299e-05/0.01249, allocations: 7.938 kB / 284 MB, free: 6.199 MB / 266.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.154e-05/0.0125, allocations: 7.984 kB / 284.1 MB, free: 6.191 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.0001038/0.01261, allocations: 156.6 kB / 284.2 MB, free: 6.027 MB / 266.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001068/0.01271, allocations: 95.36 kB / 284.3 MB, free: 5.934 MB / 266.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0002645/0.01298, allocations: 161.8 kB / 284.5 MB, free: 5.766 MB / 266.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.857e-06/0.01298, allocations: 0 / 284.5 MB, free: 5.766 MB / 266.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.369e-06/0.01299, allocations: 0 / 284.5 MB, free: 5.766 MB / 266.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.078e-06/0.01299, allocations: 3.938 kB / 284.5 MB, free: 5.762 MB / 266.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.00046/0.01345, allocations: 0.5448 MB / 285 MB, free: 5.184 MB / 266.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5e-06/0.01345, allocations: 8 kB / 285 MB, free: 5.176 MB / 266.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 4.222e-05/0.0135, allocations: 4 kB / 285 MB, free: 5.172 MB / 266.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 4.498e-06/0.0135, allocations: 3.984 kB / 285 MB, free: 5.168 MB / 266.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.329e-05/0.01351, allocations: 3.938 kB / 285 MB, free: 5.164 MB / 266.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.823e-06/0.01352, allocations: 4 kB / 285 MB, free: 5.16 MB / 266.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.844e-06/0.01352, allocations: 0 / 285 MB, free: 5.16 MB / 266.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002295/0.01375, allocations: 292.2 kB / 285.3 MB, free: 4.855 MB / 266.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.000152/0.0139, allocations: 139.3 kB / 285.5 MB, free: 4.719 MB / 266.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.962e-05/0.01394, allocations: 3.938 kB / 285.5 MB, free: 4.715 MB / 266.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 8.183e-05/0.01402, allocations: 4 kB / 285.5 MB, free: 4.711 MB / 266.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.216e-05/0.01406, allocations: 7.984 kB / 285.5 MB, free: 4.703 MB / 266.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.081e-06/0.01407, allocations: 4 kB / 285.5 MB, free: 4.699 MB / 266.7 MB Notification: Performance of sorting global known variables: time 0.0005966/0.01467, allocations: 0.6579 MB / 286.1 MB, free: 4.031 MB / 266.7 MB Notification: Performance of sort global known variables: time 6e-08/0.01467, allocations: 3.938 kB / 286.1 MB, free: 4.027 MB / 266.7 MB Notification: Performance of remove unused functions: time 0.0002313/0.0149, allocations: 63.94 kB / 286.2 MB, free: 3.965 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.0001661/0.01506, allocations: 107.2 kB / 286.3 MB, free: 3.852 MB / 266.7 MB Notification: Performance of simCode: created initialization part: time 0.000136/0.0152, allocations: 43.67 kB / 286.3 MB, free: 3.805 MB / 266.7 MB Notification: Performance of simCode: created event and clocks part: time 1.413e-06/0.0152, allocations: 0 / 286.3 MB, free: 3.805 MB / 266.7 MB Notification: Performance of simCode: created simulation system equations: time 5.123e-05/0.01525, allocations: 23.67 kB / 286.4 MB, free: 3.777 MB / 266.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003744/0.01563, allocations: 108.4 kB / 286.5 MB, free: 3.668 MB / 266.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001376/0.017, allocations: 1.101 MB / 287.6 MB, free: 2.531 MB / 266.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000138/0.01714, allocations: 193.2 kB / 287.8 MB, free: 2.32 MB / 266.7 MB Notification: Performance of simCode: alias equations: time 0.0004038/0.01754, allocations: 426 kB / 288.2 MB, free: 1.898 MB / 266.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 8.483e-05/0.01763, allocations: 40.48 kB / 288.2 MB, free: 1.859 MB / 266.7 MB Notification: Performance of SimCode: time 1.603e-06/0.01763, allocations: 7.938 kB / 288.2 MB, free: 1.852 MB / 266.7 MB Notification: Performance of Templates: time 0.1098/0.1275, allocations: 8.415 MB / 296.6 MB, free: 24.05 MB / 266.7 MB " [Timeout remaining time 660] make -j1 -f Modelica_4.1.0_Modelica.Electrical.Batteries.Examples.ShowImpedance.makefile [Timeout 660] (rm -f Modelica_4.1.0_Modelica.Electrical.Batteries.Examples.ShowImpedance.pipe ; mkfifo Modelica_4.1.0_Modelica.Electrical.Batteries.Examples.ShowImpedance.pipe ; head -c 1048576 < Modelica_4.1.0_Modelica.Electrical.Batteries.Examples.ShowImpedance.pipe >> ../files/Modelica_4.1.0_Modelica.Electrical.Batteries.Examples.ShowImpedance.sim & ./Modelica_4.1.0_Modelica.Electrical.Batteries.Examples.ShowImpedance -abortSlowSimulation -alarm=240 -emit_protected -lv LOG_STATS > Modelica_4.1.0_Modelica.Electrical.Batteries.Examples.ShowImpedance.pipe 2>&1) [Timeout 240] diffSimulationResults("Modelica_4.1.0_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.986201869789511]