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) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo", uses=false) 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=72000,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=72000,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") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001073/0.001073, allocations: 107.4 kB / 16.62 MB, free: 6.812 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001215/0.001215, allocations: 193.9 kB / 17.55 MB, free: 5.953 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.334/1.334, allocations: 222.9 MB / 241.2 MB, free: 15.43 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0009814/0.0009816, allocations: 41.91 kB / 300.1 MB, free: 6.211 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1015/0.1025, allocations: 49.45 MB / 349.6 MB, free: 4.75 MB / 286.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Batteries.Examples.BatteryDischargeCharge): time 0.007039/0.1096, allocations: 5.786 MB / 355.4 MB, free: 14.93 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.004129/0.1137, allocations: 2.536 MB / 357.9 MB, free: 12.38 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0006/0.1144, allocations: 23.94 kB / 357.9 MB, free: 12.36 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 0.001565/0.116, allocations: 0.7044 MB / 358.6 MB, free: 11.65 MB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 0.000996/0.117, allocations: 465.7 kB / 359.1 MB, free: 11.2 MB / 302.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001073/0.1181, allocations: 474.5 kB / 359.5 MB, free: 10.74 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 0.001644/0.1197, allocations: 1.586 MB / 361.1 MB, free: 9.148 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0008153/0.1206, allocations: 0.5961 MB / 361.7 MB, free: 8.527 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0006474/0.1212, allocations: 0.6112 MB / 362.3 MB, free: 7.914 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0007536/0.122, allocations: 0.751 MB / 363.1 MB, free: 7.16 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001694/0.1222, allocations: 132 kB / 363.2 MB, free: 7.031 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.000385/0.1226, allocations: 208 kB / 363.4 MB, free: 6.828 MB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0005371/0.1231, allocations: 0.6387 MB / 364.1 MB, free: 6.188 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0008488/0.124, allocations: 0.9127 MB / 365 MB, free: 5.27 MB / 302.1 MB Notification: Performance of NFConvertDAE.convert: time 0.002396/0.1264, allocations: 2.453 MB / 367.4 MB, free: 2.809 MB / 302.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.14e-06/0.1264, allocations: 0 / 367.4 MB, free: 2.809 MB / 302.1 MB Notification: Performance of FrontEnd: time 1.302e-06/0.1264, allocations: 4 kB / 367.4 MB, free: 2.805 MB / 302.1 MB Notification: Performance of Transformations before backend: time 3.603e-05/0.1265, allocations: 0 / 367.4 MB, free: 2.805 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: 215 * Number of variables: 215 Notification: Performance of Generate backend data structure: time 0.004527/0.131, allocations: 2.571 MB / 370 MB, free: 176 kB / 302.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.767e-05/0.131, allocations: 8.031 kB / 370 MB, free: 168 kB / 302.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.1654/0.2964, allocations: 221.7 kB / 370.2 MB, free: 24.71 MB / 302.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.002602/0.2991, allocations: 1.516 MB / 371.7 MB, free: 24.34 MB / 302.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0005329/0.2996, allocations: 174.8 kB / 371.9 MB, free: 24.31 MB / 302.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001345/0.2998, allocations: 83.03 kB / 372 MB, free: 24.31 MB / 302.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.00207/0.3019, allocations: 1.125 MB / 373.1 MB, free: 23.81 MB / 302.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.292e-05/0.3019, allocations: 3.938 kB / 373.1 MB, free: 23.81 MB / 302.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 8.827e-05/0.302, allocations: 38.78 kB / 373.2 MB, free: 23.78 MB / 302.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.235e-05/0.302, allocations: 22.59 kB / 373.2 MB, free: 23.78 MB / 302.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001418/0.3034, allocations: 0.7405 MB / 373.9 MB, free: 23.54 MB / 302.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.006152/0.3096, allocations: 4.658 MB / 378.6 MB, free: 20.96 MB / 302.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001428/0.311, allocations: 0.9901 MB / 379.6 MB, free: 20.26 MB / 302.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0008411/0.3119, allocations: 409.8 kB / 380 MB, free: 20.14 MB / 302.1 MB Notification: Performance of preOpt evalFunc (simulation): time 5.188e-05/0.312, allocations: 6.766 kB / 380 MB, free: 20.14 MB / 302.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.979e-05/0.312, allocations: 43.16 kB / 380 MB, free: 20.09 MB / 302.1 MB Notification: Performance of pre-optimization done (n=44): time 2.114e-06/0.312, allocations: 0 / 380 MB, free: 20.09 MB / 302.1 MB Notification: Performance of matching and sorting (n=44): time 0.002059/0.3141, allocations: 0.8871 MB / 380.9 MB, free: 19.77 MB / 302.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001147/0.3142, allocations: 424.4 kB / 381.3 MB, free: 19.26 MB / 302.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.003402/0.3176, allocations: 2.737 MB / 384.1 MB, free: 18.37 MB / 302.1 MB Notification: Performance of collectPreVariables (initialization): time 6.156e-05/0.3177, allocations: 38.64 kB / 384.1 MB, free: 18.33 MB / 302.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0005692/0.3183, allocations: 0.8736 MB / 385 MB, free: 17.65 MB / 302.1 MB Notification: Performance of collectInitialBindings (initialization): time 9.801e-05/0.3184, allocations: 155.5 kB / 385.1 MB, free: 17.54 MB / 302.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001906/0.3186, allocations: 135.4 kB / 385.3 MB, free: 17.46 MB / 302.1 MB Notification: Performance of setup shared object (initialization): time 5.796e-05/0.3186, allocations: 336.4 kB / 385.6 MB, free: 17.14 MB / 302.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0005943/0.3192, allocations: 274.2 kB / 385.8 MB, free: 17.07 MB / 302.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0006896/0.3199, allocations: 0.556 MB / 386.4 MB, free: 16.61 MB / 302.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001059/0.321, allocations: 0.6499 MB / 387.1 MB, free: 16.14 MB / 302.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.929e-06/0.321, allocations: 2.375 kB / 387.1 MB, free: 16.14 MB / 302.1 MB Notification: Performance of matching and sorting (n=76) (initialization): time 0.001665/0.3227, allocations: 0.8954 MB / 388 MB, free: 15.69 MB / 302.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.003e-05/0.3227, allocations: 6.719 kB / 388 MB, free: 15.69 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.076e-05/0.3227, allocations: 5.875 kB / 388 MB, free: 15.69 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.215e-05/0.3228, allocations: 9.922 kB / 388 MB, free: 15.69 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0006156/0.3234, allocations: 176.8 kB / 388.1 MB, free: 15.64 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.411e-05/0.3234, allocations: 13.09 kB / 388.2 MB, free: 15.63 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0009944/0.3244, allocations: 174.4 kB / 388.3 MB, free: 15.54 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.816e-05/0.3245, allocations: 27.72 kB / 388.4 MB, free: 15.54 MB / 302.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.0006032/0.3251, allocations: 0.559 MB / 388.9 MB, free: 15.2 MB / 302.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002187/0.3253, allocations: 179.4 kB / 389.1 MB, free: 15.11 MB / 302.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001333/0.3266, allocations: 0.7398 MB / 389.8 MB, free: 14.72 MB / 302.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.652e-06/0.3267, allocations: 5.5 kB / 389.8 MB, free: 14.72 MB / 302.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.238e-06/0.3267, allocations: 4 kB / 389.8 MB, free: 14.71 MB / 302.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.781e-06/0.3267, allocations: 3.984 kB / 389.8 MB, free: 14.71 MB / 302.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002909/0.3296, allocations: 2.169 MB / 392 MB, free: 13.28 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.507e-06/0.3296, allocations: 0 / 392 MB, free: 13.28 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0005127/0.3301, allocations: 121.4 kB / 392.1 MB, free: 13.25 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 6.011e-06/0.3301, allocations: 2.188 kB / 392.1 MB, free: 13.25 MB / 302.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.902e-05/0.3302, allocations: 17.05 kB / 392.1 MB, free: 13.23 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 4.469e-06/0.3302, allocations: 2.781 kB / 392.2 MB, free: 13.23 MB / 302.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.854e-06/0.3302, allocations: 1.469 kB / 392.2 MB, free: 13.23 MB / 302.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001853/0.3321, allocations: 1.119 MB / 393.3 MB, free: 12.58 MB / 302.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0005266/0.3326, allocations: 406.6 kB / 393.7 MB, free: 12.29 MB / 302.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001819/0.3328, allocations: 15.91 kB / 393.7 MB, free: 12.28 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001013/0.3338, allocations: 152.5 kB / 393.8 MB, free: 12.21 MB / 302.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.000262/0.3341, allocations: 156.1 kB / 394 MB, free: 12.13 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.612e-05/0.3341, allocations: 15.86 kB / 394 MB, free: 12.12 MB / 302.1 MB Notification: Performance of sorting global known variables: time 0.001883/0.336, allocations: 1.952 MB / 396 MB, free: 10.46 MB / 302.1 MB Notification: Performance of sort global known variables: time 1.5e-07/0.336, allocations: 0 / 396 MB, free: 10.46 MB / 302.1 MB Notification: Performance of remove unused functions: time 0.0007364/0.3368, allocations: 311 kB / 396.3 MB, free: 10.16 MB / 302.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.0009809/0.3377, allocations: 479.2 kB / 396.7 MB, free: 9.891 MB / 302.1 MB Notification: Performance of simCode: created initialization part: time 0.001326/0.3391, allocations: 0.6779 MB / 397.4 MB, free: 9.223 MB / 302.1 MB Notification: Performance of simCode: created event and clocks part: time 3.847e-06/0.3391, allocations: 4.875 kB / 397.4 MB, free: 9.219 MB / 302.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0006297/0.3397, allocations: 371.8 kB / 397.8 MB, free: 8.855 MB / 302.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001349/0.3411, allocations: 337.1 kB / 398.1 MB, free: 8.531 MB / 302.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.004788/0.3459, allocations: 4.059 MB / 402.2 MB, free: 4.441 MB / 302.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0007787/0.3467, allocations: 1.434 MB / 403.6 MB, free: 2.98 MB / 302.1 MB Notification: Performance of simCode: alias equations: time 0.0008764/0.3476, allocations: 294.8 kB / 403.9 MB, free: 2.688 MB / 302.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.000281/0.3479, allocations: 103.4 kB / 404 MB, free: 2.586 MB / 302.1 MB Notification: Performance of SimCode: time 1.021e-06/0.3479, allocations: 0 / 404 MB, free: 2.586 MB / 302.1 MB Notification: Performance of Templates: time 0.03211/0.38, allocations: 20.23 MB / 424.2 MB, free: 14.56 MB / 334.1 MB make -j1 -f Modelica_4.0.0_Modelica.Electrical.Batteries.Examples.BatteryDischargeCharge.makefile (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) diffSimulationResults("Modelica_4.0.0_Modelica.Electrical.Batteries.Examples.BatteryDischargeCharge_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Electrical/Batteries/Examples/BatteryDischargeCharge/BatteryDischargeCharge.csv","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_4.0.0_Modelica.Electrical.Batteries.Examples.BatteryDischargeCharge.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches