Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Chemical_Chemical.Examples.LeadAcidBattery.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) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Chemical 1.4.0/package.mo", uses=false) Using package Chemical with version 1.4.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Chemical 1.4.0/package.mo) 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(Chemical.Examples.LeadAcidBattery,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="Chemical_Chemical.Examples.LeadAcidBattery") translateModel(Chemical.Examples.LeadAcidBattery,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="Chemical_Chemical.Examples.LeadAcidBattery") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001118/0.001118, allocations: 102.5 kB / 15.71 MB, free: 460 kB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001155/0.001155, allocations: 178 kB / 16.58 MB, free: 6.863 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.57/1.57, allocations: 223.3 MB / 240.6 MB, free: 5.422 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Chemical 1.4.0/package.mo): time 0.3257/0.3257, allocations: 15.26 MB / 307 MB, free: 15.76 MB / 254.1 MB Warning: Ignoring unknown experiment annotation option: __Dymola_Algorithm = "Dassl" Notification: Performance of FrontEnd - loaded program: time 0.0003595/0.0003595, allocations: 8.219 kB / 372.1 MB, free: 4 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.4111/0.4114, allocations: 54.63 MB / 426.7 MB, free: 39.96 MB / 350.1 MB Notification: Performance of NFInst.instantiate(Chemical.Examples.LeadAcidBattery): time 0.01032/0.4218, allocations: 11.91 MB / 438.6 MB, free: 34.58 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.0355/0.4574, allocations: 30.82 MB / 469.4 MB, free: 12.18 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.004309/0.4617, allocations: 50.38 kB / 469.5 MB, free: 12.16 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.002524/0.4643, allocations: 0.6723 MB / 470.2 MB, free: 11.8 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.01006/0.4744, allocations: 2.46 MB / 472.6 MB, free: 10.3 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0149/0.4893, allocations: 3.585 MB / 476.2 MB, free: 8.219 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.007682/0.497, allocations: 3.135 MB / 479.3 MB, free: 6.664 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.003941/0.501, allocations: 1.628 MB / 481 MB, free: 6.023 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.004133/0.5052, allocations: 1.33 MB / 482.3 MB, free: 5.574 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.004915/0.5101, allocations: 1.654 MB / 484 MB, free: 4.973 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0008872/0.511, allocations: 171.2 kB / 484.1 MB, free: 4.973 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.01815/0.5292, allocations: 3.393 MB / 487.5 MB, free: 4.168 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 0.00213/0.5314, allocations: 0.5773 MB / 488.1 MB, free: 3.863 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.002119/0.5335, allocations: 0.5192 MB / 488.6 MB, free: 3.598 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0154/0.5489, allocations: 5.393 MB / 494 MB, free: 1.492 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 7.143e-06/0.549, allocations: 1.094 kB / 494 MB, free: 1.492 MB / 350.1 MB Notification: Performance of FrontEnd: time 2.275e-06/0.549, allocations: 0 / 494 MB, free: 1.492 MB / 350.1 MB Notification: Performance of Transformations before backend: time 0.0001747/0.5492, allocations: 4 kB / 494 MB, free: 1.488 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: 669 * Number of variables: 669 Notification: Performance of Generate backend data structure: time 0.01177/0.5609, allocations: 3.077 MB / 497.1 MB, free: 15.4 MB / 366.1 MB Notification: Performance of prepare preOptimizeDAE: time 6.483e-05/0.561, allocations: 10.22 kB / 497.1 MB, free: 15.4 MB / 366.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.003624/0.5647, allocations: 0.6198 MB / 497.7 MB, free: 14.94 MB / 366.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.003194/0.5679, allocations: 1.38 MB / 499.1 MB, free: 13.51 MB / 366.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002436/0.5681, allocations: 260.6 kB / 499.4 MB, free: 13.24 MB / 366.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0004433/0.5686, allocations: 267.8 kB / 499.6 MB, free: 12.98 MB / 366.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.005982/0.5746, allocations: 3.101 MB / 0.4909 GB, free: 9.809 MB / 366.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 4.486e-05/0.5746, allocations: 0 / 0.4909 GB, free: 9.809 MB / 366.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0002828/0.5749, allocations: 112 kB / 0.491 GB, free: 9.699 MB / 366.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.51e-05/0.575, allocations: 60 kB / 0.4911 GB, free: 9.641 MB / 366.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.006541/0.5815, allocations: 3.823 MB / 0.4948 GB, free: 5.805 MB / 366.1 MB Warning: The model contains alias variables with redundant start and/or conflicting nominal values. It is recommended to resolve the conflicts, because otherwise the system could be hard to solve. To print the conflicting alias sets and the chosen candidates please use -d=aliasConflicts. Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.01808/0.5996, allocations: 9.871 MB / 0.5045 GB, free: 11.56 MB / 382.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.005426/0.6051, allocations: 3.456 MB / 0.5078 GB, free: 7.973 MB / 382.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.002373/0.6075, allocations: 1.332 MB / 0.5091 GB, free: 6.633 MB / 382.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.01776/0.6253, allocations: 10.64 MB / 0.5195 GB, free: 10.83 MB / 398.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.489e-05/0.6254, allocations: 48.56 kB / 0.5196 GB, free: 10.77 MB / 398.1 MB Notification: Performance of preOpt simplifyInStream (simulation): time 0.001275/0.6267, allocations: 205.9 kB / 0.5198 GB, free: 10.57 MB / 398.1 MB Notification: Performance of pre-optimization done (n=177): time 6.372e-06/0.6267, allocations: 0 / 0.5198 GB, free: 10.57 MB / 398.1 MB Notification: Performance of matching and sorting (n=251): time 0.04483/0.6716, allocations: 12.4 MB / 0.5319 GB, free: 14.01 MB / 414.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.745e-05/0.6717, allocations: 81.41 kB / 0.532 GB, free: 13.92 MB / 414.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001924/0.6736, allocations: 1.156 MB / 0.5331 GB, free: 12.75 MB / 414.1 MB Notification: Performance of collectPreVariables (initialization): time 0.000301/0.6739, allocations: 65.7 kB / 0.5332 GB, free: 12.68 MB / 414.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0009303/0.6749, allocations: 1.149 MB / 0.5343 GB, free: 11.52 MB / 414.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0009369/0.6758, allocations: 0.8548 MB / 0.5351 GB, free: 10.65 MB / 414.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001725/0.676, allocations: 71.94 kB / 0.5352 GB, free: 10.58 MB / 414.1 MB Notification: Performance of setup shared object (initialization): time 0.000246/0.6762, allocations: 420.3 kB / 0.5356 GB, free: 10.16 MB / 414.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001821/0.6781, allocations: 0.9938 MB / 0.5366 GB, free: 9.164 MB / 414.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.00251/0.6806, allocations: 1.901 MB / 0.5384 GB, free: 6.871 MB / 414.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.002257/0.6829, allocations: 1.272 MB / 0.5397 GB, free: 5.578 MB / 414.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.431e-05/0.6829, allocations: 8 kB / 0.5397 GB, free: 5.57 MB / 414.1 MB Notification: Performance of matching and sorting (n=391) (initialization): time 0.01031/0.6932, allocations: 4.109 MB / 0.5437 GB, free: 1.395 MB / 414.1 MB Notification: Performance of prepare postOptimizeDAE: time 5.013e-05/0.6933, allocations: 16.38 kB / 0.5437 GB, free: 1.379 MB / 414.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.138e-05/0.6933, allocations: 32 kB / 0.5437 GB, free: 1.348 MB / 414.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.005917/0.6993, allocations: 1.372 MB / 0.5451 GB, free: 15.96 MB / 430.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.002816/0.7021, allocations: 0.6552 MB / 0.5457 GB, free: 15.3 MB / 430.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01219/0.7143, allocations: 7.696 MB / 0.5532 GB, free: 7.18 MB / 430.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.003628/0.718, allocations: 171.6 kB / 0.5534 GB, free: 7.012 MB / 430.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0009225/0.7189, allocations: 171.9 kB / 0.5535 GB, free: 6.844 MB / 430.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 127 * Number of states: 0 () * Number of discrete variables: 0 () * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (341): * Single equations (assignments): 336 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 1 * Torn equation systems: 4 * Mixed (continuous/discrete) equation systems: 0 Notification: Equation system details: * Constant Jacobian: 0 * Linear Jacobian (size,density): 1 {(2,100.0%)} * Non-linear Jacobian: 0 * Without analytic Jacobian: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 2 {(3,77.8%) 15,(1,100.0%) 3} * Non-linear torn systems: 2 {2 25,1 3} Notification: Performance of prepare postOptimizeDAE: time 0.002414/0.7214, allocations: 0.515 MB / 0.554 GB, free: 6.32 MB / 430.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0008183/0.7222, allocations: 197.5 kB / 0.5542 GB, free: 6.125 MB / 430.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.013/0.7352, allocations: 3.897 MB / 0.558 GB, free: 2.152 MB / 430.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.137e-05/0.7353, allocations: 24 kB / 0.5581 GB, free: 2.129 MB / 430.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.589e-05/0.7353, allocations: 4 kB / 0.5581 GB, free: 2.125 MB / 430.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.69e-05/0.7354, allocations: 11.95 kB / 0.5581 GB, free: 2.113 MB / 430.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01703/0.7524, allocations: 6.315 MB / 0.5642 GB, free: 11.64 MB / 446.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.976e-05/0.7525, allocations: 4 kB / 0.5642 GB, free: 11.64 MB / 446.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001971/0.7544, allocations: 443.7 kB / 0.5647 GB, free: 11.2 MB / 446.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.005841/0.7603, allocations: 1.278 MB / 0.5659 GB, free: 9.91 MB / 446.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0004578/0.7608, allocations: 99.89 kB / 0.566 GB, free: 9.812 MB / 446.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.01085/0.7717, allocations: 7.249 MB / 0.5731 GB, free: 2.141 MB / 446.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.927e-06/0.7717, allocations: 3.984 kB / 0.5731 GB, free: 2.137 MB / 446.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01518/0.7869, allocations: 5.031 MB / 0.578 GB, free: 12.95 MB / 462.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001291/0.7883, allocations: 250.6 kB / 0.5782 GB, free: 12.68 MB / 462.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0009159/0.7892, allocations: 52 kB / 0.5783 GB, free: 12.63 MB / 462.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.002237/0.7915, allocations: 95.8 kB / 0.5784 GB, free: 12.54 MB / 462.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0007865/0.7923, allocations: 233.7 kB / 0.5786 GB, free: 12.31 MB / 462.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0004624/0.7928, allocations: 107.9 kB / 0.5787 GB, free: 12.2 MB / 462.1 MB Notification: Performance of sorting global known variables: time 0.001822/0.7946, allocations: 0.7194 MB / 0.5794 GB, free: 11.48 MB / 462.1 MB Notification: Performance of sort global known variables: time 1.934e-06/0.7946, allocations: 96 / 0.5794 GB, free: 11.48 MB / 462.1 MB Notification: Performance of remove unused functions: time 0.00862/0.8032, allocations: 1.456 MB / 0.5808 GB, free: 10.03 MB / 462.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 12 * Number of states: 10 (anode.temperature,cathode.temperature,solution1.temperature,Pb.logn,HSO4.logn,PbSO4_.logn,H.logn,PbO2.logn,H2O.logn,PbSO4.logn) * Number of discrete variables: 0 () * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (222): * Single equations (assignments): 217 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 1 * Torn equation systems: 4 * Mixed (continuous/discrete) equation systems: 0 Notification: Equation system details: * Constant Jacobian: 0 * Linear Jacobian (size,density): 1 {(2,100.0%)} * Non-linear Jacobian: 0 * Without analytic Jacobian: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 2 {(3,66.7%) 15,(1,100.0%) 3} * Non-linear torn systems: 2 {2 27,1 3} Notification: Performance of Backend phase and start with SimCode phase: time 0.007079/0.8103, allocations: 1.458 MB / 0.5823 GB, free: 8.562 MB / 462.1 MB Notification: Performance of simCode: created initialization part: time 0.008667/0.819, allocations: 3.477 MB / 0.5857 GB, free: 4.996 MB / 462.1 MB Notification: Performance of simCode: created event and clocks part: time 1.001e-05/0.8191, allocations: 1.875 kB / 0.5857 GB, free: 4.996 MB / 462.1 MB Notification: Performance of simCode: created simulation system equations: time 0.004275/0.8234, allocations: 2.017 MB / 0.5876 GB, free: 2.918 MB / 462.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.003511/0.8269, allocations: 383.1 kB / 0.588 GB, free: 2.539 MB / 462.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.2945/1.121, allocations: 5.862 MB / 0.5937 GB, free: 135.1 MB / 462.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001187/1.123, allocations: 1.594 MB / 0.5953 GB, free: 134.4 MB / 462.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001543/1.124, allocations: 437.4 kB / 0.5957 GB, free: 134.4 MB / 462.1 MB Notification: Performance of SimCode: time 2.234e-06/1.124, allocations: 0 / 0.5957 GB, free: 134.4 MB / 462.1 MB Notification: Performance of Templates: time 0.1086/1.233, allocations: 88.72 MB / 0.6823 GB, free: 74.91 MB / 462.1 MB make -j1 -f Chemical_Chemical.Examples.LeadAcidBattery.makefile make -j1 -f Chemical_Chemical.Examples.LeadAcidBattery.makefile clang++ NOTFOUND -Winvalid-pch -O0 -g -DNDEBUG -fPIC -std=c++11 -DBOOST_ALL_DYN_LINK -DUSE_DGESV -DUSE_LOGGER -DOMC_BUILD -DUSE_THREAD -DSUNDIALS_MAJOR_VERSION=5 -DSUNDIALS_MINOR_VERSION=4 -DPMC_USE_SUNDIALS -I"." -I"/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/build/bin/../include/omc/cpp/" -I. -I"." -I"." -I"/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/build/include/omc/c/sundials" -DMEASURETIME_PROFILEBLOCKS -DUSE_LOGGER -c -o OMCppChemical_Chemical.Examples.LeadAcidBatteryCalcHelperMain.o OMCppChemical_Chemical.Examples.LeadAcidBatteryCalcHelperMain.cpp clang: error: no such file or directory: 'NOTFOUND' make: *** [: OMCppChemical_Chemical.Examples.LeadAcidBatteryCalcHelperMain.o] Error 1