Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_trunk_Modelica.Electrical.Batteries.Examples.BatteryDischargeCharge.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo", uses=false) 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.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_trunk_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_trunk_Modelica.Electrical.Batteries.Examples.BatteryDischargeCharge") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.001784/0.001784, allocations: 103.9 kB / 17.63 MB, free: 5.523 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.002037/0.002037, allocations: 210.4 kB / 18.58 MB, free: 4.578 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.469/1.469, allocations: 227.4 MB / 246.8 MB, free: 10.61 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001855/0.001855, allocations: 61.89 kB / 307 MB, free: 0.625 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1064/0.1083, allocations: 50.54 MB / 357.5 MB, free: 14.07 MB / 302.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Batteries.Examples.BatteryDischargeCharge): time 0.008191/0.1165, allocations: 5.841 MB / 363.4 MB, free: 8.199 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.004846/0.1214, allocations: 2.742 MB / 366.1 MB, free: 5.445 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0005201/0.122, allocations: 23.94 kB / 366.1 MB, free: 5.422 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 0.001649/0.1237, allocations: 0.7738 MB / 366.9 MB, free: 4.645 MB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 0.00102/0.1247, allocations: 0.5438 MB / 367.5 MB, free: 4.098 MB / 302.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001104/0.1258, allocations: 0.5173 MB / 368 MB, free: 3.586 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 0.001652/0.1275, allocations: 1.594 MB / 369.6 MB, free: 1.988 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0007884/0.1283, allocations: 0.5961 MB / 370.2 MB, free: 1.367 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0006737/0.1289, allocations: 0.6073 MB / 370.8 MB, free: 0.7578 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0008914/0.1298, allocations: 0.7393 MB / 371.5 MB, free: 16 kB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 0.16/0.2898, allocations: 134.2 kB / 371.6 MB, free: 11.5 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.000823/0.2907, allocations: 204.1 kB / 371.8 MB, free: 11.5 MB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0007188/0.2915, allocations: 0.6418 MB / 372.5 MB, free: 11.5 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 0.001049/0.2925, allocations: 0.9176 MB / 373.4 MB, free: 11.26 MB / 302.1 MB Notification: Performance of NFConvertDAE.convert: time 0.003244/0.2958, allocations: 2.461 MB / 375.9 MB, free: 10.89 MB / 302.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.757e-06/0.2958, allocations: 1.531 kB / 375.9 MB, free: 10.89 MB / 302.1 MB Notification: Performance of FrontEnd: time 1.733e-06/0.2958, allocations: 2.078 kB / 375.9 MB, free: 10.89 MB / 302.1 MB Notification: Performance of Transformations before backend: time 4.242e-05/0.2958, allocations: 0 / 375.9 MB, free: 10.89 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.00558/0.3014, allocations: 2.588 MB / 378.5 MB, free: 9.656 MB / 302.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.58e-05/0.3015, allocations: 9.562 kB / 378.5 MB, free: 9.656 MB / 302.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0004725/0.302, allocations: 222.9 kB / 378.7 MB, free: 9.543 MB / 302.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.002579/0.3046, allocations: 1.522 MB / 380.2 MB, free: 9.031 MB / 302.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0005123/0.3051, allocations: 176.4 kB / 380.4 MB, free: 8.996 MB / 302.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001278/0.3052, allocations: 81.94 kB / 380.5 MB, free: 8.996 MB / 302.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001946/0.3072, allocations: 1.133 MB / 381.6 MB, free: 8.738 MB / 302.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.324e-05/0.3072, allocations: 1.469 kB / 381.6 MB, free: 8.738 MB / 302.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 9.741e-05/0.3073, allocations: 39.41 kB / 381.6 MB, free: 8.738 MB / 302.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.897e-05/0.3074, allocations: 21.25 kB / 381.6 MB, free: 8.738 MB / 302.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001397/0.3088, allocations: 0.7403 MB / 382.4 MB, free: 8.547 MB / 302.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.00781/0.3166, allocations: 4.675 MB / 387.1 MB, free: 5.98 MB / 302.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.00142/0.318, allocations: 0.9741 MB / 388 MB, free: 5.297 MB / 302.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0008143/0.3189, allocations: 408.6 kB / 388.4 MB, free: 5.176 MB / 302.1 MB Notification: Performance of preOpt evalFunc (simulation): time 4.873e-05/0.3189, allocations: 7.062 kB / 388.4 MB, free: 5.176 MB / 302.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.642e-05/0.319, allocations: 43.84 kB / 388.5 MB, free: 5.129 MB / 302.1 MB Notification: Performance of pre-optimization done (n=44): time 2.635e-06/0.319, allocations: 1.531 kB / 388.5 MB, free: 5.129 MB / 302.1 MB Notification: Performance of matching and sorting (n=44): time 0.002364/0.3213, allocations: 0.8849 MB / 389.4 MB, free: 4.809 MB / 302.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001074/0.3215, allocations: 419.5 kB / 389.8 MB, free: 4.309 MB / 302.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.004147/0.3256, allocations: 2.769 MB / 392.6 MB, free: 3.184 MB / 302.1 MB Notification: Performance of collectPreVariables (initialization): time 8.788e-05/0.3257, allocations: 38.92 kB / 392.6 MB, free: 3.145 MB / 302.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0005817/0.3263, allocations: 0.882 MB / 393.5 MB, free: 2.383 MB / 302.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001217/0.3264, allocations: 159.2 kB / 393.6 MB, free: 2.246 MB / 302.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002024/0.3266, allocations: 124.4 kB / 393.7 MB, free: 2.168 MB / 302.1 MB Notification: Performance of setup shared object (initialization): time 5.506e-05/0.3267, allocations: 334.3 kB / 394.1 MB, free: 1.844 MB / 302.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0006002/0.3273, allocations: 278.1 kB / 394.3 MB, free: 1.715 MB / 302.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0007424/0.3281, allocations: 0.5516 MB / 394.9 MB, free: 1.234 MB / 302.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001221/0.3293, allocations: 0.6628 MB / 395.6 MB, free: 0.7852 MB / 302.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.282e-06/0.3293, allocations: 1.969 kB / 395.6 MB, free: 0.7852 MB / 302.1 MB Notification: Performance of matching and sorting (n=76) (initialization): time 0.002102/0.3314, allocations: 0.8994 MB / 396.5 MB, free: 376 kB / 302.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.873e-05/0.3315, allocations: 10.5 kB / 396.5 MB, free: 376 kB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.045e-05/0.3315, allocations: 7.5 kB / 396.5 MB, free: 376 kB / 302.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.598e-05/0.3315, allocations: 7.75 kB / 396.5 MB, free: 376 kB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0006036/0.3321, allocations: 177 kB / 396.7 MB, free: 332 kB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.415e-05/0.3321, allocations: 9.938 kB / 396.7 MB, free: 332 kB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001267/0.3334, allocations: 174.4 kB / 396.8 MB, free: 236 kB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.396e-05/0.3335, allocations: 30.02 kB / 396.9 MB, free: 228 kB / 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.0009334/0.3344, allocations: 0.5584 MB / 397.4 MB, free: 15.91 MB / 318.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002955/0.3347, allocations: 178.6 kB / 397.6 MB, free: 15.82 MB / 318.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001599/0.3363, allocations: 0.7391 MB / 398.3 MB, free: 15.43 MB / 318.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.38e-06/0.3363, allocations: 2.5 kB / 398.3 MB, free: 15.43 MB / 318.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.919e-06/0.3364, allocations: 0 / 398.3 MB, free: 15.43 MB / 318.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.626e-06/0.3364, allocations: 6.781 kB / 398.4 MB, free: 15.43 MB / 318.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.003659/0.34, allocations: 2.185 MB / 400.5 MB, free: 13.98 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.506e-06/0.34, allocations: 0 / 400.5 MB, free: 13.98 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0005324/0.3406, allocations: 123.8 kB / 400.7 MB, free: 13.95 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 5.841e-06/0.3406, allocations: 3.062 kB / 400.7 MB, free: 13.95 MB / 318.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.301e-05/0.3407, allocations: 16.14 kB / 400.7 MB, free: 13.94 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 4.889e-06/0.3407, allocations: 2.781 kB / 400.7 MB, free: 13.94 MB / 318.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.915e-06/0.3407, allocations: 5.125 kB / 400.7 MB, free: 13.94 MB / 318.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002186/0.3429, allocations: 1.111 MB / 401.8 MB, free: 13.2 MB / 318.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0007473/0.3436, allocations: 414.6 kB / 402.2 MB, free: 12.77 MB / 318.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002108/0.3438, allocations: 19.98 kB / 402.2 MB, free: 12.75 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001132/0.345, allocations: 143.8 kB / 402.4 MB, free: 12.61 MB / 318.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0003153/0.3453, allocations: 155.3 kB / 402.5 MB, free: 12.46 MB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.911e-05/0.3454, allocations: 23.98 kB / 402.5 MB, free: 12.44 MB / 318.1 MB Notification: Performance of sorting global known variables: time 0.003009/0.3484, allocations: 1.964 MB / 404.5 MB, free: 10.46 MB / 318.1 MB Notification: Performance of sort global known variables: time 2.31e-07/0.3484, allocations: 0 / 404.5 MB, free: 10.46 MB / 318.1 MB Notification: Performance of remove unused functions: time 0.00104/0.3494, allocations: 319.1 kB / 404.8 MB, free: 10.14 MB / 318.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.001767/0.3512, allocations: 482.2 kB / 405.3 MB, free: 9.855 MB / 318.1 MB Notification: Performance of simCode: created initialization part: time 0.001806/0.353, allocations: 0.6832 MB / 406 MB, free: 9.191 MB / 318.1 MB Notification: Performance of simCode: created event and clocks part: time 8.185e-06/0.3531, allocations: 0.5 kB / 406 MB, free: 9.191 MB / 318.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0007958/0.3539, allocations: 379.4 kB / 406.3 MB, free: 8.832 MB / 318.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001909/0.3558, allocations: 317.2 kB / 406.6 MB, free: 8.523 MB / 318.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.006874/0.3627, allocations: 3.536 MB / 410.2 MB, free: 4.949 MB / 318.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001441/0.3642, allocations: 1.433 MB / 411.6 MB, free: 3.484 MB / 318.1 MB Notification: Performance of simCode: alias equations: time 0.001484/0.3656, allocations: 291.1 kB / 411.9 MB, free: 3.195 MB / 318.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003755/0.366, allocations: 110.9 kB / 412 MB, free: 3.09 MB / 318.1 MB Notification: Performance of SimCode: time 1.693e-06/0.366, allocations: 0 / 412 MB, free: 3.09 MB / 318.1 MB Notification: Performance of Templates: time 0.04092/0.407, allocations: 21.35 MB / 433.4 MB, free: 13.95 MB / 350.1 MB make -j1 -f Modelica_trunk_Modelica.Electrical.Batteries.Examples.BatteryDischargeCharge.makefile (rm -f Modelica_trunk_Modelica.Electrical.Batteries.Examples.BatteryDischargeCharge.pipe ; mkfifo Modelica_trunk_Modelica.Electrical.Batteries.Examples.BatteryDischargeCharge.pipe ; head -c 1048576 < Modelica_trunk_Modelica.Electrical.Batteries.Examples.BatteryDischargeCharge.pipe >> ../files/Modelica_trunk_Modelica.Electrical.Batteries.Examples.BatteryDischargeCharge.sim & ./Modelica_trunk_Modelica.Electrical.Batteries.Examples.BatteryDischargeCharge -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Modelica_trunk_Modelica.Electrical.Batteries.Examples.BatteryDischargeCharge.pipe 2>&1) diffSimulationResults("Modelica_trunk_Modelica.Electrical.Batteries.Examples.BatteryDischargeCharge_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.1.0/Modelica/Electrical/Batteries/Examples/BatteryDischargeCharge/BatteryDischargeCharge.csv","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_trunk_Modelica.Electrical.Batteries.Examples.BatteryDischargeCharge.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches