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.0009283/0.0009283, allocations: 91.48 kB / 16.65 MB, free: 6.59 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.001048/0.001048, allocations: 182.7 kB / 17.56 MB, free: 6.203 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.495/1.495, allocations: 223.3 MB / 241.6 MB, free: 196 kB / 190.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0003106/0.0003106, allocations: 12.45 kB / 301.4 MB, free: 6.121 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1237/0.124, allocations: 50.4 MB / 351.8 MB, free: 3.707 MB / 286.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Batteries.Examples.ShowImpedance): time 0.002322/0.1264, allocations: 1.611 MB / 353.4 MB, free: 2.082 MB / 286.1 MB Notification: Performance of NFInst.instExpressions: time 0.001681/0.1281, allocations: 1.199 MB / 354.6 MB, free: 0.875 MB / 286.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 7.498e-05/0.1282, allocations: 0 / 354.6 MB, free: 0.875 MB / 286.1 MB Notification: Performance of NFTyping.typeComponents: time 0.001048/0.1292, allocations: 0.495 MB / 355.1 MB, free: 388 kB / 286.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0002084/0.1294, allocations: 183.5 kB / 355.3 MB, free: 204 kB / 286.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0004245/0.1299, allocations: 167.5 kB / 355.5 MB, free: 36 kB / 286.1 MB Notification: Performance of NFFlatten.flatten: time 0.0003146/0.1302, allocations: 226.4 kB / 355.7 MB, free: 15.82 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 9.17e-05/0.1303, allocations: 25.69 kB / 355.7 MB, free: 15.79 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001845/0.1305, allocations: 115.6 kB / 355.8 MB, free: 15.68 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.000276/0.1308, allocations: 211.5 kB / 356 MB, free: 15.47 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 2.612e-05/0.1308, allocations: 8 kB / 356 MB, free: 15.46 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001558/0.131, allocations: 59.91 kB / 356.1 MB, free: 15.4 MB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0002034/0.1312, allocations: 263.2 kB / 356.4 MB, free: 15.14 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0002298/0.1314, allocations: 291.6 kB / 356.6 MB, free: 14.85 MB / 302.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0006805/0.1321, allocations: 0.751 MB / 357.4 MB, free: 14.1 MB / 302.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.096e-06/0.1321, allocations: 0 / 357.4 MB, free: 14.1 MB / 302.1 MB Notification: Performance of FrontEnd: time 1.834e-06/0.1321, allocations: 0 / 357.4 MB, free: 14.1 MB / 302.1 MB Notification: Performance of Transformations before backend: time 7.865e-06/0.1321, allocations: 0 / 357.4 MB, free: 14.1 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.002488/0.1346, allocations: 1.073 MB / 358.5 MB, free: 12.97 MB / 302.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.077e-05/0.1347, allocations: 8.031 kB / 358.5 MB, free: 12.96 MB / 302.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001893/0.1349, allocations: 87.89 kB / 358.6 MB, free: 12.88 MB / 302.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0009258/0.1358, allocations: 0.7547 MB / 359.3 MB, free: 12.07 MB / 302.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.778e-05/0.1358, allocations: 8.375 kB / 359.3 MB, free: 12.06 MB / 302.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.862e-05/0.1359, allocations: 384 / 359.3 MB, free: 12.06 MB / 302.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002945/0.1362, allocations: 125.9 kB / 359.4 MB, free: 11.93 MB / 302.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 6.963e-06/0.1362, allocations: 0 / 359.4 MB, free: 11.93 MB / 302.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.577e-05/0.1362, allocations: 0 / 359.4 MB, free: 11.93 MB / 302.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.148e-06/0.1362, allocations: 0 / 359.4 MB, free: 11.93 MB / 302.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0003705/0.1366, allocations: 159.9 kB / 359.6 MB, free: 11.78 MB / 302.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0009871/0.1376, allocations: 0.8103 MB / 360.4 MB, free: 10.92 MB / 302.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002094/0.1378, allocations: 94.52 kB / 360.5 MB, free: 10.82 MB / 302.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001763/0.138, allocations: 80.89 kB / 360.6 MB, free: 10.73 MB / 302.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.245e-05/0.138, allocations: 0 / 360.6 MB, free: 10.73 MB / 302.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.444e-05/0.138, allocations: 30.56 kB / 360.6 MB, free: 10.7 MB / 302.1 MB Notification: Performance of pre-optimization done (n=3): time 1.092e-06/0.1381, allocations: 3.938 kB / 360.6 MB, free: 10.69 MB / 302.1 MB Notification: Performance of matching and sorting (n=3): time 0.0008082/0.1389, allocations: 348.3 kB / 361 MB, free: 10.34 MB / 302.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.735e-05/0.1389, allocations: 55.41 kB / 361 MB, free: 10.28 MB / 302.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001574/0.1405, allocations: 1.405 MB / 362.4 MB, free: 8.852 MB / 302.1 MB Notification: Performance of collectPreVariables (initialization): time 2.153e-05/0.1405, allocations: 29.7 kB / 362.4 MB, free: 8.816 MB / 302.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0003015/0.1408, allocations: 384.4 kB / 362.8 MB, free: 8.438 MB / 302.1 MB Notification: Performance of collectInitialBindings (initialization): time 2.574e-05/0.1409, allocations: 3.906 kB / 362.8 MB, free: 8.434 MB / 302.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.405e-05/0.1409, allocations: 13.7 kB / 362.8 MB, free: 8.414 MB / 302.1 MB Notification: Performance of setup shared object (initialization): time 0.0001025/0.141, allocations: 314 kB / 363.1 MB, free: 8.102 MB / 302.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001992/0.1412, allocations: 63.95 kB / 363.2 MB, free: 8.039 MB / 302.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001897/0.1414, allocations: 98.45 kB / 363.3 MB, free: 7.934 MB / 302.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003705/0.1418, allocations: 182.3 kB / 363.5 MB, free: 7.746 MB / 302.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.565e-06/0.1418, allocations: 0 / 363.5 MB, free: 7.746 MB / 302.1 MB Notification: Performance of matching and sorting (n=3) (initialization): time 0.0005953/0.1424, allocations: 272.5 kB / 363.8 MB, free: 7.473 MB / 302.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.859e-05/0.1424, allocations: 4 kB / 363.8 MB, free: 7.469 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.985e-06/0.1425, allocations: 7.984 kB / 363.8 MB, free: 7.461 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.247e-05/0.1425, allocations: 0 / 363.8 MB, free: 7.461 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001946/0.1427, allocations: 15.98 kB / 363.8 MB, free: 7.445 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.031e-06/0.1427, allocations: 0 / 363.8 MB, free: 7.445 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002004/0.1429, allocations: 15.89 kB / 363.8 MB, free: 7.43 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.806e-05/0.1429, allocations: 4 kB / 363.8 MB, free: 7.426 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.0003336/0.1433, allocations: 345.7 kB / 364.1 MB, free: 7.078 MB / 302.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001733/0.1434, allocations: 86.95 kB / 364.2 MB, free: 6.992 MB / 302.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0006423/0.1441, allocations: 285.5 kB / 364.5 MB, free: 6.703 MB / 302.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 9.658e-06/0.1441, allocations: 4 kB / 364.5 MB, free: 6.699 MB / 302.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.113e-06/0.1441, allocations: 0 / 364.5 MB, free: 6.699 MB / 302.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.969e-06/0.1441, allocations: 0 / 364.5 MB, free: 6.699 MB / 302.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0006202/0.1448, allocations: 0.522 MB / 365 MB, free: 6.129 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.657e-06/0.1448, allocations: 0 / 365 MB, free: 6.129 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 9.159e-05/0.1449, allocations: 19.98 kB / 365 MB, free: 6.109 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.254e-06/0.1449, allocations: 0 / 365 MB, free: 6.109 MB / 302.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.114e-05/0.1449, allocations: 0 / 365 MB, free: 6.109 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.276e-06/0.1449, allocations: 4 kB / 365 MB, free: 6.105 MB / 302.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.733e-06/0.1449, allocations: 0 / 365 MB, free: 6.105 MB / 302.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0005637/0.1455, allocations: 338.7 kB / 365.4 MB, free: 5.758 MB / 302.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002764/0.1458, allocations: 216 kB / 365.6 MB, free: 5.527 MB / 302.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 6.554e-05/0.1458, allocations: 11.92 kB / 365.6 MB, free: 5.516 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001942/0.146, allocations: 8 kB / 365.6 MB, free: 5.508 MB / 302.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.754e-05/0.1461, allocations: 7.984 kB / 365.6 MB, free: 5.5 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.195e-06/0.1461, allocations: 0 / 365.6 MB, free: 5.5 MB / 302.1 MB Notification: Performance of sorting global known variables: time 0.001237/0.1474, allocations: 1.017 MB / 366.6 MB, free: 4.473 MB / 302.1 MB Notification: Performance of sort global known variables: time 1.2e-07/0.1474, allocations: 0 / 366.6 MB, free: 4.473 MB / 302.1 MB Notification: Performance of remove unused functions: time 0.0003393/0.1477, allocations: 60 kB / 366.7 MB, free: 4.414 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.0002206/0.1479, allocations: 115.2 kB / 366.8 MB, free: 4.289 MB / 302.1 MB Notification: Performance of simCode: created initialization part: time 0.0004139/0.1484, allocations: 143.8 kB / 366.9 MB, free: 4.148 MB / 302.1 MB Notification: Performance of simCode: created event and clocks part: time 2.114e-06/0.1484, allocations: 0 / 366.9 MB, free: 4.148 MB / 302.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0001719/0.1486, allocations: 59.95 kB / 367 MB, free: 4.09 MB / 302.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0006266/0.1492, allocations: 100.5 kB / 367.1 MB, free: 3.992 MB / 302.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001977/0.1512, allocations: 1.555 MB / 368.7 MB, free: 2.402 MB / 302.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0006454/0.1518, allocations: 1.001 MB / 369.7 MB, free: 1.379 MB / 302.1 MB Notification: Performance of simCode: alias equations: time 0.00062/0.1525, allocations: 466.1 kB / 370.1 MB, free: 0.9219 MB / 302.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001147/0.1526, allocations: 43.42 kB / 370.2 MB, free: 0.8789 MB / 302.1 MB Notification: Performance of SimCode: time 5.61e-07/0.1526, allocations: 0 / 370.2 MB, free: 0.8789 MB / 302.1 MB Notification: Performance of Templates: time 0.1968/0.3494, allocations: 6.978 MB / 377.1 MB, free: 23.74 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 -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/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) Reference file matches