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.00106/0.00106, allocations: 111.4 kB / 17.68 MB, free: 5.496 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.001082/0.001083, allocations: 192 kB / 18.62 MB, free: 4.562 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.382/1.382, allocations: 222.9 MB / 242.3 MB, free: 15.17 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001007/0.001007, allocations: 43.34 kB / 302 MB, free: 5.16 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1063/0.1073, allocations: 49.45 MB / 351.5 MB, free: 3.684 MB / 286.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Batteries.Examples.ShowImpedance): time 0.003393/0.1107, allocations: 1.885 MB / 353.4 MB, free: 1.781 MB / 286.1 MB Notification: Performance of NFInst.instExpressions: time 0.001692/0.1124, allocations: 1.23 MB / 354.6 MB, free: 0.543 MB / 286.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 8.229e-05/0.1125, allocations: 0 / 354.6 MB, free: 0.543 MB / 286.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0009495/0.1135, allocations: 0.5062 MB / 355.1 MB, free: 36 kB / 286.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0002174/0.1138, allocations: 199.4 kB / 355.3 MB, free: 15.84 MB / 302.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0004129/0.1142, allocations: 171.4 kB / 355.5 MB, free: 15.67 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 0.0003308/0.1145, allocations: 235.1 kB / 355.7 MB, free: 15.44 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001057/0.1147, allocations: 21.69 kB / 355.7 MB, free: 15.42 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001835/0.1148, allocations: 119.5 kB / 355.8 MB, free: 15.3 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002463/0.1151, allocations: 215.5 kB / 356.1 MB, free: 15.09 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 2.425e-05/0.1151, allocations: 8 kB / 356.1 MB, free: 15.08 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001481/0.1153, allocations: 67.89 kB / 356.1 MB, free: 15.02 MB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001852/0.1155, allocations: 259.3 kB / 356.4 MB, free: 14.76 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0002057/0.1157, allocations: 273.9 kB / 356.7 MB, free: 14.49 MB / 302.1 MB Notification: Performance of NFConvertDAE.convert: time 0.000644/0.1163, allocations: 0.7706 MB / 357.4 MB, free: 13.72 MB / 302.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.248e-06/0.1164, allocations: 0 / 357.4 MB, free: 13.72 MB / 302.1 MB Notification: Performance of FrontEnd: time 1.543e-06/0.1164, allocations: 0 / 357.4 MB, free: 13.72 MB / 302.1 MB Notification: Performance of Transformations before backend: time 8.085e-06/0.1164, allocations: 0 / 357.4 MB, free: 13.72 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.002707/0.1191, allocations: 1.185 MB / 358.6 MB, free: 12.48 MB / 302.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.496e-05/0.1192, allocations: 12.03 kB / 358.6 MB, free: 12.47 MB / 302.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001965/0.1194, allocations: 87.91 kB / 358.7 MB, free: 12.38 MB / 302.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001119/0.1205, allocations: 0.7469 MB / 359.5 MB, free: 11.58 MB / 302.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.791e-05/0.1205, allocations: 4.375 kB / 359.5 MB, free: 11.58 MB / 302.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.148e-05/0.1205, allocations: 4.375 kB / 359.5 MB, free: 11.57 MB / 302.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003085/0.1209, allocations: 121.9 kB / 359.6 MB, free: 11.45 MB / 302.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 9.478e-06/0.1209, allocations: 0 / 359.6 MB, free: 11.45 MB / 302.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.701e-05/0.1209, allocations: 0 / 359.6 MB, free: 11.45 MB / 302.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.593e-06/0.1209, allocations: 0 / 359.6 MB, free: 11.45 MB / 302.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0003361/0.1212, allocations: 147.9 kB / 359.7 MB, free: 11.3 MB / 302.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001095/0.1224, allocations: 0.8259 MB / 360.6 MB, free: 10.43 MB / 302.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002029/0.1226, allocations: 90.41 kB / 360.6 MB, free: 10.33 MB / 302.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001672/0.1227, allocations: 76.89 kB / 360.7 MB, free: 10.25 MB / 302.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.722e-05/0.1228, allocations: 0 / 360.7 MB, free: 10.25 MB / 302.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.445e-05/0.1228, allocations: 30.56 kB / 360.7 MB, free: 10.21 MB / 302.1 MB Notification: Performance of pre-optimization done (n=3): time 1.002e-06/0.1228, allocations: 0 / 360.7 MB, free: 10.21 MB / 302.1 MB Notification: Performance of matching and sorting (n=3): time 0.0007887/0.1236, allocations: 336.4 kB / 361.1 MB, free: 9.879 MB / 302.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.185e-05/0.1237, allocations: 55.34 kB / 361.1 MB, free: 9.812 MB / 302.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001728/0.1254, allocations: 1.401 MB / 362.5 MB, free: 8.391 MB / 302.1 MB Notification: Performance of collectPreVariables (initialization): time 2.281e-05/0.1254, allocations: 25.7 kB / 362.6 MB, free: 8.359 MB / 302.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0003235/0.1258, allocations: 384.4 kB / 362.9 MB, free: 7.98 MB / 302.1 MB Notification: Performance of collectInitialBindings (initialization): time 3.225e-05/0.1258, allocations: 11.8 kB / 362.9 MB, free: 7.969 MB / 302.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 7.814e-05/0.1259, allocations: 25.72 kB / 363 MB, free: 7.938 MB / 302.1 MB Notification: Performance of setup shared object (initialization): time 0.0001241/0.126, allocations: 310 kB / 363.3 MB, free: 7.629 MB / 302.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001635/0.1262, allocations: 67.95 kB / 363.3 MB, free: 7.562 MB / 302.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001657/0.1264, allocations: 82.52 kB / 363.4 MB, free: 7.473 MB / 302.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003165/0.1267, allocations: 162.3 kB / 363.6 MB, free: 7.305 MB / 302.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.284e-06/0.1267, allocations: 0 / 363.6 MB, free: 7.305 MB / 302.1 MB Notification: Performance of matching and sorting (n=3) (initialization): time 0.0005578/0.1273, allocations: 264.5 kB / 363.8 MB, free: 7.039 MB / 302.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.594e-05/0.1273, allocations: 4 kB / 363.8 MB, free: 7.035 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.374e-06/0.1273, allocations: 4 kB / 363.8 MB, free: 7.031 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.687e-05/0.1273, allocations: 4.094 kB / 363.8 MB, free: 7.027 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001966/0.1275, allocations: 23.97 kB / 363.9 MB, free: 7.004 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 8.346e-06/0.1275, allocations: 0 / 363.9 MB, free: 7.004 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001885/0.1277, allocations: 4 kB / 363.9 MB, free: 7 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.096e-05/0.1278, allocations: 7.984 kB / 363.9 MB, free: 6.992 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.0003402/0.1281, allocations: 337.6 kB / 364.2 MB, free: 6.652 MB / 302.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001688/0.1283, allocations: 90.86 kB / 364.3 MB, free: 6.562 MB / 302.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0005995/0.1289, allocations: 281.5 kB / 364.6 MB, free: 6.277 MB / 302.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.731e-06/0.1289, allocations: 0 / 364.6 MB, free: 6.277 MB / 302.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.729e-06/0.1289, allocations: 0 / 364.6 MB, free: 6.277 MB / 302.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.085e-06/0.1289, allocations: 4 kB / 364.6 MB, free: 6.273 MB / 302.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0005327/0.1295, allocations: 0.5143 MB / 365.1 MB, free: 5.711 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.368e-06/0.1295, allocations: 0 / 365.1 MB, free: 5.711 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 8.385e-05/0.1296, allocations: 15.97 kB / 365.1 MB, free: 5.695 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.355e-06/0.1296, allocations: 0 / 365.1 MB, free: 5.695 MB / 302.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.429e-05/0.1296, allocations: 4 kB / 365.1 MB, free: 5.691 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.994e-06/0.1296, allocations: 3.938 kB / 365.1 MB, free: 5.688 MB / 302.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.143e-06/0.1296, allocations: 0 / 365.1 MB, free: 5.688 MB / 302.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.000472/0.1301, allocations: 322.8 kB / 365.4 MB, free: 5.355 MB / 302.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0004005/0.1305, allocations: 227.9 kB / 365.7 MB, free: 5.113 MB / 302.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 6.598e-05/0.1306, allocations: 0 / 365.7 MB, free: 5.113 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001898/0.1308, allocations: 7.984 kB / 365.7 MB, free: 5.105 MB / 302.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.993e-05/0.1308, allocations: 8 kB / 365.7 MB, free: 5.098 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.123e-05/0.1309, allocations: 3.984 kB / 365.7 MB, free: 5.094 MB / 302.1 MB Notification: Performance of sorting global known variables: time 0.001197/0.1321, allocations: 1.013 MB / 366.7 MB, free: 4.07 MB / 302.1 MB Notification: Performance of sort global known variables: time 1.7e-07/0.1321, allocations: 0 / 366.7 MB, free: 4.07 MB / 302.1 MB Notification: Performance of remove unused functions: time 0.0003343/0.1324, allocations: 64 kB / 366.7 MB, free: 4.008 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.0002151/0.1326, allocations: 115.7 kB / 366.9 MB, free: 3.883 MB / 302.1 MB Notification: Performance of simCode: created initialization part: time 0.0003683/0.133, allocations: 127.8 kB / 367 MB, free: 3.758 MB / 302.1 MB Notification: Performance of simCode: created event and clocks part: time 3.447e-06/0.133, allocations: 4.188 kB / 367 MB, free: 3.754 MB / 302.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0001577/0.1332, allocations: 55.95 kB / 367 MB, free: 3.699 MB / 302.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000579/0.1338, allocations: 103.4 kB / 367.1 MB, free: 3.602 MB / 302.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001869/0.1357, allocations: 1.369 MB / 368.5 MB, free: 2.203 MB / 302.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0006717/0.1363, allocations: 0.993 MB / 369.5 MB, free: 1.188 MB / 302.1 MB Notification: Performance of simCode: alias equations: time 0.0006147/0.137, allocations: 474.3 kB / 370 MB, free: 0.7227 MB / 302.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001146/0.1371, allocations: 39.42 kB / 370 MB, free: 0.6836 MB / 302.1 MB Notification: Performance of SimCode: time 3.01e-07/0.1371, allocations: 0 / 370 MB, free: 0.6836 MB / 302.1 MB Notification: Performance of Templates: time 0.2377/0.3748, allocations: 7.401 MB / 377.4 MB, free: 25.03 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 gbode -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