Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_trunk_Modelica.Electrical.Batteries.Examples.ShowImpedance.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo", uses=false) Using package Modelica with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo) Using package Complex with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo) Using package ModelicaServices with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/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_trunk_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_trunk_Modelica.Electrical.Batteries.Examples.ShowImpedance") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.001153/0.001153, allocations: 109.2 kB / 17.21 MB, free: 6.266 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001279/0.001279, allocations: 209.7 kB / 18.14 MB, free: 5.344 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.394/1.394, allocations: 227.4 MB / 246.3 MB, free: 10.76 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001395/0.001395, allocations: 63.86 kB / 306.3 MB, free: 1.043 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1063/0.1077, allocations: 50.53 MB / 356.8 MB, free: 14.52 MB / 302.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Batteries.Examples.ShowImpedance): time 0.003606/0.1113, allocations: 1.963 MB / 358.7 MB, free: 12.55 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.001921/0.1133, allocations: 1.234 MB / 360 MB, free: 11.3 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001578/0.1135, allocations: 4 kB / 360 MB, free: 11.3 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 0.001145/0.1146, allocations: 0.4988 MB / 360.5 MB, free: 10.8 MB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0002452/0.1149, allocations: 191.5 kB / 360.7 MB, free: 10.61 MB / 302.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0004169/0.1153, allocations: 159.5 kB / 360.8 MB, free: 10.46 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 0.0003708/0.1157, allocations: 231.1 kB / 361.1 MB, free: 10.23 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 8.976e-05/0.1158, allocations: 17.69 kB / 361.1 MB, free: 10.21 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002871/0.1161, allocations: 119.5 kB / 361.2 MB, free: 10.09 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002781/0.1164, allocations: 211.5 kB / 361.4 MB, free: 9.887 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 3.237e-05/0.1164, allocations: 4 kB / 361.4 MB, free: 9.883 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001599/0.1166, allocations: 63.91 kB / 361.5 MB, free: 9.82 MB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001961/0.1168, allocations: 259.3 kB / 361.7 MB, free: 9.566 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0002986/0.1171, allocations: 269.9 kB / 362 MB, free: 9.301 MB / 302.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0007277/0.1179, allocations: 0.7473 MB / 362.7 MB, free: 8.551 MB / 302.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.158e-06/0.1179, allocations: 3.938 kB / 362.7 MB, free: 8.547 MB / 302.1 MB Notification: Performance of FrontEnd: time 8.51e-07/0.1179, allocations: 0 / 362.7 MB, free: 8.547 MB / 302.1 MB Notification: Performance of Transformations before backend: time 2.417e-05/0.1179, allocations: 0 / 362.7 MB, free: 8.547 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.002742/0.1207, allocations: 1.184 MB / 363.9 MB, free: 7.312 MB / 302.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.546e-05/0.1207, allocations: 8.031 kB / 363.9 MB, free: 7.305 MB / 302.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002119/0.1209, allocations: 95.89 kB / 364 MB, free: 7.211 MB / 302.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.00125/0.1222, allocations: 0.743 MB / 364.8 MB, free: 6.414 MB / 302.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.49e-05/0.1222, allocations: 8.312 kB / 364.8 MB, free: 6.406 MB / 302.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.006e-05/0.1222, allocations: 4.375 kB / 364.8 MB, free: 6.402 MB / 302.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003153/0.1226, allocations: 113.9 kB / 364.9 MB, free: 6.285 MB / 302.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.006e-05/0.1226, allocations: 3.984 kB / 364.9 MB, free: 6.281 MB / 302.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.847e-05/0.1226, allocations: 4 kB / 364.9 MB, free: 6.277 MB / 302.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.358e-06/0.1226, allocations: 0 / 364.9 MB, free: 6.277 MB / 302.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0003643/0.123, allocations: 143.9 kB / 365 MB, free: 6.137 MB / 302.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001096/0.1241, allocations: 0.8142 MB / 365.8 MB, free: 5.273 MB / 302.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002145/0.1243, allocations: 90.45 kB / 365.9 MB, free: 5.176 MB / 302.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001909/0.1245, allocations: 72.89 kB / 366 MB, free: 5.102 MB / 302.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.745e-05/0.1245, allocations: 0 / 366 MB, free: 5.102 MB / 302.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.456e-05/0.1246, allocations: 38.56 kB / 366 MB, free: 5.055 MB / 302.1 MB Notification: Performance of pre-optimization done (n=3): time 1.182e-06/0.1246, allocations: 0 / 366 MB, free: 5.055 MB / 302.1 MB Notification: Performance of matching and sorting (n=3): time 0.0008292/0.1254, allocations: 324.5 kB / 366.4 MB, free: 4.73 MB / 302.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.655e-05/0.1255, allocations: 55.34 kB / 366.4 MB, free: 4.664 MB / 302.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001818/0.1273, allocations: 1.409 MB / 367.8 MB, free: 3.234 MB / 302.1 MB Notification: Performance of collectPreVariables (initialization): time 2.247e-05/0.1273, allocations: 25.7 kB / 367.8 MB, free: 3.203 MB / 302.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0004623/0.1278, allocations: 384.4 kB / 368.2 MB, free: 2.824 MB / 302.1 MB Notification: Performance of collectInitialBindings (initialization): time 3.387e-05/0.1279, allocations: 15.81 kB / 368.2 MB, free: 2.809 MB / 302.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 6.178e-05/0.1279, allocations: 13.72 kB / 368.2 MB, free: 2.789 MB / 302.1 MB Notification: Performance of setup shared object (initialization): time 0.0001158/0.128, allocations: 314 kB / 368.6 MB, free: 2.477 MB / 302.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001806/0.1282, allocations: 63.95 kB / 368.6 MB, free: 2.414 MB / 302.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002051/0.1284, allocations: 90.52 kB / 368.7 MB, free: 2.316 MB / 302.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003469/0.1288, allocations: 158.3 kB / 368.9 MB, free: 2.152 MB / 302.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.114e-06/0.1288, allocations: 0 / 368.9 MB, free: 2.152 MB / 302.1 MB Notification: Performance of matching and sorting (n=3) (initialization): time 0.000616/0.1294, allocations: 268.5 kB / 369.1 MB, free: 1.883 MB / 302.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.745e-05/0.1295, allocations: 4 kB / 369.1 MB, free: 1.879 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.651e-06/0.1295, allocations: 0 / 369.1 MB, free: 1.879 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.466e-05/0.1295, allocations: 4 kB / 369.1 MB, free: 1.875 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000189/0.1297, allocations: 15.92 kB / 369.1 MB, free: 1.859 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.994e-06/0.1297, allocations: 4 kB / 369.1 MB, free: 1.855 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002139/0.1299, allocations: 7.984 kB / 369.2 MB, free: 1.848 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.503e-05/0.13, allocations: 4 kB / 369.2 MB, free: 1.844 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.0003191/0.1303, allocations: 345.7 kB / 369.5 MB, free: 1.496 MB / 302.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001895/0.1305, allocations: 90.86 kB / 369.6 MB, free: 1.406 MB / 302.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0006862/0.1312, allocations: 285.5 kB / 369.9 MB, free: 1.117 MB / 302.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.276e-05/0.1312, allocations: 8 kB / 369.9 MB, free: 1.109 MB / 302.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.3e-06/0.1312, allocations: 0 / 369.9 MB, free: 1.109 MB / 302.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.196e-06/0.1312, allocations: 0 / 369.9 MB, free: 1.109 MB / 302.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0005663/0.1318, allocations: 0.5104 MB / 370.4 MB, free: 0.5508 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.092e-06/0.1318, allocations: 3.984 kB / 370.4 MB, free: 0.5469 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 8.765e-05/0.1319, allocations: 11.98 kB / 370.4 MB, free: 0.5352 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 3.577e-06/0.1319, allocations: 0 / 370.4 MB, free: 0.5352 MB / 302.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.078e-05/0.1319, allocations: 0 / 370.4 MB, free: 0.5352 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.623e-06/0.1319, allocations: 0 / 370.4 MB, free: 0.5352 MB / 302.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.133e-06/0.1319, allocations: 4 kB / 370.4 MB, free: 0.5312 MB / 302.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0004993/0.1324, allocations: 322.7 kB / 370.7 MB, free: 204 kB / 302.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.1659/0.2983, allocations: 221 kB / 370.9 MB, free: 20.43 MB / 302.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002342/0.2986, allocations: 1.109 kB / 370.9 MB, free: 20.43 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003667/0.299, allocations: 7.672 kB / 370.9 MB, free: 20.43 MB / 302.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.175e-05/0.2991, allocations: 3.891 kB / 370.9 MB, free: 20.43 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.529e-05/0.2991, allocations: 3.547 kB / 371 MB, free: 20.43 MB / 302.1 MB Notification: Performance of sorting global known variables: time 0.00228/0.3014, allocations: 1.014 MB / 372 MB, free: 20.32 MB / 302.1 MB Notification: Performance of sort global known variables: time 2.5e-07/0.3014, allocations: 0 / 372 MB, free: 20.32 MB / 302.1 MB Notification: Performance of remove unused functions: time 0.0005771/0.302, allocations: 66.36 kB / 372 MB, free: 20.32 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.0002323/0.3022, allocations: 113.1 kB / 372.1 MB, free: 20.23 MB / 302.1 MB Notification: Performance of simCode: created initialization part: time 0.0004841/0.3027, allocations: 121 kB / 372.3 MB, free: 20.23 MB / 302.1 MB Notification: Performance of simCode: created event and clocks part: time 3.978e-06/0.3027, allocations: 3.438 kB / 372.3 MB, free: 20.23 MB / 302.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0001924/0.3029, allocations: 55.98 kB / 372.3 MB, free: 20.23 MB / 302.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0008253/0.3038, allocations: 99.94 kB / 372.4 MB, free: 20.23 MB / 302.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002278/0.3061, allocations: 1.533 MB / 373.9 MB, free: 19.6 MB / 302.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0006459/0.3067, allocations: 1.002 MB / 374.9 MB, free: 18.85 MB / 302.1 MB Notification: Performance of simCode: alias equations: time 0.0008604/0.3076, allocations: 475.1 kB / 375.4 MB, free: 18.84 MB / 302.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001278/0.3077, allocations: 36.22 kB / 375.4 MB, free: 18.83 MB / 302.1 MB Notification: Performance of SimCode: time 6.31e-07/0.3077, allocations: 1.438 kB / 375.4 MB, free: 18.83 MB / 302.1 MB Notification: Performance of Templates: time 0.01527/0.323, allocations: 7.078 MB / 382.5 MB, free: 17.31 MB / 302.1 MB make -j1 -f Modelica_trunk_Modelica.Electrical.Batteries.Examples.ShowImpedance.makefile (rm -f Modelica_trunk_Modelica.Electrical.Batteries.Examples.ShowImpedance.pipe ; mkfifo Modelica_trunk_Modelica.Electrical.Batteries.Examples.ShowImpedance.pipe ; head -c 1048576 < Modelica_trunk_Modelica.Electrical.Batteries.Examples.ShowImpedance.pipe >> ../files/Modelica_trunk_Modelica.Electrical.Batteries.Examples.ShowImpedance.sim & ./Modelica_trunk_Modelica.Electrical.Batteries.Examples.ShowImpedance -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Modelica_trunk_Modelica.Electrical.Batteries.Examples.ShowImpedance.pipe 2>&1) diffSimulationResults("Modelica_trunk_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_trunk_Modelica.Electrical.Batteries.Examples.ShowImpedance.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches