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) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo", uses=false) 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=20000,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=20000,variableFilter="time|impedance.z.re|impedance.z.im",fileNamePrefix="Modelica_4.0.0_Modelica.Electrical.Batteries.Examples.ShowImpedance") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001085/0.001084, allocations: 112 kB / 17.68 MB, free: 5.332 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001097/0.001097, allocations: 190.9 kB / 18.62 MB, free: 4.41 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.477/1.477, allocations: 222.9 MB / 242.3 MB, free: 15.14 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001023/0.001023, allocations: 50 kB / 302 MB, free: 5.168 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1185/0.1195, allocations: 49.44 MB / 351.5 MB, free: 3.699 MB / 286.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Batteries.Examples.ShowImpedance): time 0.003684/0.1233, allocations: 1.892 MB / 353.4 MB, free: 1.793 MB / 286.1 MB Notification: Performance of NFInst.instExpressions: time 0.001925/0.1252, allocations: 1.238 MB / 354.6 MB, free: 0.5469 MB / 286.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 9.798e-05/0.1253, allocations: 0 / 354.6 MB, free: 0.5469 MB / 286.1 MB Notification: Performance of NFTyping.typeComponents: time 0.001066/0.1265, allocations: 0.5063 MB / 355.1 MB, free: 40 kB / 286.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0002467/0.1267, allocations: 187.4 kB / 355.3 MB, free: 15.86 MB / 302.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.000493/0.1272, allocations: 179.3 kB / 355.5 MB, free: 15.68 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 0.0003958/0.1276, allocations: 235.1 kB / 355.7 MB, free: 15.45 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001229/0.1278, allocations: 29.66 kB / 355.7 MB, free: 15.42 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002029/0.128, allocations: 115.6 kB / 355.9 MB, free: 15.3 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.000312/0.1283, allocations: 215.4 kB / 356.1 MB, free: 15.09 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 2.514e-05/0.1283, allocations: 8 kB / 356.1 MB, free: 15.09 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001904/0.1285, allocations: 67.95 kB / 356.1 MB, free: 15.02 MB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0002236/0.1288, allocations: 255.3 kB / 356.4 MB, free: 14.77 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0002469/0.129, allocations: 277.9 kB / 356.7 MB, free: 14.5 MB / 302.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0007921/0.1298, allocations: 0.7746 MB / 357.4 MB, free: 13.72 MB / 302.1 MB Notification: Performance of FrontEnd - DAE generated: time 6.983e-06/0.1298, allocations: 3.938 kB / 357.4 MB, free: 13.71 MB / 302.1 MB Notification: Performance of FrontEnd: time 2.465e-06/0.1299, allocations: 0 / 357.4 MB, free: 13.71 MB / 302.1 MB Notification: Performance of Transformations before backend: time 1.007e-05/0.1299, allocations: 0 / 357.4 MB, free: 13.71 MB / 302.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.00311/0.133, allocations: 1.181 MB / 358.6 MB, free: 12.48 MB / 302.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.781e-05/0.133, allocations: 8.031 kB / 358.6 MB, free: 12.47 MB / 302.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002126/0.1333, allocations: 87.89 kB / 358.7 MB, free: 12.39 MB / 302.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001234/0.1345, allocations: 0.7469 MB / 359.5 MB, free: 11.59 MB / 302.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.183e-05/0.1345, allocations: 384 / 359.5 MB, free: 11.59 MB / 302.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.984e-05/0.1346, allocations: 8.375 kB / 359.5 MB, free: 11.58 MB / 302.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003054/0.1349, allocations: 117.9 kB / 359.6 MB, free: 11.46 MB / 302.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.009e-05/0.1349, allocations: 0 / 359.6 MB, free: 11.46 MB / 302.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.93e-05/0.1349, allocations: 3.984 kB / 359.6 MB, free: 11.45 MB / 302.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.304e-06/0.135, allocations: 4 kB / 359.6 MB, free: 11.45 MB / 302.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0003863/0.1353, allocations: 147.8 kB / 359.7 MB, free: 11.3 MB / 302.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.00126/0.1366, allocations: 0.8181 MB / 360.6 MB, free: 10.44 MB / 302.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.000211/0.1368, allocations: 82.52 kB / 360.6 MB, free: 10.35 MB / 302.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001666/0.137, allocations: 76.84 kB / 360.7 MB, free: 10.27 MB / 302.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.979e-05/0.137, allocations: 3.984 kB / 360.7 MB, free: 10.27 MB / 302.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.451e-05/0.1371, allocations: 38.56 kB / 360.8 MB, free: 10.22 MB / 302.1 MB Notification: Performance of pre-optimization done (n=3): time 3.045e-06/0.1371, allocations: 4 kB / 360.8 MB, free: 10.21 MB / 302.1 MB Notification: Performance of matching and sorting (n=3): time 0.0008384/0.138, allocations: 320.4 kB / 361.1 MB, free: 9.895 MB / 302.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.094e-05/0.138, allocations: 51.41 kB / 361.1 MB, free: 9.832 MB / 302.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001902/0.1399, allocations: 1.409 MB / 362.5 MB, free: 8.402 MB / 302.1 MB Notification: Performance of collectPreVariables (initialization): time 4.028e-05/0.14, allocations: 25.7 kB / 362.6 MB, free: 8.371 MB / 302.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.000331/0.1403, allocations: 388.4 kB / 362.9 MB, free: 7.988 MB / 302.1 MB Notification: Performance of collectInitialBindings (initialization): time 3.052e-05/0.1404, allocations: 7.812 kB / 362.9 MB, free: 7.98 MB / 302.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 7.292e-05/0.1404, allocations: 25.7 kB / 363 MB, free: 7.949 MB / 302.1 MB Notification: Performance of setup shared object (initialization): time 0.0001238/0.1406, allocations: 310 kB / 363.3 MB, free: 7.641 MB / 302.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001815/0.1408, allocations: 67.94 kB / 363.3 MB, free: 7.574 MB / 302.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001832/0.1409, allocations: 78.53 kB / 363.4 MB, free: 7.488 MB / 302.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003542/0.1413, allocations: 174.3 kB / 363.6 MB, free: 7.309 MB / 302.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.186e-06/0.1413, allocations: 0 / 363.6 MB, free: 7.309 MB / 302.1 MB Notification: Performance of matching and sorting (n=3) (initialization): time 0.0006861/0.142, allocations: 264.5 kB / 363.8 MB, free: 7.043 MB / 302.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.336e-05/0.1421, allocations: 4 kB / 363.8 MB, free: 7.039 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.156e-06/0.1421, allocations: 4.094 kB / 363.8 MB, free: 7.035 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.976e-05/0.1421, allocations: 4 kB / 363.9 MB, free: 7.031 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002201/0.1423, allocations: 11.98 kB / 363.9 MB, free: 7.02 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 8.756e-06/0.1423, allocations: 0 / 363.9 MB, free: 7.02 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002296/0.1426, allocations: 11.98 kB / 363.9 MB, free: 7.008 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.168e-05/0.1426, allocations: 4 kB / 363.9 MB, free: 7.004 MB / 302.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.0004334/0.143, allocations: 345.5 kB / 364.2 MB, free: 6.656 MB / 302.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002257/0.1433, allocations: 90.86 kB / 364.3 MB, free: 6.566 MB / 302.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0006686/0.144, allocations: 277.6 kB / 364.6 MB, free: 6.285 MB / 302.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.034e-05/0.144, allocations: 4 kB / 364.6 MB, free: 6.281 MB / 302.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.644e-06/0.144, allocations: 0 / 364.6 MB, free: 6.281 MB / 302.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.558e-06/0.144, allocations: 4 kB / 364.6 MB, free: 6.277 MB / 302.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0006377/0.1447, allocations: 0.5143 MB / 365.1 MB, free: 5.715 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.72e-06/0.1447, allocations: 0 / 365.1 MB, free: 5.715 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 9.111e-05/0.1448, allocations: 11.98 kB / 365.1 MB, free: 5.703 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 6.301e-06/0.1448, allocations: 0 / 365.1 MB, free: 5.703 MB / 302.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.731e-05/0.1448, allocations: 4 kB / 365.1 MB, free: 5.699 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 4.909e-06/0.1448, allocations: 0 / 365.1 MB, free: 5.699 MB / 302.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.234e-06/0.1448, allocations: 7.938 kB / 365.1 MB, free: 5.691 MB / 302.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0005307/0.1454, allocations: 318.8 kB / 365.4 MB, free: 5.363 MB / 302.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0004276/0.1458, allocations: 223.9 kB / 365.7 MB, free: 5.125 MB / 302.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 7.129e-05/0.1459, allocations: 11.98 kB / 365.7 MB, free: 5.113 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.00019/0.1461, allocations: 4 kB / 365.7 MB, free: 5.109 MB / 302.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.724e-05/0.1461, allocations: 3.984 kB / 365.7 MB, free: 5.105 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.569e-05/0.1462, allocations: 4 kB / 365.7 MB, free: 5.102 MB / 302.1 MB Notification: Performance of sorting global known variables: time 0.001273/0.1475, allocations: 1.013 MB / 366.7 MB, free: 4.078 MB / 302.1 MB Notification: Performance of sort global known variables: time 5.91e-07/0.1475, allocations: 4 kB / 366.7 MB, free: 4.074 MB / 302.1 MB Notification: Performance of remove unused functions: time 0.0003729/0.1478, allocations: 64 kB / 366.8 MB, free: 4.012 MB / 302.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.0002248/0.1481, allocations: 107.8 kB / 366.9 MB, free: 3.895 MB / 302.1 MB Notification: Performance of simCode: created initialization part: time 0.0004178/0.1485, allocations: 136 kB / 367 MB, free: 3.762 MB / 302.1 MB Notification: Performance of simCode: created event and clocks part: time 2.335e-06/0.1485, allocations: 0 / 367 MB, free: 3.762 MB / 302.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0001601/0.1487, allocations: 51.95 kB / 367 MB, free: 3.711 MB / 302.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000604/0.1493, allocations: 96.33 kB / 367.1 MB, free: 3.617 MB / 302.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002225/0.1515, allocations: 1.369 MB / 368.5 MB, free: 2.219 MB / 302.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0006886/0.1523, allocations: 1.005 MB / 369.5 MB, free: 1.191 MB / 302.1 MB Notification: Performance of simCode: alias equations: time 0.0006889/0.153, allocations: 466.1 kB / 370 MB, free: 0.7344 MB / 302.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.000123/0.1531, allocations: 39.44 kB / 370 MB, free: 0.6953 MB / 302.1 MB Notification: Performance of SimCode: time 1.403e-06/0.1531, allocations: 0 / 370 MB, free: 0.6953 MB / 302.1 MB Notification: Performance of Templates: time 0.2018/0.3549, allocations: 7.412 MB / 377.4 MB, free: 24.46 MB / 302.1 MB make -j1 -f Modelica_4.0.0_Modelica.Electrical.Batteries.Examples.ShowImpedance.makefile (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 -s cvode -emit_protected -lv LOG_STATS > Modelica_4.0.0_Modelica.Electrical.Batteries.Examples.ShowImpedance.pipe 2>&1) diffSimulationResults("Modelica_4.0.0_Modelica.Electrical.Batteries.Examples.ShowImpedance_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Electrical/Batteries/Examples/ShowImpedance/ShowImpedance.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_4.0.0_Modelica.Electrical.Batteries.Examples.ShowImpedance.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches