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) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.00129/0.00129, allocations: 75.75 kB / 21.25 MB, free: 396 kB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001423/0.001423, allocations: 159.7 kB / 24.49 MB, free: 3.453 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.449/1.449, allocations: 177.1 MB / 204.7 MB, free: 9.016 MB / 190.1 MB " [Timeout remaining time 178] 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=10000,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=10000,variableFilter="time|impedance.z.re|impedance.z.im",fileNamePrefix="Modelica_trunk_Modelica.Electrical.Batteries.Examples.ShowImpedance") [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 0.001909/0.001909, allocations: 61.91 kB / 325.5 MB, free: 228 kB / 286.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1001/0.102, allocations: 53.39 MB / 378.9 MB, free: 15.54 MB / 350.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Batteries.Examples.ShowImpedance): time 0.003288/0.1053, allocations: 1.873 MB / 380.8 MB, free: 13.65 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.001769/0.1071, allocations: 1.133 MB / 381.9 MB, free: 12.51 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 7.645e-05/0.1072, allocations: 0 / 381.9 MB, free: 12.51 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.001012/0.1082, allocations: 498.5 kB / 382.4 MB, free: 12.02 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0002262/0.1084, allocations: 195.4 kB / 382.6 MB, free: 11.83 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0004105/0.1088, allocations: 159.4 kB / 382.7 MB, free: 11.68 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.0003229/0.1092, allocations: 223.1 kB / 383 MB, free: 11.46 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 9.501e-05/0.1093, allocations: 9.797 kB / 383 MB, free: 11.45 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002398/0.1095, allocations: 127.5 kB / 383.1 MB, free: 11.32 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002919/0.1098, allocations: 227.4 kB / 383.3 MB, free: 11.1 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 2.608e-05/0.1098, allocations: 8 kB / 383.3 MB, free: 11.09 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001476/0.11, allocations: 63.97 kB / 383.4 MB, free: 11.03 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0002392/0.1102, allocations: 271.1 kB / 383.6 MB, free: 10.76 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0002072/0.1104, allocations: 202.4 kB / 383.8 MB, free: 10.56 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0008233/0.1112, allocations: 0.774 MB / 384.6 MB, free: 9.785 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.346e-06/0.1112, allocations: 0 / 384.6 MB, free: 9.785 MB / 350.1 MB Notification: Performance of FrontEnd: time 1.533e-06/0.1112, allocations: 0 / 384.6 MB, free: 9.785 MB / 350.1 MB Notification: Performance of Transformations before backend: time 8.446e-06/0.1112, allocations: 0 / 384.6 MB, free: 9.785 MB / 350.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.002611/0.1138, allocations: 1.145 MB / 385.8 MB, free: 8.605 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.986e-05/0.1139, allocations: 15.98 kB / 385.8 MB, free: 8.59 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002052/0.1141, allocations: 92.33 kB / 385.9 MB, free: 8.5 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001039/0.1151, allocations: 0.6993 MB / 386.6 MB, free: 7.762 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.665e-05/0.1151, allocations: 4.375 kB / 386.6 MB, free: 7.758 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.156e-05/0.1152, allocations: 4.375 kB / 386.6 MB, free: 7.754 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002831/0.1155, allocations: 117.8 kB / 386.7 MB, free: 7.633 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 9.378e-06/0.1155, allocations: 0 / 386.7 MB, free: 7.633 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.71e-05/0.1155, allocations: 4 kB / 386.7 MB, free: 7.629 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.232e-06/0.1155, allocations: 4 kB / 386.7 MB, free: 7.625 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0003521/0.1158, allocations: 139.9 kB / 386.8 MB, free: 7.488 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0009595/0.1168, allocations: 0.6965 MB / 387.5 MB, free: 6.762 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002137/0.117, allocations: 82.41 kB / 387.6 MB, free: 6.672 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001848/0.1172, allocations: 76.89 kB / 387.7 MB, free: 6.594 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.693e-05/0.1172, allocations: 3.984 kB / 387.7 MB, free: 6.59 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.597e-05/0.1172, allocations: 30.56 kB / 387.7 MB, free: 6.551 MB / 350.1 MB Notification: Performance of pre-optimization done (n=3): time 9.82e-07/0.1172, allocations: 4 kB / 387.7 MB, free: 6.547 MB / 350.1 MB Notification: Performance of matching and sorting (n=3): time 0.0008133/0.1181, allocations: 329 kB / 388 MB, free: 6.219 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.981e-05/0.1181, allocations: 51.41 kB / 388.1 MB, free: 6.156 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0017/0.1198, allocations: 1.409 MB / 389.5 MB, free: 4.727 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 2.203e-05/0.1198, allocations: 29.64 kB / 389.5 MB, free: 4.691 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0003458/0.1202, allocations: 388.4 kB / 389.9 MB, free: 4.309 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 2.559e-05/0.1202, allocations: 7.953 kB / 389.9 MB, free: 4.301 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 5.278e-05/0.1202, allocations: 17.7 kB / 389.9 MB, free: 4.277 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 0.0001286/0.1204, allocations: 314 kB / 390.2 MB, free: 3.965 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001747/0.1205, allocations: 63.94 kB / 390.3 MB, free: 3.902 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001889/0.1207, allocations: 94.45 kB / 390.4 MB, free: 3.801 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003603/0.1211, allocations: 158.4 kB / 390.6 MB, free: 3.637 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.643e-06/0.1211, allocations: 0 / 390.6 MB, free: 3.637 MB / 350.1 MB Notification: Performance of matching and sorting (n=3) (initialization): time 0.0005813/0.1217, allocations: 276.9 kB / 390.8 MB, free: 3.359 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.542e-05/0.1217, allocations: 4 kB / 390.8 MB, free: 3.355 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.819e-06/0.1217, allocations: 0 / 390.8 MB, free: 3.355 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.709e-05/0.1217, allocations: 4 kB / 390.8 MB, free: 3.352 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001901/0.1219, allocations: 15.97 kB / 390.8 MB, free: 3.336 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.223e-06/0.1219, allocations: 4 kB / 390.9 MB, free: 3.332 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.000185/0.1221, allocations: 7.938 kB / 390.9 MB, free: 3.324 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.89e-05/0.1221, allocations: 11.94 kB / 390.9 MB, free: 3.312 MB / 350.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.0003466/0.1225, allocations: 341.6 kB / 391.2 MB, free: 2.969 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001774/0.1226, allocations: 91.47 kB / 391.3 MB, free: 2.879 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.000612/0.1233, allocations: 273.6 kB / 391.6 MB, free: 2.602 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 8.616e-06/0.1233, allocations: 8.016 kB / 391.6 MB, free: 2.594 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.697e-06/0.1233, allocations: 4 kB / 391.6 MB, free: 2.59 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.308e-06/0.1233, allocations: 4 kB / 391.6 MB, free: 2.586 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0004882/0.1238, allocations: 410.1 kB / 392 MB, free: 2.156 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.66e-06/0.1238, allocations: 3.938 kB / 392 MB, free: 2.152 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 8.117e-05/0.1239, allocations: 11.98 kB / 392 MB, free: 2.141 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.843e-06/0.1239, allocations: 0 / 392 MB, free: 2.141 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.304e-05/0.1239, allocations: 3.984 kB / 392 MB, free: 2.137 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.382e-06/0.1239, allocations: 0 / 392 MB, free: 2.137 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.72e-07/0.1239, allocations: 0 / 392 MB, free: 2.137 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0005139/0.1244, allocations: 323.3 kB / 392.3 MB, free: 1.805 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0003824/0.1248, allocations: 159.3 kB / 392.5 MB, free: 1.648 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.917e-05/0.1248, allocations: 0 / 392.5 MB, free: 1.648 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001897/0.125, allocations: 7.984 kB / 392.5 MB, free: 1.641 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.449e-05/0.1251, allocations: 11.92 kB / 392.5 MB, free: 1.629 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 9.848e-06/0.1251, allocations: 4 kB / 392.5 MB, free: 1.625 MB / 350.1 MB Notification: Performance of sorting global known variables: time 0.001279/0.1263, allocations: 1.013 MB / 393.5 MB, free: 0.6016 MB / 350.1 MB Notification: Performance of sort global known variables: time 9e-08/0.1263, allocations: 0 / 393.5 MB, free: 0.6016 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.0003364/0.1267, allocations: 60 kB / 393.6 MB, free: 0.543 MB / 350.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.0001828/0.1269, allocations: 111.2 kB / 393.7 MB, free: 432 kB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.0003944/0.1273, allocations: 127.8 kB / 393.8 MB, free: 304 kB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 2.024e-06/0.1273, allocations: 0 / 393.8 MB, free: 304 kB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0001689/0.1274, allocations: 56.08 kB / 393.9 MB, free: 248 kB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005777/0.128, allocations: 106.2 kB / 394 MB, free: 140 kB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001898/0.1299, allocations: 1.38 MB / 395.3 MB, free: 14.73 MB / 366.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000466/0.1304, allocations: 404.1 kB / 395.7 MB, free: 14.31 MB / 366.1 MB Notification: Performance of simCode: alias equations: time 0.0006328/0.131, allocations: 478.2 kB / 396.2 MB, free: 13.84 MB / 366.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001163/0.1311, allocations: 40.48 kB / 396.2 MB, free: 13.8 MB / 366.1 MB Notification: Performance of SimCode: time 9.51e-07/0.1311, allocations: 0 / 396.2 MB, free: 13.8 MB / 366.1 MB Notification: Performance of Templates: time 0.01561/0.1467, allocations: 7.968 MB / 404.2 MB, free: 5.902 MB / 366.1 MB " [Timeout remaining time 660] make -j1 -f Modelica_trunk_Modelica.Electrical.Batteries.Examples.ShowImpedance.makefile [Timeout 660] (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 -s ida -emit_protected -lv LOG_STATS > Modelica_trunk_Modelica.Electrical.Batteries.Examples.ShowImpedance.pipe 2>&1) [Timeout 480] diffSimulationResults("Modelica_trunk_Modelica.Electrical.Batteries.Examples.ShowImpedance_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.1.0/Modelica/Electrical/Batteries/Examples/ShowImpedance/ShowImpedance.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_trunk_Modelica.Electrical.Batteries.Examples.ShowImpedance.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) [Timeout 660] "" [Timeout remaining time 660] Reference file matches [Calling sys.exit(0), Time elapsed: 4.44647908594925]