Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.0.0_Modelica.Electrical.Batteries.Examples.BatteryDischargeCharge.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.001653/0.001653, allocations: 123.4 kB / 18.46 MB, free: 4.449 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.001838/0.001838, allocations: 192.3 kB / 21.4 MB, free: 1.52 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.488/1.488, allocations: 225.6 MB / 249.8 MB, free: 3.586 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.BatteryDischargeCharge,tolerance=1e-06,outputFormat="mat",numberOfIntervals=36000,variableFilter="time|battery1.limIntegrator.y|battery2.capacitor.1..v|battery2.capacitor.2..v|battery2.limIntegrator.y|energy1.y|energy2.y",fileNamePrefix="Modelica_4.0.0_Modelica.Electrical.Batteries.Examples.BatteryDischargeCharge") translateModel(Modelica.Electrical.Batteries.Examples.BatteryDischargeCharge,tolerance=1e-06,outputFormat="mat",numberOfIntervals=36000,variableFilter="time|battery1.limIntegrator.y|battery2.capacitor.1..v|battery2.capacitor.2..v|battery2.limIntegrator.y|energy1.y|energy2.y",fileNamePrefix="Modelica_4.0.0_Modelica.Electrical.Batteries.Examples.BatteryDischargeCharge") [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 0.001522/0.001522, allocations: 51.91 kB / 366.8 MB, free: 416 kB / 286.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09523/0.09675, allocations: 52.14 MB / 418.9 MB, free: 12.17 MB / 350.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Batteries.Examples.BatteryDischargeCharge): time 0.007838/0.1046, allocations: 5.827 MB / 424.8 MB, free: 6.32 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.004697/0.1093, allocations: 2.587 MB / 427.4 MB, free: 3.723 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0005678/0.1098, allocations: 27.88 kB / 427.4 MB, free: 3.695 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.001699/0.1115, allocations: 0.7661 MB / 428.2 MB, free: 2.926 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.00112/0.1127, allocations: 0.5243 MB / 428.7 MB, free: 2.398 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001151/0.1138, allocations: 0.5042 MB / 429.2 MB, free: 1.898 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.001925/0.1157, allocations: 1.59 MB / 430.8 MB, free: 304 kB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0006746/0.1164, allocations: 426.6 kB / 431.2 MB, free: 15.86 MB / 366.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0007595/0.1172, allocations: 0.6151 MB / 431.8 MB, free: 15.24 MB / 366.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0009547/0.1181, allocations: 0.7705 MB / 432.6 MB, free: 14.47 MB / 366.1 MB Notification: Performance of NFPackage.collectConstants: time 0.000189/0.1183, allocations: 136 kB / 432.7 MB, free: 14.34 MB / 366.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0004034/0.1187, allocations: 203.9 kB / 432.9 MB, free: 14.14 MB / 366.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0005921/0.1193, allocations: 0.6465 MB / 433.6 MB, free: 13.49 MB / 366.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0009314/0.1203, allocations: 0.9127 MB / 434.5 MB, free: 12.57 MB / 366.1 MB Notification: Performance of NFConvertDAE.convert: time 0.002753/0.123, allocations: 2.498 MB / 437 MB, free: 10.06 MB / 366.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.128e-06/0.123, allocations: 0 / 437 MB, free: 10.06 MB / 366.1 MB Notification: Performance of FrontEnd: time 1.532e-06/0.123, allocations: 0 / 437 MB, free: 10.06 MB / 366.1 MB Notification: Performance of Transformations before backend: time 3.067e-05/0.123, allocations: 0 / 437 MB, free: 10.06 MB / 366.1 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 215 * Number of variables: 215 Notification: Performance of Generate backend data structure: time 0.005084/0.1281, allocations: 2.632 MB / 439.6 MB, free: 7.371 MB / 366.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.139e-05/0.1282, allocations: 8.031 kB / 439.6 MB, free: 7.363 MB / 366.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0003923/0.1286, allocations: 235.4 kB / 439.8 MB, free: 7.133 MB / 366.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.00244/0.131, allocations: 1.556 MB / 441.4 MB, free: 5.531 MB / 366.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001208/0.1311, allocations: 96.25 kB / 441.5 MB, free: 5.434 MB / 366.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001437/0.1313, allocations: 87.94 kB / 441.6 MB, free: 5.348 MB / 366.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001943/0.1332, allocations: 1.104 MB / 442.7 MB, free: 4.164 MB / 366.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.025e-05/0.1332, allocations: 0 / 442.7 MB, free: 4.164 MB / 366.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 9.231e-05/0.1333, allocations: 36 kB / 442.7 MB, free: 4.129 MB / 366.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.339e-05/0.1333, allocations: 24 kB / 442.7 MB, free: 4.105 MB / 366.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001395/0.1347, allocations: 0.726 MB / 443.5 MB, free: 3.379 MB / 366.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.2121/0.3469, allocations: 4.593 MB / 448.1 MB, free: 27.91 MB / 366.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001167/0.348, allocations: 0.9024 MB / 449 MB, free: 27.41 MB / 366.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0006856/0.3487, allocations: 348.6 kB / 449.3 MB, free: 27.39 MB / 366.1 MB Notification: Performance of preOpt evalFunc (simulation): time 5.481e-05/0.3488, allocations: 11.61 kB / 449.3 MB, free: 27.39 MB / 366.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.39e-05/0.3488, allocations: 42.34 kB / 449.3 MB, free: 27.36 MB / 366.1 MB Notification: Performance of pre-optimization done (n=44): time 1.984e-06/0.3488, allocations: 0 / 449.3 MB, free: 27.36 MB / 366.1 MB Notification: Performance of matching and sorting (n=44): time 0.001664/0.3505, allocations: 0.8285 MB / 450.2 MB, free: 27.31 MB / 366.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 8.47e-05/0.3506, allocations: 425.5 kB / 450.6 MB, free: 26.81 MB / 366.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.003346/0.3539, allocations: 2.739 MB / 453.3 MB, free: 26.59 MB / 366.1 MB Notification: Performance of collectPreVariables (initialization): time 6.836e-05/0.354, allocations: 40.91 kB / 453.4 MB, free: 26.56 MB / 366.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0006969/0.3547, allocations: 0.8841 MB / 454.3 MB, free: 26.22 MB / 366.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.000132/0.3548, allocations: 165.9 kB / 454.4 MB, free: 26.11 MB / 366.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002027/0.355, allocations: 125.6 kB / 454.5 MB, free: 26.05 MB / 366.1 MB Notification: Performance of setup shared object (initialization): time 6.645e-05/0.3551, allocations: 332 kB / 454.9 MB, free: 25.73 MB / 366.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0005443/0.3556, allocations: 259.7 kB / 455.1 MB, free: 25.66 MB / 366.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0006949/0.3563, allocations: 0.5305 MB / 455.6 MB, free: 25.24 MB / 366.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0009675/0.3573, allocations: 0.6144 MB / 456.3 MB, free: 24.88 MB / 366.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.731e-06/0.3573, allocations: 2.938 kB / 456.3 MB, free: 24.88 MB / 366.1 MB Notification: Performance of matching and sorting (n=76) (initialization): time 0.001763/0.359, allocations: 0.867 MB / 457.1 MB, free: 24.55 MB / 366.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.975e-05/0.3591, allocations: 7.875 kB / 457.1 MB, free: 24.55 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.187e-05/0.3591, allocations: 6.234 kB / 457.1 MB, free: 24.55 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.579e-05/0.3591, allocations: 9 kB / 457.2 MB, free: 24.55 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000606/0.3597, allocations: 156.5 kB / 457.3 MB, free: 24.55 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.96e-05/0.3597, allocations: 12.97 kB / 457.3 MB, free: 24.55 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001138/0.3609, allocations: 161.8 kB / 457.5 MB, free: 24.52 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.234e-05/0.3609, allocations: 32.75 kB / 457.5 MB, free: 24.51 MB / 366.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 25 * Number of states: 0 () * Number of discrete variables: 6 (pulseSeries.on2,pulseSeries.on1,energy2.local_reset,battery2.limIntegrator.local_reset,energy1.local_reset,battery1.limIntegrator.local_reset) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (76): * Single equations (assignments): 76 * 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.0009054/0.3618, allocations: 0.5637 MB / 458.1 MB, free: 24.25 MB / 366.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002676/0.3621, allocations: 189.7 kB / 458.3 MB, free: 24.15 MB / 366.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001418/0.3635, allocations: 0.6967 MB / 459 MB, free: 23.89 MB / 366.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.782e-06/0.3635, allocations: 4.438 kB / 459 MB, free: 23.89 MB / 366.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.34e-06/0.3635, allocations: 3.922 kB / 459 MB, free: 23.89 MB / 366.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.085e-06/0.3635, allocations: 2.531 kB / 459 MB, free: 23.89 MB / 366.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.003323/0.3669, allocations: 2.113 MB / 461.1 MB, free: 22.98 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.21e-06/0.3669, allocations: 4.062 kB / 461.1 MB, free: 22.98 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0004897/0.3674, allocations: 105.2 kB / 461.2 MB, free: 22.97 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 7.554e-06/0.3674, allocations: 3.875 kB / 461.2 MB, free: 22.97 MB / 366.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.785e-05/0.3674, allocations: 15.77 kB / 461.2 MB, free: 22.96 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 5.901e-06/0.3674, allocations: 4.594 kB / 461.2 MB, free: 22.96 MB / 366.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.276e-06/0.3674, allocations: 2.141 kB / 461.2 MB, free: 22.96 MB / 366.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.00173/0.3691, allocations: 1.052 MB / 462.3 MB, free: 22.45 MB / 366.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0006253/0.3698, allocations: 420.6 kB / 462.7 MB, free: 22.2 MB / 366.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001723/0.3699, allocations: 18.06 kB / 462.7 MB, free: 22.18 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001042/0.371, allocations: 141.4 kB / 462.8 MB, free: 22.17 MB / 366.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0003164/0.3713, allocations: 154.8 kB / 463 MB, free: 22.15 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4e-05/0.3713, allocations: 21 kB / 463 MB, free: 22.14 MB / 366.1 MB Notification: Performance of sorting global known variables: time 0.002623/0.374, allocations: 1.948 MB / 464.9 MB, free: 21.49 MB / 366.1 MB Notification: Performance of sort global known variables: time 8e-08/0.374, allocations: 0 / 464.9 MB, free: 21.49 MB / 366.1 MB Notification: Performance of remove unused functions: time 0.0009778/0.3749, allocations: 314 kB / 465.3 MB, free: 21.45 MB / 366.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 4 * Number of states: 6 (battery1.limIntegrator.y,energy1.y,battery2.limIntegrator.y,battery2.capacitor[1].v,battery2.capacitor[2].v,energy2.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 (44): * Single equations (assignments): 44 * 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.001697/0.3766, allocations: 477 kB / 465.7 MB, free: 21.3 MB / 366.1 MB Notification: Performance of simCode: created initialization part: time 0.001262/0.3779, allocations: 0.567 MB / 466.3 MB, free: 21.15 MB / 366.1 MB Notification: Performance of simCode: created event and clocks part: time 5.209e-06/0.3779, allocations: 2.656 kB / 466.3 MB, free: 21.15 MB / 366.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0006376/0.3785, allocations: 333.9 kB / 466.6 MB, free: 21.06 MB / 366.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001363/0.3799, allocations: 333.4 kB / 466.9 MB, free: 20.91 MB / 366.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.005658/0.3856, allocations: 3.61 MB / 470.6 MB, free: 19.23 MB / 366.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001001/0.3866, allocations: 1.426 MB / 472 MB, free: 18.43 MB / 366.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0004812/0.387, allocations: 111.1 kB / 472.1 MB, free: 18.41 MB / 366.1 MB Notification: Performance of SimCode: time 8.01e-07/0.387, allocations: 1.375 kB / 472.1 MB, free: 18.41 MB / 366.1 MB Notification: Performance of Templates: time 0.03032/0.4174, allocations: 23.13 MB / 495.2 MB, free: 15.21 MB / 382.1 MB " [Timeout remaining time 660] make -j1 -f Modelica_4.0.0_Modelica.Electrical.Batteries.Examples.BatteryDischargeCharge.makefile [Timeout 660] (rm -f Modelica_4.0.0_Modelica.Electrical.Batteries.Examples.BatteryDischargeCharge.pipe ; mkfifo Modelica_4.0.0_Modelica.Electrical.Batteries.Examples.BatteryDischargeCharge.pipe ; head -c 1048576 < Modelica_4.0.0_Modelica.Electrical.Batteries.Examples.BatteryDischargeCharge.pipe >> ../files/Modelica_4.0.0_Modelica.Electrical.Batteries.Examples.BatteryDischargeCharge.sim & ./Modelica_4.0.0_Modelica.Electrical.Batteries.Examples.BatteryDischargeCharge -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Modelica_4.0.0_Modelica.Electrical.Batteries.Examples.BatteryDischargeCharge.pipe 2>&1) [Timeout 480] diffSimulationResults("Modelica_4.0.0_Modelica.Electrical.Batteries.Examples.BatteryDischargeCharge_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork_2/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Electrical/Batteries/Examples/BatteryDischargeCharge/BatteryDischargeCharge.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork_2/OpenModelicaLibraryTesting/files/Modelica_4.0.0_Modelica.Electrical.Batteries.Examples.BatteryDischargeCharge.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: 10.407023817067966]