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.00158/0.00158, allocations: 115.9 kB / 16.63 MB, free: 6.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.001848/0.001848, allocations: 190 kB / 17.55 MB, free: 5.801 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.428/1.428, allocations: 222.9 MB / 241.2 MB, free: 15.41 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001062/0.001062, allocations: 42.69 kB / 300.1 MB, free: 6.215 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1106/0.1117, allocations: 49.44 MB / 349.6 MB, free: 4.77 MB / 286.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Batteries.Examples.ShowImpedance): time 0.003118/0.1148, allocations: 1.951 MB / 351.5 MB, free: 2.801 MB / 286.1 MB Notification: Performance of NFInst.instExpressions: time 0.001547/0.1164, allocations: 1.207 MB / 352.7 MB, free: 1.586 MB / 286.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 7.213e-05/0.1165, allocations: 0 / 352.7 MB, free: 1.586 MB / 286.1 MB Notification: Performance of NFTyping.typeComponents: time 0.000949/0.1175, allocations: 0.5067 MB / 353.2 MB, free: 1.078 MB / 286.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0002099/0.1177, allocations: 183.5 kB / 353.4 MB, free: 0.8984 MB / 286.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003816/0.1181, allocations: 167.4 kB / 353.6 MB, free: 0.7344 MB / 286.1 MB Notification: Performance of NFFlatten.flatten: time 0.0002954/0.1184, allocations: 227.1 kB / 353.8 MB, free: 0.5117 MB / 286.1 MB Notification: Performance of NFFlatten.resolveConnections: time 8.799e-05/0.1185, allocations: 29.66 kB / 353.8 MB, free: 492 kB / 286.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001751/0.1187, allocations: 119.6 kB / 353.9 MB, free: 372 kB / 286.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002483/0.1189, allocations: 219.5 kB / 354.2 MB, free: 152 kB / 286.1 MB Notification: Performance of NFPackage.collectConstants: time 2.219e-05/0.1189, allocations: 8 kB / 354.2 MB, free: 144 kB / 286.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001303/0.1191, allocations: 59.97 kB / 354.2 MB, free: 84 kB / 286.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0002059/0.1193, allocations: 267.3 kB / 354.5 MB, free: 15.82 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0002225/0.1195, allocations: 281.9 kB / 354.8 MB, free: 15.54 MB / 302.1 MB Notification: Performance of NFConvertDAE.convert: time 0.000682/0.1202, allocations: 0.7628 MB / 355.5 MB, free: 14.78 MB / 302.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.337e-06/0.1202, allocations: 0 / 355.5 MB, free: 14.78 MB / 302.1 MB Notification: Performance of FrontEnd: time 2.024e-06/0.1202, allocations: 0 / 355.5 MB, free: 14.78 MB / 302.1 MB Notification: Performance of Transformations before backend: time 8.336e-06/0.1202, allocations: 0 / 355.5 MB, free: 14.78 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.002424/0.1227, allocations: 1.181 MB / 356.7 MB, free: 13.54 MB / 302.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.461e-05/0.1227, allocations: 8.031 kB / 356.7 MB, free: 13.54 MB / 302.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001875/0.1229, allocations: 87.89 kB / 356.8 MB, free: 13.45 MB / 302.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0009146/0.1238, allocations: 0.7469 MB / 357.5 MB, free: 12.65 MB / 302.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.165e-05/0.1238, allocations: 4.375 kB / 357.5 MB, free: 12.64 MB / 302.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.869e-05/0.1239, allocations: 4.375 kB / 357.5 MB, free: 12.64 MB / 302.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002831/0.1242, allocations: 117.9 kB / 357.7 MB, free: 12.52 MB / 302.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 6.913e-06/0.1242, allocations: 0 / 357.7 MB, free: 12.52 MB / 302.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.538e-05/0.1242, allocations: 0 / 357.7 MB, free: 12.52 MB / 302.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.807e-06/0.1242, allocations: 0 / 357.7 MB, free: 12.52 MB / 302.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0003519/0.1246, allocations: 147.8 kB / 357.8 MB, free: 12.38 MB / 302.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0009375/0.1255, allocations: 0.822 MB / 358.6 MB, free: 11.5 MB / 302.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002196/0.1257, allocations: 82.52 kB / 358.7 MB, free: 11.41 MB / 302.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001707/0.1259, allocations: 72.91 kB / 358.8 MB, free: 11.34 MB / 302.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.94e-05/0.1259, allocations: 0 / 358.8 MB, free: 11.34 MB / 302.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.573e-05/0.126, allocations: 42.5 kB / 358.8 MB, free: 11.29 MB / 302.1 MB Notification: Performance of pre-optimization done (n=3): time 8.92e-07/0.126, allocations: 0 / 358.8 MB, free: 11.29 MB / 302.1 MB Notification: Performance of matching and sorting (n=3): time 0.0007851/0.1268, allocations: 332.4 kB / 359.1 MB, free: 10.96 MB / 302.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.588e-05/0.1268, allocations: 51.41 kB / 359.2 MB, free: 10.89 MB / 302.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001561/0.1284, allocations: 1.405 MB / 360.6 MB, free: 9.469 MB / 302.1 MB Notification: Performance of collectPreVariables (initialization): time 2.264e-05/0.1284, allocations: 29.7 kB / 360.6 MB, free: 9.434 MB / 302.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0003168/0.1287, allocations: 384.4 kB / 361 MB, free: 9.055 MB / 302.1 MB Notification: Performance of collectInitialBindings (initialization): time 2.918e-05/0.1288, allocations: 15.81 kB / 361 MB, free: 9.039 MB / 302.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 5.759e-05/0.1288, allocations: 13.72 kB / 361 MB, free: 9.02 MB / 302.1 MB Notification: Performance of setup shared object (initialization): time 0.0001033/0.129, allocations: 310 kB / 361.3 MB, free: 8.711 MB / 302.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001835/0.1291, allocations: 67.95 kB / 361.4 MB, free: 8.645 MB / 302.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001756/0.1293, allocations: 90.45 kB / 361.5 MB, free: 8.547 MB / 302.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003531/0.1297, allocations: 170.3 kB / 361.7 MB, free: 8.371 MB / 302.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.096e-06/0.1297, allocations: 0 / 361.7 MB, free: 8.371 MB / 302.1 MB Notification: Performance of matching and sorting (n=3) (initialization): time 0.0005828/0.1303, allocations: 260.5 kB / 361.9 MB, free: 8.109 MB / 302.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.548e-05/0.1303, allocations: 8.094 kB / 361.9 MB, free: 8.102 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.041e-06/0.1303, allocations: 0 / 361.9 MB, free: 8.102 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.467e-05/0.1304, allocations: 3.984 kB / 361.9 MB, free: 8.098 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000199/0.1306, allocations: 15.98 kB / 361.9 MB, free: 8.082 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.58e-06/0.1306, allocations: 0 / 361.9 MB, free: 8.082 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002051/0.1308, allocations: 12.27 kB / 362 MB, free: 8.07 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.622e-05/0.1308, allocations: 3.938 kB / 362 MB, free: 8.066 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.0003236/0.1311, allocations: 341.6 kB / 362.3 MB, free: 7.723 MB / 302.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001837/0.1313, allocations: 94.86 kB / 362.4 MB, free: 7.629 MB / 302.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0005959/0.1319, allocations: 269.3 kB / 362.6 MB, free: 7.355 MB / 302.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.529e-06/0.132, allocations: 4 kB / 362.7 MB, free: 7.352 MB / 302.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.48e-06/0.132, allocations: 4 kB / 362.7 MB, free: 7.348 MB / 302.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.875e-06/0.132, allocations: 0 / 362.7 MB, free: 7.348 MB / 302.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0005489/0.1325, allocations: 0.522 MB / 363.2 MB, free: 6.777 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.777e-06/0.1325, allocations: 0 / 363.2 MB, free: 6.777 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 8.721e-05/0.1326, allocations: 11.98 kB / 363.2 MB, free: 6.766 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.014e-06/0.1326, allocations: 0 / 363.2 MB, free: 6.766 MB / 302.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.158e-05/0.1327, allocations: 0 / 363.2 MB, free: 6.766 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.687e-06/0.1327, allocations: 3.938 kB / 363.2 MB, free: 6.762 MB / 302.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.22e-07/0.1327, allocations: 0 / 363.2 MB, free: 6.762 MB / 302.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0004826/0.1332, allocations: 322.9 kB / 363.5 MB, free: 6.43 MB / 302.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002753/0.1334, allocations: 223.9 kB / 363.7 MB, free: 6.191 MB / 302.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 6.895e-05/0.1335, allocations: 4 kB / 363.7 MB, free: 6.188 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002095/0.1337, allocations: 11.98 kB / 363.7 MB, free: 6.176 MB / 302.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.336e-05/0.1338, allocations: 7.984 kB / 363.8 MB, free: 6.168 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.677e-06/0.1338, allocations: 0 / 363.8 MB, free: 6.168 MB / 302.1 MB Notification: Performance of sorting global known variables: time 0.001148/0.135, allocations: 1.021 MB / 364.8 MB, free: 5.137 MB / 302.1 MB Notification: Performance of sort global known variables: time 1.5e-07/0.135, allocations: 0 / 364.8 MB, free: 5.137 MB / 302.1 MB Notification: Performance of remove unused functions: time 0.0003251/0.1353, allocations: 60 kB / 364.8 MB, free: 5.078 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.000186/0.1355, allocations: 115.2 kB / 364.9 MB, free: 4.953 MB / 302.1 MB Notification: Performance of simCode: created initialization part: time 0.0003758/0.1359, allocations: 131.8 kB / 365.1 MB, free: 4.824 MB / 302.1 MB Notification: Performance of simCode: created event and clocks part: time 3.787e-06/0.1359, allocations: 4 kB / 365.1 MB, free: 4.82 MB / 302.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0001639/0.136, allocations: 48.06 kB / 365.1 MB, free: 4.773 MB / 302.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005777/0.1366, allocations: 114.8 kB / 365.2 MB, free: 4.668 MB / 302.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.00187/0.1385, allocations: 1.535 MB / 366.8 MB, free: 3.105 MB / 302.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005679/0.1391, allocations: 1.001 MB / 367.8 MB, free: 2.082 MB / 302.1 MB Notification: Performance of simCode: alias equations: time 0.0006142/0.1397, allocations: 470.1 kB / 368.2 MB, free: 1.621 MB / 302.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001141/0.1398, allocations: 39.38 kB / 368.3 MB, free: 1.582 MB / 302.1 MB Notification: Performance of SimCode: time 4.41e-07/0.1398, allocations: 0 / 368.3 MB, free: 1.582 MB / 302.1 MB Notification: Performance of Templates: time 0.2003/0.3402, allocations: 7.335 MB / 375.6 MB, free: 25.68 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