Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.0.0_Modelica.Electrical.Batteries.Examples.SuperCapDischargeCharge.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.0013/0.0013, allocations: 122.5 kB / 18.46 MB, free: 4.473 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.001359/0.001359, allocations: 190.6 kB / 21.4 MB, free: 1.535 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.447/1.447, allocations: 225.6 MB / 249.8 MB, free: 3.605 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.SuperCapDischargeCharge,tolerance=1e-06,outputFormat="mat",numberOfIntervals=72000,variableFilter="time|energy.y|superCap.capacitor.v",fileNamePrefix="Modelica_4.0.0_Modelica.Electrical.Batteries.Examples.SuperCapDischargeCharge") translateModel(Modelica.Electrical.Batteries.Examples.SuperCapDischargeCharge,tolerance=1e-06,outputFormat="mat",numberOfIntervals=72000,variableFilter="time|energy.y|superCap.capacitor.v",fileNamePrefix="Modelica_4.0.0_Modelica.Electrical.Batteries.Examples.SuperCapDischargeCharge") [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 0.001508/0.001508, allocations: 51.92 kB / 366.8 MB, free: 320 kB / 286.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1096/0.1111, allocations: 52.14 MB / 418.9 MB, free: 12.08 MB / 350.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Batteries.Examples.SuperCapDischargeCharge): time 0.00474/0.1158, allocations: 2.981 MB / 421.9 MB, free: 9.086 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.001585/0.1174, allocations: 0.705 MB / 422.6 MB, free: 8.375 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002013/0.1176, allocations: 11.94 kB / 422.6 MB, free: 8.363 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0002302/0.1178, allocations: 63.36 kB / 422.7 MB, free: 8.301 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0002879/0.1181, allocations: 111.1 kB / 422.8 MB, free: 8.191 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003842/0.1185, allocations: 99.83 kB / 422.9 MB, free: 8.094 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.0005082/0.119, allocations: 414.3 kB / 423.3 MB, free: 7.688 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0003157/0.1193, allocations: 165.7 kB / 423.5 MB, free: 7.523 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.000214/0.1195, allocations: 159.5 kB / 423.6 MB, free: 7.367 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0003425/0.1199, allocations: 187.2 kB / 423.8 MB, free: 7.184 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 6.84e-05/0.12, allocations: 40 kB / 423.9 MB, free: 7.145 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001328/0.1201, allocations: 52 kB / 423.9 MB, free: 7.094 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001829/0.1203, allocations: 115.6 kB / 424 MB, free: 6.98 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0002245/0.1205, allocations: 203 kB / 424.2 MB, free: 6.781 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0006759/0.1212, allocations: 0.4941 MB / 424.7 MB, free: 6.285 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.667e-06/0.1212, allocations: 0 / 424.7 MB, free: 6.285 MB / 350.1 MB Notification: Performance of FrontEnd: time 1.583e-06/0.1212, allocations: 4 kB / 424.7 MB, free: 6.281 MB / 350.1 MB Notification: Performance of Transformations before backend: time 1.278e-05/0.1212, allocations: 0 / 424.7 MB, free: 6.281 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: 77 * Number of variables: 77 Notification: Performance of Generate backend data structure: time 0.001825/0.123, allocations: 0.7948 MB / 425.5 MB, free: 5.438 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.459e-05/0.1231, allocations: 15.89 kB / 425.5 MB, free: 5.422 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 9.783e-05/0.1232, allocations: 44.66 kB / 425.6 MB, free: 5.379 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000639/0.1238, allocations: 354.6 kB / 425.9 MB, free: 4.996 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 6.405e-05/0.1239, allocations: 21.03 kB / 425.9 MB, free: 4.977 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 6.784e-05/0.1239, allocations: 32.38 kB / 426 MB, free: 4.945 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0006311/0.1246, allocations: 350.2 kB / 426.3 MB, free: 4.586 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.271e-05/0.1246, allocations: 0 / 426.3 MB, free: 4.586 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.942e-05/0.1246, allocations: 16 kB / 426.3 MB, free: 4.57 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.028e-05/0.1246, allocations: 8 kB / 426.3 MB, free: 4.562 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0004437/0.1251, allocations: 234.5 kB / 426.6 MB, free: 4.336 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001922/0.127, allocations: 1.3 MB / 427.9 MB, free: 2.949 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003951/0.1274, allocations: 166.5 kB / 428 MB, free: 2.777 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002912/0.1277, allocations: 120.7 kB / 428.1 MB, free: 2.656 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 4.029e-05/0.1277, allocations: 4 kB / 428.1 MB, free: 2.652 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.036e-05/0.1277, allocations: 30.56 kB / 428.2 MB, free: 2.613 MB / 350.1 MB Notification: Performance of pre-optimization done (n=16): time 3.046e-06/0.1277, allocations: 7.984 kB / 428.2 MB, free: 2.605 MB / 350.1 MB Notification: Performance of matching and sorting (n=16): time 0.0005132/0.1283, allocations: 228.1 kB / 428.4 MB, free: 2.379 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.625e-05/0.1283, allocations: 55.69 kB / 428.5 MB, free: 2.312 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003977/0.1287, allocations: 322.9 kB / 428.8 MB, free: 1.988 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 3.431e-05/0.1287, allocations: 33.7 kB / 428.8 MB, free: 1.949 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001592/0.1289, allocations: 208.4 kB / 429 MB, free: 1.742 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 5.635e-05/0.129, allocations: 59.47 kB / 429.1 MB, free: 1.684 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 9.791e-05/0.129, allocations: 49.7 kB / 429.1 MB, free: 1.629 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 0.0001612/0.1292, allocations: 334.8 kB / 429.4 MB, free: 1.293 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001484/0.1294, allocations: 71.95 kB / 429.5 MB, free: 1.223 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001867/0.1295, allocations: 136.3 kB / 429.6 MB, free: 1.062 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002585/0.1298, allocations: 169.9 kB / 429.8 MB, free: 0.8711 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.154e-06/0.1298, allocations: 0 / 429.8 MB, free: 0.8711 MB / 350.1 MB Notification: Performance of matching and sorting (n=26) (initialization): time 0.000419/0.1302, allocations: 245.1 kB / 430.1 MB, free: 0.625 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.737e-05/0.1302, allocations: 6.594 kB / 430.1 MB, free: 0.6211 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.325e-06/0.1302, allocations: 8 kB / 430.1 MB, free: 0.6133 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.721e-05/0.1303, allocations: 4 kB / 430.1 MB, free: 0.6094 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001971/0.1305, allocations: 43.92 kB / 430.1 MB, free: 0.5664 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.795e-06/0.1305, allocations: 7.938 kB / 430.1 MB, free: 0.5586 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0004069/0.1309, allocations: 67.77 kB / 430.2 MB, free: 0.4922 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.892e-05/0.1309, allocations: 8 kB / 430.2 MB, free: 496 kB / 350.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 9 * Number of states: 0 () * Number of discrete variables: 3 (pulseSeries.on2,pulseSeries.on1,energy.local_reset) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (26): * Single equations (assignments): 26 * 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.0001831/0.1311, allocations: 161.8 kB / 430.4 MB, free: 324 kB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 6.114e-05/0.1312, allocations: 27.8 kB / 430.4 MB, free: 296 kB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0004423/0.1316, allocations: 199.8 kB / 430.6 MB, free: 92 kB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.851e-06/0.1316, allocations: 4 kB / 430.6 MB, free: 88 kB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.108e-06/0.1316, allocations: 0 / 430.6 MB, free: 88 kB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.477e-06/0.1316, allocations: 3.938 kB / 430.6 MB, free: 84 kB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0008919/0.1325, allocations: 0.6319 MB / 431.2 MB, free: 15.39 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.613e-06/0.1325, allocations: 7.969 kB / 431.2 MB, free: 15.38 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001629/0.1327, allocations: 27.98 kB / 431.3 MB, free: 15.35 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 3.266e-06/0.1327, allocations: 4 kB / 431.3 MB, free: 15.35 MB / 366.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.647e-05/0.1327, allocations: 0 / 431.3 MB, free: 15.35 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 7.735e-06/0.1327, allocations: 7.938 kB / 431.3 MB, free: 15.34 MB / 366.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.133e-06/0.1327, allocations: 0 / 431.3 MB, free: 15.34 MB / 366.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0005414/0.1332, allocations: 379.9 kB / 431.6 MB, free: 14.95 MB / 366.1 MB Notification: Performance of postOpt removeConstants (simulation): time 8.919e-05/0.1333, allocations: 113 kB / 431.7 MB, free: 14.82 MB / 366.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.943e-05/0.1334, allocations: 4 kB / 431.7 MB, free: 14.82 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0004275/0.1338, allocations: 55.92 kB / 431.8 MB, free: 14.77 MB / 366.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001875/0.134, allocations: 71.88 kB / 431.9 MB, free: 14.7 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.922e-05/0.134, allocations: 8 kB / 431.9 MB, free: 14.69 MB / 366.1 MB Notification: Performance of sorting global known variables: time 0.0002741/0.1343, allocations: 241.9 kB / 432.1 MB, free: 14.45 MB / 366.1 MB Notification: Performance of sort global known variables: time 9e-08/0.1343, allocations: 4 kB / 432.1 MB, free: 14.45 MB / 366.1 MB Notification: Performance of remove unused functions: time 0.0003859/0.1347, allocations: 83.78 kB / 432.2 MB, free: 14.37 MB / 366.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 2 * Number of states: 2 (superCap.capacitor.v,energy.y) * Number of discrete variables: 2 (pulseSeries.on1,pulseSeries.on2) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (16): * Single equations (assignments): 16 * 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 Backend phase and start with SimCode phase: time 0.0001755/0.1348, allocations: 111.1 kB / 432.3 MB, free: 14.25 MB / 366.1 MB Notification: Performance of simCode: created initialization part: time 0.0004037/0.1352, allocations: 171.8 kB / 432.5 MB, free: 14.08 MB / 366.1 MB Notification: Performance of simCode: created event and clocks part: time 2.415e-06/0.1352, allocations: 0 / 432.5 MB, free: 14.08 MB / 366.1 MB Notification: Performance of simCode: created simulation system equations: time 0.000189/0.1354, allocations: 100.4 kB / 432.6 MB, free: 13.98 MB / 366.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004229/0.1359, allocations: 66.69 kB / 432.6 MB, free: 13.91 MB / 366.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001544/0.1374, allocations: 0.7715 MB / 433.4 MB, free: 13.11 MB / 366.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004397/0.1378, allocations: 0.779 MB / 434.2 MB, free: 12.3 MB / 366.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001173/0.138, allocations: 31.44 kB / 434.2 MB, free: 12.27 MB / 366.1 MB Notification: Performance of SimCode: time 5.81e-07/0.138, allocations: 0 / 434.2 MB, free: 12.27 MB / 366.1 MB Notification: Performance of Templates: time 0.007578/0.1455, allocations: 4.352 MB / 438.6 MB, free: 7.938 MB / 366.1 MB " [Timeout remaining time 660] make -j1 -f Modelica_4.0.0_Modelica.Electrical.Batteries.Examples.SuperCapDischargeCharge.makefile [Timeout 660] (rm -f Modelica_4.0.0_Modelica.Electrical.Batteries.Examples.SuperCapDischargeCharge.pipe ; mkfifo Modelica_4.0.0_Modelica.Electrical.Batteries.Examples.SuperCapDischargeCharge.pipe ; head -c 1048576 < Modelica_4.0.0_Modelica.Electrical.Batteries.Examples.SuperCapDischargeCharge.pipe >> ../files/Modelica_4.0.0_Modelica.Electrical.Batteries.Examples.SuperCapDischargeCharge.sim & ./Modelica_4.0.0_Modelica.Electrical.Batteries.Examples.SuperCapDischargeCharge -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Modelica_4.0.0_Modelica.Electrical.Batteries.Examples.SuperCapDischargeCharge.pipe 2>&1) [Timeout 480] diffSimulationResults("Modelica_4.0.0_Modelica.Electrical.Batteries.Examples.SuperCapDischargeCharge_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork_2/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Electrical/Batteries/Examples/SuperCapDischargeCharge/SuperCapDischargeCharge.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork_2/OpenModelicaLibraryTesting/files/Modelica_4.0.0_Modelica.Electrical.Batteries.Examples.SuperCapDischargeCharge.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: 8.573226569918916]