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.001084/0.001084, allocations: 101 kB / 17.59 MB, free: 5.422 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.00116/0.001159, allocations: 191.3 kB / 18.51 MB, free: 4.5 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.36/1.36, allocations: 222.9 MB / 242.2 MB, free: 15.21 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0009903/0.0009905, allocations: 47.38 kB / 301.3 MB, free: 5.887 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09535/0.09636, allocations: 49.45 MB / 350.7 MB, free: 4.434 MB / 286.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Batteries.Examples.ShowImpedance): time 0.00361/0.1, allocations: 1.882 MB / 352.6 MB, free: 2.531 MB / 286.1 MB Notification: Performance of NFInst.instExpressions: time 0.00183/0.1019, allocations: 1.242 MB / 353.9 MB, free: 1.281 MB / 286.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001472/0.102, allocations: 4 kB / 353.9 MB, free: 1.277 MB / 286.1 MB Notification: Performance of NFTyping.typeComponents: time 0.001128/0.1032, allocations: 0.5027 MB / 354.4 MB, free: 0.7734 MB / 286.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0002497/0.1035, allocations: 191.4 kB / 354.5 MB, free: 0.5859 MB / 286.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0004711/0.104, allocations: 175.3 kB / 354.7 MB, free: 424 kB / 286.1 MB Notification: Performance of NFFlatten.flatten: time 0.0003604/0.1043, allocations: 235.1 kB / 355 MB, free: 188 kB / 286.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001019/0.1045, allocations: 25.67 kB / 355 MB, free: 160 kB / 286.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002392/0.1047, allocations: 123.6 kB / 355.1 MB, free: 36 kB / 286.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0003138/0.105, allocations: 207.5 kB / 355.3 MB, free: 15.83 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 4.172e-05/0.1051, allocations: 8 kB / 355.3 MB, free: 15.82 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001673/0.1053, allocations: 55.97 kB / 355.4 MB, free: 15.77 MB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0002083/0.1055, allocations: 267.2 kB / 355.6 MB, free: 15.51 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0002412/0.1057, allocations: 277.9 kB / 355.9 MB, free: 15.23 MB / 302.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0006936/0.1064, allocations: 0.7628 MB / 356.7 MB, free: 14.47 MB / 302.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.867e-06/0.1064, allocations: 0 / 356.7 MB, free: 14.47 MB / 302.1 MB Notification: Performance of FrontEnd: time 1.142e-06/0.1065, allocations: 0 / 356.7 MB, free: 14.47 MB / 302.1 MB Notification: Performance of Transformations before backend: time 2.512e-05/0.1065, allocations: 4 kB / 356.7 MB, free: 14.46 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.002759/0.1092, allocations: 1.177 MB / 357.8 MB, free: 13.23 MB / 302.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.217e-05/0.1093, allocations: 12.03 kB / 357.8 MB, free: 13.22 MB / 302.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002359/0.1095, allocations: 91.88 kB / 357.9 MB, free: 13.13 MB / 302.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001042/0.1106, allocations: 0.7391 MB / 358.7 MB, free: 12.34 MB / 302.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.593e-05/0.1106, allocations: 8.375 kB / 358.7 MB, free: 12.33 MB / 302.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.134e-05/0.1107, allocations: 4.375 kB / 358.7 MB, free: 12.33 MB / 302.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002802/0.1109, allocations: 113.9 kB / 358.8 MB, free: 12.21 MB / 302.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 7.594e-06/0.111, allocations: 0 / 358.8 MB, free: 12.21 MB / 302.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.708e-05/0.111, allocations: 4 kB / 358.8 MB, free: 12.21 MB / 302.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.471e-06/0.111, allocations: 4 kB / 358.8 MB, free: 12.2 MB / 302.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0003739/0.1114, allocations: 147.8 kB / 359 MB, free: 12.06 MB / 302.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.00113/0.1125, allocations: 0.8181 MB / 359.8 MB, free: 11.19 MB / 302.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002167/0.1127, allocations: 82.52 kB / 359.9 MB, free: 11.1 MB / 302.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001763/0.1129, allocations: 72.89 kB / 359.9 MB, free: 11.03 MB / 302.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.951e-05/0.113, allocations: 0 / 359.9 MB, free: 11.03 MB / 302.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.616e-05/0.113, allocations: 42.5 kB / 360 MB, free: 10.98 MB / 302.1 MB Notification: Performance of pre-optimization done (n=3): time 1.082e-06/0.113, allocations: 0 / 360 MB, free: 10.98 MB / 302.1 MB Notification: Performance of matching and sorting (n=3): time 0.0008424/0.1139, allocations: 332.4 kB / 360.3 MB, free: 10.64 MB / 302.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.299e-05/0.1139, allocations: 51.41 kB / 360.3 MB, free: 10.58 MB / 302.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001786/0.1157, allocations: 1.413 MB / 361.8 MB, free: 9.148 MB / 302.1 MB Notification: Performance of collectPreVariables (initialization): time 1.986e-05/0.1157, allocations: 25.7 kB / 361.8 MB, free: 9.117 MB / 302.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0003032/0.116, allocations: 380.4 kB / 362.2 MB, free: 8.742 MB / 302.1 MB Notification: Performance of collectInitialBindings (initialization): time 3.296e-05/0.1161, allocations: 19.8 kB / 362.2 MB, free: 8.723 MB / 302.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 6.254e-05/0.1161, allocations: 21.7 kB / 362.2 MB, free: 8.695 MB / 302.1 MB Notification: Performance of setup shared object (initialization): time 0.0001028/0.1163, allocations: 310 kB / 362.5 MB, free: 8.387 MB / 302.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001803/0.1164, allocations: 63.94 kB / 362.6 MB, free: 8.324 MB / 302.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001802/0.1166, allocations: 86.52 kB / 362.6 MB, free: 8.23 MB / 302.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003753/0.117, allocations: 166.3 kB / 362.8 MB, free: 8.059 MB / 302.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.494e-06/0.117, allocations: 0 / 362.8 MB, free: 8.059 MB / 302.1 MB Notification: Performance of matching and sorting (n=3) (initialization): time 0.000604/0.1176, allocations: 264.5 kB / 363.1 MB, free: 7.793 MB / 302.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.782e-05/0.1177, allocations: 8.031 kB / 363.1 MB, free: 7.785 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.083e-06/0.1177, allocations: 0 / 363.1 MB, free: 7.785 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.591e-05/0.1177, allocations: 4 kB / 363.1 MB, free: 7.781 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001887/0.1179, allocations: 11.98 kB / 363.1 MB, free: 7.77 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.187e-05/0.1179, allocations: 11.97 kB / 363.1 MB, free: 7.758 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002175/0.1181, allocations: 4 kB / 363.1 MB, free: 7.754 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.563e-05/0.1182, allocations: 3.938 kB / 363.1 MB, free: 7.75 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.0003296/0.1185, allocations: 345.6 kB / 363.4 MB, free: 7.402 MB / 302.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001925/0.1187, allocations: 90.88 kB / 363.5 MB, free: 7.312 MB / 302.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0006315/0.1193, allocations: 269.3 kB / 363.8 MB, free: 7.039 MB / 302.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.243e-06/0.1194, allocations: 8 kB / 363.8 MB, free: 7.031 MB / 302.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.839e-06/0.1194, allocations: 0 / 363.8 MB, free: 7.031 MB / 302.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.557e-06/0.1194, allocations: 336 / 363.8 MB, free: 7.031 MB / 302.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0005424/0.1199, allocations: 0.5143 MB / 364.3 MB, free: 6.469 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.639e-06/0.1199, allocations: 0 / 364.3 MB, free: 6.469 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 8.87e-05/0.12, allocations: 11.98 kB / 364.3 MB, free: 6.457 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 3.317e-06/0.12, allocations: 0 / 364.3 MB, free: 6.457 MB / 302.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.455e-05/0.1201, allocations: 7.969 kB / 364.3 MB, free: 6.449 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 4.698e-06/0.1201, allocations: 7.938 kB / 364.3 MB, free: 6.441 MB / 302.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.102e-06/0.1201, allocations: 0 / 364.3 MB, free: 6.441 MB / 302.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0005032/0.1206, allocations: 318.9 kB / 364.7 MB, free: 6.113 MB / 302.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.000289/0.1209, allocations: 227.9 kB / 364.9 MB, free: 5.871 MB / 302.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 8.061e-05/0.121, allocations: 8 kB / 364.9 MB, free: 5.863 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.000206/0.1212, allocations: 7.984 kB / 364.9 MB, free: 5.855 MB / 302.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.656e-05/0.1212, allocations: 0 / 364.9 MB, free: 5.855 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.088e-05/0.1213, allocations: 4 kB / 364.9 MB, free: 5.852 MB / 302.1 MB Notification: Performance of sorting global known variables: time 0.001245/0.1225, allocations: 1.021 MB / 365.9 MB, free: 4.82 MB / 302.1 MB Notification: Performance of sort global known variables: time 1.6e-07/0.1225, allocations: 0 / 365.9 MB, free: 4.82 MB / 302.1 MB Notification: Performance of remove unused functions: time 0.0003618/0.1229, allocations: 64 kB / 366 MB, free: 4.758 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.000214/0.1231, allocations: 111.7 kB / 366.1 MB, free: 4.637 MB / 302.1 MB Notification: Performance of simCode: created initialization part: time 0.0004104/0.1235, allocations: 131.8 kB / 366.2 MB, free: 4.508 MB / 302.1 MB Notification: Performance of simCode: created event and clocks part: time 2.695e-06/0.1235, allocations: 3.938 kB / 366.2 MB, free: 4.504 MB / 302.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0001706/0.1237, allocations: 55.95 kB / 366.3 MB, free: 4.449 MB / 302.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005821/0.1243, allocations: 100.4 kB / 366.4 MB, free: 4.352 MB / 302.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0021/0.1264, allocations: 1.433 MB / 367.8 MB, free: 2.883 MB / 302.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0006507/0.1271, allocations: 0.9969 MB / 368.8 MB, free: 1.863 MB / 302.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001445/0.1273, allocations: 43.42 kB / 368.8 MB, free: 1.82 MB / 302.1 MB Notification: Performance of SimCode: time 5.92e-07/0.1273, allocations: 0 / 368.8 MB, free: 1.82 MB / 302.1 MB Notification: Performance of Templates: time 0.161/0.2883, allocations: 9.096 MB / 377.9 MB, free: 23.45 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/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