Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Chemical_Chemical.Examples.SimpleReaction2.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.1-master/package.mo", uses=false) Using package Chemical with version 1.4.1 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Chemical 1.4.1-master/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: "" <> buildModelFMU(Chemical.Examples.SimpleReaction2,fileNamePrefix="Chemical_Chemical_Examples_SimpleReaction2",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Chemical.Examples.SimpleReaction2,fileNamePrefix="Chemical_Chemical_Examples_SimpleReaction2",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.008053/0.008053, allocations: 99.03 kB / 15.73 MB, free: 6.043 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.001795/0.001795, allocations: 195.3 kB / 16.68 MB, free: 5.973 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.425/1.425, allocations: 222.9 MB / 240.4 MB, free: 4.34 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Chemical 1.4.1-master/package.mo): time 0.2412/0.2412, allocations: 15.32 MB / 305.9 MB, free: 15.25 MB / 254.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001513/0.001514, allocations: 67.91 kB / 424.7 MB, free: 13.61 MB / 366.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2499/0.2514, allocations: 53.6 MB / 478.3 MB, free: 25.63 MB / 366.1 MB [/home/hudson/saved_omc/libraries/.openmodelica/libraries/Chemical 1.4.1-master/package.mo:4740:7-4740:66:writable] Warning: An inner declaration for outer component system could not be found and was automatically generated. [/home/hudson/saved_omc/libraries/.openmodelica/libraries/Chemical 1.4.1-master/package.mo:4740:7-4740:66:writable] Notification: The diagnostics message for the missing inner is: Your model is using an outer "system" component but an inner "system" component is not defined. For simulation drag Modelica.Fluid.System into your model to specify system properties. Notification: Performance of NFInst.instantiate(Chemical.Examples.SimpleReaction2): time 0.03172/0.2832, allocations: 24.65 MB / 0.4912 GB, free: 10.1 MB / 366.1 MB Notification: Performance of NFInst.instExpressions: time 0.01162/0.2948, allocations: 11.61 MB / 0.5025 GB, free: 14.44 MB / 382.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001084/0.296, allocations: 11.94 kB / 0.5025 GB, free: 14.43 MB / 382.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0008736/0.2968, allocations: 269.9 kB / 0.5028 GB, free: 14.16 MB / 382.1 MB Notification: Performance of NFTyping.typeBindings: time 0.003161/0.3, allocations: 0.989 MB / 0.5037 GB, free: 13.17 MB / 382.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.004671/0.3047, allocations: 1.515 MB / 0.5052 GB, free: 11.64 MB / 382.1 MB Notification: Performance of NFFlatten.flatten: time 0.001931/0.3066, allocations: 1.244 MB / 0.5064 GB, free: 10.39 MB / 382.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0008422/0.3075, allocations: 0.7051 MB / 0.5071 GB, free: 9.664 MB / 382.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0006586/0.3082, allocations: 0.6078 MB / 0.5077 GB, free: 9.055 MB / 382.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0007799/0.309, allocations: 0.6696 MB / 0.5084 GB, free: 8.383 MB / 382.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001534/0.3091, allocations: 108 kB / 0.5085 GB, free: 8.277 MB / 382.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.003495/0.3126, allocations: 1.279 MB / 0.5097 GB, free: 6.996 MB / 382.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0002532/0.3129, allocations: 263.2 kB / 0.51 GB, free: 6.738 MB / 382.1 MB Notification: Performance of NFVerifyModel.verify: time 0.000529/0.3134, allocations: 0.5406 MB / 0.5105 GB, free: 6.195 MB / 382.1 MB Notification: Performance of NFConvertDAE.convert: time 0.003807/0.3173, allocations: 2.519 MB / 0.513 GB, free: 3.664 MB / 382.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.358e-06/0.3173, allocations: 0 / 0.513 GB, free: 3.664 MB / 382.1 MB Notification: Performance of FrontEnd: time 1.653e-06/0.3173, allocations: 0 / 0.513 GB, free: 3.664 MB / 382.1 MB Notification: Performance of Transformations before backend: time 1.542e-05/0.3173, allocations: 4 kB / 0.513 GB, free: 3.66 MB / 382.1 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 222 * Number of variables: 222 Notification: Performance of Generate backend data structure: time 0.002352/0.3197, allocations: 1.485 MB / 0.5144 GB, free: 2.125 MB / 382.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.763e-05/0.3197, allocations: 15.97 kB / 0.5144 GB, free: 2.109 MB / 382.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001524/0.3199, allocations: 139.6 kB / 0.5146 GB, free: 1.965 MB / 382.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0008841/0.3208, allocations: 211.4 kB / 0.5148 GB, free: 1.758 MB / 382.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0008073/0.3216, allocations: 0.5754 MB / 0.5153 GB, free: 1.141 MB / 382.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001013/0.3217, allocations: 92.27 kB / 0.5154 GB, free: 1.043 MB / 382.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001484/0.3218, allocations: 92.38 kB / 0.5155 GB, free: 0.9531 MB / 382.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001574/0.3234, allocations: 1.045 MB / 0.5165 GB, free: 15.89 MB / 398.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.315e-05/0.3235, allocations: 7.922 kB / 0.5165 GB, free: 15.88 MB / 398.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 8.541e-05/0.3236, allocations: 36 kB / 0.5166 GB, free: 15.85 MB / 398.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.698e-05/0.3236, allocations: 20 kB / 0.5166 GB, free: 15.83 MB / 398.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001977/0.3256, allocations: 1.269 MB / 0.5178 GB, free: 14.56 MB / 398.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.005084/0.3307, allocations: 3.466 MB / 0.5212 GB, free: 10.91 MB / 398.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.002347/0.333, allocations: 1.535 MB / 0.5227 GB, free: 9.332 MB / 398.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0006359/0.3337, allocations: 443.5 kB / 0.5231 GB, free: 8.895 MB / 398.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.005125/0.3388, allocations: 4.041 MB / 0.5271 GB, free: 4.371 MB / 398.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.187e-05/0.3389, allocations: 43.06 kB / 0.5271 GB, free: 4.32 MB / 398.1 MB Notification: Performance of pre-optimization done (n=56): time 1.874e-06/0.3389, allocations: 0 / 0.5271 GB, free: 4.32 MB / 398.1 MB Notification: Performance of matching and sorting (n=63): time 0.003125/0.342, allocations: 1.662 MB / 0.5287 GB, free: 2.609 MB / 398.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.23e-05/0.342, allocations: 59.97 kB / 0.5288 GB, free: 2.539 MB / 398.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0005533/0.3426, allocations: 0.5028 MB / 0.5293 GB, free: 2.027 MB / 398.1 MB Notification: Performance of collectPreVariables (initialization): time 3.808e-05/0.3427, allocations: 41.7 kB / 0.5293 GB, free: 1.98 MB / 398.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002731/0.3429, allocations: 458.2 kB / 0.5298 GB, free: 1.523 MB / 398.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.000156/0.3431, allocations: 220.8 kB / 0.53 GB, free: 1.305 MB / 398.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002234/0.3433, allocations: 178.5 kB / 0.5301 GB, free: 1.125 MB / 398.1 MB Notification: Performance of setup shared object (initialization): time 0.0001471/0.3435, allocations: 382.8 kB / 0.5305 GB, free: 0.7422 MB / 398.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003769/0.3439, allocations: 209.9 kB / 0.5307 GB, free: 0.5391 MB / 398.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0005952/0.3445, allocations: 0.5333 MB / 0.5312 GB, free: 15.85 MB / 414.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001034/0.3455, allocations: 0.817 MB / 0.532 GB, free: 14.89 MB / 414.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.937e-06/0.3455, allocations: 0 / 0.532 GB, free: 14.89 MB / 414.1 MB Notification: Performance of matching and sorting (n=115) (initialization): time 0.001341/0.3469, allocations: 0.854 MB / 0.5329 GB, free: 14.02 MB / 414.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.067e-05/0.3469, allocations: 8 kB / 0.5329 GB, free: 14.02 MB / 414.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.521e-05/0.3469, allocations: 15.94 kB / 0.5329 GB, free: 14 MB / 414.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.634e-05/0.347, allocations: 20.06 kB / 0.5329 GB, free: 13.98 MB / 414.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0009314/0.3479, allocations: 263.6 kB / 0.5332 GB, free: 13.72 MB / 414.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 2.127e-05/0.3479, allocations: 19.94 kB / 0.5332 GB, free: 13.7 MB / 414.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0004176/0.3483, allocations: 31.98 kB / 0.5332 GB, free: 13.67 MB / 414.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.916e-05/0.3484, allocations: 44 kB / 0.5332 GB, free: 13.63 MB / 414.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 49 * 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 (115): * Single equations (assignments): 115 * 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.0002846/0.3487, allocations: 241.5 kB / 0.5335 GB, free: 13.38 MB / 414.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001001/0.3488, allocations: 71.16 kB / 0.5335 GB, free: 13.31 MB / 414.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001267/0.3501, allocations: 0.6969 MB / 0.5342 GB, free: 12.6 MB / 414.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.242e-06/0.3501, allocations: 4 kB / 0.5342 GB, free: 12.59 MB / 414.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.623e-06/0.3501, allocations: 8 kB / 0.5342 GB, free: 12.59 MB / 414.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.325e-06/0.3501, allocations: 3.984 kB / 0.5342 GB, free: 12.58 MB / 414.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0009425/0.3511, allocations: 0.7682 MB / 0.535 GB, free: 11.75 MB / 414.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.196e-06/0.3511, allocations: 0 / 0.535 GB, free: 11.75 MB / 414.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0007451/0.3519, allocations: 179.9 kB / 0.5352 GB, free: 11.57 MB / 414.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 6.422e-06/0.3519, allocations: 4 kB / 0.5352 GB, free: 11.57 MB / 414.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.314e-05/0.3519, allocations: 19.94 kB / 0.5352 GB, free: 11.55 MB / 414.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 5.451e-06/0.3519, allocations: 4 kB / 0.5352 GB, free: 11.54 MB / 414.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.541e-06/0.352, allocations: 7.984 kB / 0.5352 GB, free: 11.54 MB / 414.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001329/0.3533, allocations: 0.9519 MB / 0.5361 GB, free: 10.56 MB / 414.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002345/0.3535, allocations: 184.2 kB / 0.5363 GB, free: 10.36 MB / 414.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 7.624e-05/0.3536, allocations: 19.92 kB / 0.5363 GB, free: 10.34 MB / 414.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002673/0.3539, allocations: 16 kB / 0.5363 GB, free: 10.32 MB / 414.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001029/0.354, allocations: 52.5 kB / 0.5364 GB, free: 10.27 MB / 414.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.485e-05/0.3541, allocations: 24 kB / 0.5364 GB, free: 10.25 MB / 414.1 MB Notification: Performance of sorting global known variables: time 0.000344/0.3544, allocations: 346.8 kB / 0.5367 GB, free: 9.914 MB / 414.1 MB Notification: Performance of sort global known variables: time 1.4e-07/0.3544, allocations: 0 / 0.5367 GB, free: 9.914 MB / 414.1 MB Notification: Performance of remove unused functions: time 0.001113/0.3555, allocations: 475.6 kB / 0.5372 GB, free: 9.449 MB / 414.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 5 * Number of states: 4 (solution.temperature,A.logn,B.logn,C.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 (71): * Single equations (assignments): 71 * 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.002385/0.3579, allocations: 1.976 MB / 0.5391 GB, free: 7.43 MB / 414.1 MB Notification: Performance of simCode: created initialization part: time 0.0009508/0.3589, allocations: 0.6023 MB / 0.5397 GB, free: 6.824 MB / 414.1 MB Notification: Performance of simCode: created event and clocks part: time 2.545e-06/0.3589, allocations: 1.875 kB / 0.5397 GB, free: 6.824 MB / 414.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0004028/0.3593, allocations: 287 kB / 0.54 GB, free: 6.547 MB / 414.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0007786/0.3601, allocations: 163.4 kB / 0.5401 GB, free: 6.395 MB / 414.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.007431/0.3675, allocations: 6.098 MB / 0.5461 GB, free: 15.89 MB / 430.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005017/0.3681, allocations: 0.9579 MB / 0.547 GB, free: 14.9 MB / 430.1 MB Notification: Performance of simCode: alias equations: time 0.0005439/0.3686, allocations: 161.5 kB / 0.5472 GB, free: 14.74 MB / 430.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.000436/0.3691, allocations: 347.3 kB / 0.5475 GB, free: 14.4 MB / 430.1 MB Notification: Performance of SimCode: time 5.91e-07/0.3691, allocations: 0 / 0.5475 GB, free: 14.4 MB / 430.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.04653/0.4156, allocations: 20.67 MB / 0.5677 GB, free: 9.832 MB / 446.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 9.047/9.463, allocations: 7.375 kB / 0.5677 GB, free: 9.828 MB / 446.1 MB (rm -f Chemical_Chemical.Examples.SimpleReaction2.pipe ; mkfifo Chemical_Chemical.Examples.SimpleReaction2.pipe ; head -c 1048576 < Chemical_Chemical.Examples.SimpleReaction2.pipe >> ../files/Chemical_Chemical.Examples.SimpleReaction2.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator --tempDir=temp_Chemical_Chemical_Examples_SimpleReaction2_fmu --startTime=0 --stopTime=0.0001 --timeout=50 --tolerance=1e-06 Chemical_Chemical_Examples_SimpleReaction2.fmu > Chemical_Chemical.Examples.SimpleReaction2.pipe 2>&1)