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) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.00191/0.00191, allocations: 112.2 kB / 18.45 MB, free: 4.562 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.002214/0.002214, allocations: 194.8 kB / 21.39 MB, free: 1.629 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.454/1.454, allocations: 225.6 MB / 249.8 MB, free: 3.602 MB / 190.1 MB " [Timeout remaining time 178] 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=10000,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=10000,variableFilter="time|impedance.z.re|impedance.z.im",fileNamePrefix="Modelica_4.0.0_Modelica.Electrical.Batteries.Examples.ShowImpedance") [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 0.001586/0.001586, allocations: 43.92 kB / 366.8 MB, free: 340 kB / 286.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1044/0.106, allocations: 52.14 MB / 418.9 MB, free: 12.09 MB / 350.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Batteries.Examples.ShowImpedance): time 0.005223/0.1112, allocations: 1.909 MB / 420.8 MB, free: 10.17 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.002781/0.114, allocations: 1.242 MB / 422.1 MB, free: 8.922 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001592/0.1141, allocations: 0 / 422.1 MB, free: 8.922 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.00166/0.1158, allocations: 0.4985 MB / 422.6 MB, free: 8.422 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0004126/0.1162, allocations: 195.4 kB / 422.8 MB, free: 8.23 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0006777/0.1169, allocations: 187.2 kB / 423 MB, free: 8.047 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.0005646/0.1174, allocations: 219.1 kB / 423.2 MB, free: 7.832 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001091/0.1175, allocations: 9.688 kB / 423.2 MB, free: 7.824 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0003521/0.1179, allocations: 127.5 kB / 423.3 MB, free: 7.699 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0005146/0.1184, allocations: 235.4 kB / 423.5 MB, free: 7.469 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 4.835e-05/0.1185, allocations: 12 kB / 423.6 MB, free: 7.457 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0002417/0.1187, allocations: 63.97 kB / 423.6 MB, free: 7.395 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0003304/0.119, allocations: 267.2 kB / 423.9 MB, free: 7.133 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0004084/0.1194, allocations: 269.9 kB / 424.1 MB, free: 6.867 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.001311/0.1207, allocations: 0.7778 MB / 424.9 MB, free: 6.086 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.388e-06/0.1208, allocations: 0 / 424.9 MB, free: 6.086 MB / 350.1 MB Notification: Performance of FrontEnd: time 2.014e-06/0.1208, allocations: 0 / 424.9 MB, free: 6.086 MB / 350.1 MB Notification: Performance of Transformations before backend: time 2.676e-05/0.1208, allocations: 0 / 424.9 MB, free: 6.086 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.00448/0.1253, allocations: 1.212 MB / 426.1 MB, free: 4.82 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.998e-05/0.1253, allocations: 8.031 kB / 426.1 MB, free: 4.812 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0003537/0.1257, allocations: 96.36 kB / 426.2 MB, free: 4.719 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001895/0.1276, allocations: 0.7635 MB / 427 MB, free: 3.902 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.741e-05/0.1276, allocations: 4.375 kB / 427 MB, free: 3.898 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.962e-05/0.1276, allocations: 384 / 427 MB, free: 3.898 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004274/0.128, allocations: 121.9 kB / 427.1 MB, free: 3.773 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.093e-05/0.128, allocations: 0 / 427.1 MB, free: 3.773 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.071e-05/0.1281, allocations: 0 / 427.1 MB, free: 3.773 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.821e-06/0.1281, allocations: 0 / 427.1 MB, free: 3.773 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.000536/0.1286, allocations: 151.8 kB / 427.3 MB, free: 3.625 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002021/0.1306, allocations: 0.8103 MB / 428.1 MB, free: 2.766 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.000321/0.1309, allocations: 86.52 kB / 428.2 MB, free: 2.672 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002647/0.1312, allocations: 72.89 kB / 428.2 MB, free: 2.598 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.09e-05/0.1312, allocations: 4 kB / 428.2 MB, free: 2.594 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.632e-05/0.1313, allocations: 34.56 kB / 428.3 MB, free: 2.551 MB / 350.1 MB Notification: Performance of pre-optimization done (n=3): time 1.813e-06/0.1313, allocations: 0 / 428.3 MB, free: 2.551 MB / 350.1 MB Notification: Performance of matching and sorting (n=3): time 0.001267/0.1325, allocations: 328.9 kB / 428.6 MB, free: 2.223 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.557e-05/0.1326, allocations: 51.41 kB / 428.6 MB, free: 2.16 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.002873/0.1355, allocations: 1.413 MB / 430.1 MB, free: 0.7266 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 2.834e-05/0.1355, allocations: 25.7 kB / 430.1 MB, free: 0.6953 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.000497/0.136, allocations: 384.4 kB / 430.5 MB, free: 324 kB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 3.585e-05/0.136, allocations: 7.906 kB / 430.5 MB, free: 316 kB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 9.7e-05/0.1361, allocations: 29.64 kB / 430.5 MB, free: 280 kB / 350.1 MB Notification: Performance of setup shared object (initialization): time 0.0001827/0.1363, allocations: 306 kB / 430.8 MB, free: 15.97 MB / 366.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002604/0.1366, allocations: 71.88 kB / 430.9 MB, free: 15.9 MB / 366.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002648/0.1368, allocations: 86.52 kB / 430.9 MB, free: 15.8 MB / 366.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0005057/0.1373, allocations: 162.3 kB / 431.1 MB, free: 15.64 MB / 366.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.046e-06/0.1373, allocations: 0 / 431.1 MB, free: 15.64 MB / 366.1 MB Notification: Performance of matching and sorting (n=3) (initialization): time 0.0009352/0.1383, allocations: 272.9 kB / 431.4 MB, free: 15.36 MB / 366.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.33e-05/0.1383, allocations: 4 kB / 431.4 MB, free: 15.36 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.905e-06/0.1383, allocations: 0 / 431.4 MB, free: 15.36 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.351e-05/0.1383, allocations: 4 kB / 431.4 MB, free: 15.36 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002574/0.1386, allocations: 15.98 kB / 431.4 MB, free: 15.34 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.039e-05/0.1386, allocations: 4 kB / 431.4 MB, free: 15.34 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003107/0.1389, allocations: 7.984 kB / 431.4 MB, free: 15.33 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.702e-05/0.1389, allocations: 12.09 kB / 431.4 MB, free: 15.32 MB / 366.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.0005514/0.1395, allocations: 341.6 kB / 431.8 MB, free: 14.97 MB / 366.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002831/0.1398, allocations: 95.38 kB / 431.8 MB, free: 14.88 MB / 366.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0009083/0.1407, allocations: 289.5 kB / 432.1 MB, free: 14.58 MB / 366.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 9.758e-06/0.1407, allocations: 0 / 432.1 MB, free: 14.58 MB / 366.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.81e-06/0.1407, allocations: 0 / 432.1 MB, free: 14.58 MB / 366.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.318e-06/0.1407, allocations: 0 / 432.1 MB, free: 14.58 MB / 366.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0008674/0.1416, allocations: 0.5065 MB / 432.6 MB, free: 14.03 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.859e-06/0.1416, allocations: 0 / 432.6 MB, free: 14.03 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001224/0.1417, allocations: 15.98 kB / 432.6 MB, free: 14.01 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 4.118e-06/0.1417, allocations: 0 / 432.6 MB, free: 14.01 MB / 366.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.649e-05/0.1417, allocations: 3.984 kB / 432.7 MB, free: 14.01 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.545e-06/0.1417, allocations: 8 kB / 432.7 MB, free: 14 MB / 366.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.589e-06/0.1417, allocations: 3.938 kB / 432.7 MB, free: 14 MB / 366.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0006583/0.1424, allocations: 315.3 kB / 433 MB, free: 13.67 MB / 366.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0004476/0.1428, allocations: 228.5 kB / 433.2 MB, free: 13.43 MB / 366.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 7.468e-05/0.1429, allocations: 4 kB / 433.2 MB, free: 13.43 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001968/0.1431, allocations: 7.984 kB / 433.2 MB, free: 13.42 MB / 366.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.498e-05/0.1431, allocations: 4 kB / 433.2 MB, free: 13.41 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.481e-05/0.1432, allocations: 4 kB / 433.2 MB, free: 13.41 MB / 366.1 MB Notification: Performance of sorting global known variables: time 0.001432/0.1446, allocations: 1.017 MB / 434.2 MB, free: 12.38 MB / 366.1 MB Notification: Performance of sort global known variables: time 1e-07/0.1446, allocations: 0 / 434.2 MB, free: 12.38 MB / 366.1 MB Notification: Performance of remove unused functions: time 0.0003748/0.145, allocations: 64 kB / 434.3 MB, free: 12.32 MB / 366.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.000254/0.1452, allocations: 119.6 kB / 434.4 MB, free: 12.19 MB / 366.1 MB Notification: Performance of simCode: created initialization part: time 0.0004092/0.1456, allocations: 127.8 kB / 434.5 MB, free: 12.07 MB / 366.1 MB Notification: Performance of simCode: created event and clocks part: time 2.745e-06/0.1456, allocations: 0 / 434.5 MB, free: 12.07 MB / 366.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0001681/0.1458, allocations: 47.95 kB / 434.6 MB, free: 12.02 MB / 366.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005991/0.1464, allocations: 111.4 kB / 434.7 MB, free: 11.91 MB / 366.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002371/0.1488, allocations: 1.447 MB / 436.1 MB, free: 10.43 MB / 366.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0007396/0.1495, allocations: 1.005 MB / 437.1 MB, free: 9.398 MB / 366.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001231/0.1496, allocations: 39.42 kB / 437.2 MB, free: 9.359 MB / 366.1 MB Notification: Performance of SimCode: time 5.01e-07/0.1496, allocations: 0 / 437.2 MB, free: 9.359 MB / 366.1 MB Notification: Performance of Templates: time 0.0167/0.1663, allocations: 9.189 MB / 446.4 MB, free: 192 kB / 366.1 MB " [Timeout remaining time 660] make -j1 -f Modelica_4.0.0_Modelica.Electrical.Batteries.Examples.ShowImpedance.makefile [Timeout 660] (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) [Timeout 480] 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) [Timeout 660] "" [Timeout remaining time 660] Reference file matches [Calling sys.exit(0), Time elapsed: 7.957666901987977]