Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.1.0-beta.om_Modelica.Electrical.Batteries.Examples.SuperCapDischargeCharge.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 4.1.0-beta.om/package.mo", uses=false) Using package Modelica with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0-beta.om/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.SuperCapDischargeCharge,tolerance=1e-06,outputFormat="mat",numberOfIntervals=144000,variableFilter="time|energy.y|superCap.capacitor.v",fileNamePrefix="Modelica_4.1.0-beta.om_Modelica.Electrical.Batteries.Examples.SuperCapDischargeCharge") translateModel(Modelica.Electrical.Batteries.Examples.SuperCapDischargeCharge,tolerance=1e-06,outputFormat="mat",numberOfIntervals=144000,variableFilter="time|energy.y|superCap.capacitor.v",fileNamePrefix="Modelica_4.1.0-beta.om_Modelica.Electrical.Batteries.Examples.SuperCapDischargeCharge") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.001223/0.001223, allocations: 107.4 kB / 17.98 MB, free: 5.348 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001328/0.001328, allocations: 213.7 kB / 18.92 MB, free: 4.41 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0-beta.om/package.mo): time 1.444/1.444, allocations: 227.7 MB / 247.4 MB, free: 8.809 MB / 206.1 MB Warning: Requested package Modelica of version trunk, but this package was already loaded with version 4.1.0. OpenModelica cannot reason about compatibility between the two packages since they are not semantic versions. Warning: Requested package Complex of version 4.1.0, but this package was already loaded with version trunk. OpenModelica cannot reason about compatibility between the two packages since they are not semantic versions. Warning: Requested package ModelicaServices of version 4.1.0, but this package was already loaded with version trunk. OpenModelica cannot reason about compatibility between the two packages since they are not semantic versions. Notification: Performance of FrontEnd - loaded program: time 0.001962/0.001962, allocations: 61.31 kB / 307.4 MB, free: 0.5781 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1024/0.1044, allocations: 50.54 MB / 357.9 MB, free: 14.02 MB / 302.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Batteries.Examples.SuperCapDischargeCharge): time 0.004733/0.1092, allocations: 3.024 MB / 360.9 MB, free: 10.97 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.001533/0.1108, allocations: 0.7246 MB / 361.7 MB, free: 10.24 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001858/0.111, allocations: 11.94 kB / 361.7 MB, free: 10.23 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0002245/0.1113, allocations: 47.67 kB / 361.7 MB, free: 10.18 MB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0002751/0.1115, allocations: 95.3 kB / 361.8 MB, free: 10.09 MB / 302.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003375/0.1119, allocations: 87.92 kB / 361.9 MB, free: 10 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 0.0004849/0.1124, allocations: 418.2 kB / 362.3 MB, free: 9.594 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0003528/0.1127, allocations: 209.7 kB / 362.5 MB, free: 9.383 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.000192/0.1129, allocations: 159.4 kB / 362.7 MB, free: 9.227 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002757/0.1132, allocations: 179.2 kB / 362.8 MB, free: 9.051 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 7.764e-05/0.1133, allocations: 40 kB / 362.9 MB, free: 9.012 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001349/0.1135, allocations: 63.91 kB / 363 MB, free: 8.949 MB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001507/0.1136, allocations: 107.7 kB / 363.1 MB, free: 8.844 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0002067/0.1138, allocations: 203.1 kB / 363.3 MB, free: 8.645 MB / 302.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0004848/0.1143, allocations: 399.2 kB / 363.6 MB, free: 8.254 MB / 302.1 MB Notification: Performance of FrontEnd - DAE generated: time 5e-06/0.1143, allocations: 0 / 363.6 MB, free: 8.254 MB / 302.1 MB Notification: Performance of FrontEnd: time 1.323e-06/0.1143, allocations: 0 / 363.6 MB, free: 8.254 MB / 302.1 MB Notification: Performance of Transformations before backend: time 7.094e-06/0.1144, allocations: 0 / 363.6 MB, free: 8.254 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: 77 * Number of variables: 77 Notification: Performance of Generate backend data structure: time 0.001751/0.1161, allocations: 0.7874 MB / 364.4 MB, free: 7.418 MB / 302.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.507e-05/0.1162, allocations: 12.03 kB / 364.4 MB, free: 7.406 MB / 302.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 9.851e-05/0.1163, allocations: 44.45 kB / 364.5 MB, free: 7.363 MB / 302.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004846/0.1168, allocations: 342.5 kB / 364.8 MB, free: 6.984 MB / 302.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.279e-05/0.1168, allocations: 25.03 kB / 364.8 MB, free: 6.961 MB / 302.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 6.712e-05/0.1169, allocations: 32.38 kB / 364.9 MB, free: 6.93 MB / 302.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0006771/0.1176, allocations: 342.2 kB / 365.2 MB, free: 6.586 MB / 302.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.539e-05/0.1176, allocations: 4 kB / 365.2 MB, free: 6.582 MB / 302.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.714e-05/0.1176, allocations: 12 kB / 365.2 MB, free: 6.57 MB / 302.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.083e-05/0.1176, allocations: 8 kB / 365.2 MB, free: 6.562 MB / 302.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.000464/0.1181, allocations: 238.4 kB / 365.5 MB, free: 6.328 MB / 302.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002047/0.1202, allocations: 1.315 MB / 366.8 MB, free: 4.93 MB / 302.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0004047/0.1206, allocations: 178.5 kB / 367 MB, free: 4.746 MB / 302.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002809/0.1209, allocations: 132.7 kB / 367.1 MB, free: 4.613 MB / 302.1 MB Notification: Performance of preOpt evalFunc (simulation): time 4.205e-05/0.1209, allocations: 4 kB / 367.1 MB, free: 4.609 MB / 302.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.139e-05/0.121, allocations: 38.56 kB / 367.1 MB, free: 4.562 MB / 302.1 MB Notification: Performance of pre-optimization done (n=16): time 1.963e-06/0.121, allocations: 0 / 367.1 MB, free: 4.562 MB / 302.1 MB Notification: Performance of matching and sorting (n=16): time 0.0005484/0.1215, allocations: 232.4 kB / 367.4 MB, free: 4.332 MB / 302.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.252e-05/0.1216, allocations: 51.41 kB / 367.4 MB, free: 4.27 MB / 302.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003983/0.122, allocations: 315 kB / 367.7 MB, free: 3.957 MB / 302.1 MB Notification: Performance of collectPreVariables (initialization): time 3.383e-05/0.122, allocations: 33.7 kB / 367.7 MB, free: 3.918 MB / 302.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001643/0.1222, allocations: 208 kB / 367.9 MB, free: 3.711 MB / 302.1 MB Notification: Performance of collectInitialBindings (initialization): time 6.626e-05/0.1223, allocations: 55.19 kB / 368 MB, free: 3.656 MB / 302.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 9.604e-05/0.1224, allocations: 57.55 kB / 368.1 MB, free: 3.594 MB / 302.1 MB Notification: Performance of setup shared object (initialization): time 0.0001682/0.1226, allocations: 338.8 kB / 368.4 MB, free: 3.254 MB / 302.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001481/0.1227, allocations: 71.95 kB / 368.5 MB, free: 3.184 MB / 302.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001905/0.1229, allocations: 131.7 kB / 368.6 MB, free: 3.027 MB / 302.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002509/0.1232, allocations: 161.9 kB / 368.7 MB, free: 2.844 MB / 302.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.801e-06/0.1232, allocations: 8 kB / 368.8 MB, free: 2.836 MB / 302.1 MB Notification: Performance of matching and sorting (n=26) (initialization): time 0.0004192/0.1236, allocations: 241 kB / 369 MB, free: 2.594 MB / 302.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.82e-05/0.1236, allocations: 4 kB / 369 MB, free: 2.59 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.095e-06/0.1237, allocations: 4 kB / 369 MB, free: 2.586 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.731e-05/0.1237, allocations: 3.984 kB / 369 MB, free: 2.582 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001941/0.1239, allocations: 43.92 kB / 369 MB, free: 2.539 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.177e-05/0.1239, allocations: 4.25 kB / 369 MB, free: 2.535 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003932/0.1243, allocations: 75.67 kB / 369.1 MB, free: 2.461 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.856e-05/0.1243, allocations: 8 kB / 369.1 MB, free: 2.453 MB / 302.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.0001771/0.1245, allocations: 153.7 kB / 369.3 MB, free: 2.293 MB / 302.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 6.93e-05/0.1246, allocations: 27.66 kB / 369.3 MB, free: 2.266 MB / 302.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0004285/0.125, allocations: 203.8 kB / 369.5 MB, free: 2.059 MB / 302.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.958e-06/0.1251, allocations: 0 / 369.5 MB, free: 2.059 MB / 302.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.075e-06/0.1251, allocations: 7.984 kB / 369.5 MB, free: 2.051 MB / 302.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.717e-06/0.1251, allocations: 3.938 kB / 369.5 MB, free: 2.047 MB / 302.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0009066/0.126, allocations: 0.6199 MB / 370.1 MB, free: 1.367 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.669e-06/0.126, allocations: 3.984 kB / 370.1 MB, free: 1.363 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001777/0.1262, allocations: 27.98 kB / 370.2 MB, free: 1.336 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 7.404e-06/0.1262, allocations: 8 kB / 370.2 MB, free: 1.328 MB / 302.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.135e-05/0.1262, allocations: 12.02 kB / 370.2 MB, free: 1.316 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 4.538e-06/0.1262, allocations: 0 / 370.2 MB, free: 1.316 MB / 302.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.032e-06/0.1263, allocations: 3.938 kB / 370.2 MB, free: 1.312 MB / 302.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0005595/0.1268, allocations: 386.4 kB / 370.6 MB, free: 0.918 MB / 302.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001067/0.1269, allocations: 100.8 kB / 370.7 MB, free: 0.8008 MB / 302.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.791e-05/0.127, allocations: 8 kB / 370.7 MB, free: 0.793 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0004109/0.1274, allocations: 55.98 kB / 370.7 MB, free: 0.7383 MB / 302.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002688/0.1277, allocations: 75.88 kB / 370.8 MB, free: 0.6641 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.036e-05/0.1277, allocations: 4 kB / 370.8 MB, free: 0.6602 MB / 302.1 MB Notification: Performance of sorting global known variables: time 0.0002979/0.128, allocations: 233.9 kB / 371 MB, free: 440 kB / 302.1 MB Notification: Performance of sort global known variables: time 1.3e-07/0.128, allocations: 0 / 371 MB, free: 440 kB / 302.1 MB Notification: Performance of remove unused functions: time 0.0004104/0.1284, allocations: 91.67 kB / 371.1 MB, free: 348 kB / 302.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.0001792/0.1286, allocations: 107.2 kB / 371.2 MB, free: 232 kB / 302.1 MB Notification: Performance of simCode: created initialization part: time 0.0004016/0.129, allocations: 191.7 kB / 371.4 MB, free: 40 kB / 302.1 MB Notification: Performance of simCode: created event and clocks part: time 2.234e-06/0.129, allocations: 0 / 371.4 MB, free: 40 kB / 302.1 MB Notification: Performance of simCode: created simulation system equations: time 0.1369/0.266, allocations: 104.6 kB / 371.5 MB, free: 20.04 MB / 302.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005525/0.2666, allocations: 51.3 kB / 371.6 MB, free: 20.04 MB / 302.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001403/0.268, allocations: 0.883 MB / 372.5 MB, free: 19.58 MB / 302.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002264/0.2682, allocations: 0.775 MB / 373.2 MB, free: 18.88 MB / 302.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001124/0.2683, allocations: 28.64 kB / 373.3 MB, free: 18.87 MB / 302.1 MB Notification: Performance of SimCode: time 8.41e-07/0.2683, allocations: 0 / 373.3 MB, free: 18.87 MB / 302.1 MB Notification: Performance of Templates: time 0.007942/0.2763, allocations: 4.308 MB / 377.6 MB, free: 18.54 MB / 302.1 MB make -j1 -f Modelica_4.1.0-beta.om_Modelica.Electrical.Batteries.Examples.SuperCapDischargeCharge.makefile (rm -f Modelica_4.1.0-beta.om_Modelica.Electrical.Batteries.Examples.SuperCapDischargeCharge.pipe ; mkfifo Modelica_4.1.0-beta.om_Modelica.Electrical.Batteries.Examples.SuperCapDischargeCharge.pipe ; head -c 1048576 < Modelica_4.1.0-beta.om_Modelica.Electrical.Batteries.Examples.SuperCapDischargeCharge.pipe >> ../files/Modelica_4.1.0-beta.om_Modelica.Electrical.Batteries.Examples.SuperCapDischargeCharge.sim & ./Modelica_4.1.0-beta.om_Modelica.Electrical.Batteries.Examples.SuperCapDischargeCharge -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Modelica_4.1.0-beta.om_Modelica.Electrical.Batteries.Examples.SuperCapDischargeCharge.pipe 2>&1) diffSimulationResults("Modelica_4.1.0-beta.om_Modelica.Electrical.Batteries.Examples.SuperCapDischargeCharge_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.1.0/Modelica/Electrical/Batteries/Examples/SuperCapDischargeCharge/SuperCapDischargeCharge.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_4.1.0-beta.om_Modelica.Electrical.Batteries.Examples.SuperCapDischargeCharge.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches