Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Chemical_Chemical.Examples.ExothermicReaction.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.ExothermicReaction,fileNamePrefix="Chemical_Chemical_Examples_ExothermicReaction",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Chemical.Examples.ExothermicReaction,fileNamePrefix="Chemical_Chemical_Examples_ExothermicReaction",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.0008731/0.0008731, allocations: 94.91 kB / 15.37 MB, free: 0.7266 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.000959/0.0009591, allocations: 177.2 kB / 16.27 MB, free: 6.664 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.265/1.265, allocations: 223.3 MB / 240.3 MB, free: 5.344 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Chemical 1.4.1-master/package.mo): time 0.1869/0.1869, allocations: 15.28 MB / 306.7 MB, free: 15.65 MB / 254.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0002988/0.0002988, allocations: 8 kB / 372.2 MB, free: 3.512 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2548/0.2551, allocations: 54.62 MB / 426.8 MB, free: 40.26 MB / 350.1 MB Notification: Performance of NFInst.instantiate(Chemical.Examples.ExothermicReaction): time 0.006272/0.2614, allocations: 9.213 MB / 436 MB, free: 35.76 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.01775/0.2792, allocations: 22.97 MB / 459 MB, free: 19.7 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001406/0.2807, allocations: 40.97 kB / 459 MB, free: 19.68 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.001114/0.2818, allocations: 467.2 kB / 459.5 MB, free: 19.44 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.003931/0.2857, allocations: 1.741 MB / 461.2 MB, free: 18.39 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.005791/0.2915, allocations: 2.624 MB / 463.9 MB, free: 16.84 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.002202/0.2937, allocations: 2.431 MB / 466.3 MB, free: 15.67 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0009562/0.2947, allocations: 1.177 MB / 467.5 MB, free: 15.14 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0008905/0.2956, allocations: 1.113 MB / 468.6 MB, free: 14.8 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.001255/0.2969, allocations: 1.248 MB / 469.8 MB, free: 14.35 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0002215/0.2971, allocations: 117.3 kB / 469.9 MB, free: 14.35 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.006541/0.3037, allocations: 2.503 MB / 472.4 MB, free: 13.7 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0003875/0.3041, allocations: 422.5 kB / 472.9 MB, free: 13.48 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0009126/0.305, allocations: 0.9988 MB / 473.9 MB, free: 12.92 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.007446/0.3124, allocations: 4.652 MB / 478.5 MB, free: 11.16 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.19e-06/0.3124, allocations: 1.531 kB / 478.5 MB, free: 11.16 MB / 350.1 MB Notification: Performance of FrontEnd: time 1.413e-06/0.3125, allocations: 0 / 478.5 MB, free: 11.16 MB / 350.1 MB Notification: Performance of Transformations before backend: time 9.589e-05/0.3126, allocations: 4 kB / 478.5 MB, free: 11.16 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: 455 * Number of variables: 455 Notification: Performance of Generate backend data structure: time 0.005159/0.3177, allocations: 2.207 MB / 480.7 MB, free: 9.836 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.158e-05/0.3178, allocations: 9.938 kB / 480.7 MB, free: 9.836 MB / 350.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0003372/0.3181, allocations: 254.2 kB / 481 MB, free: 9.676 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001644/0.3198, allocations: 418.2 kB / 481.4 MB, free: 9.547 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001259/0.321, allocations: 0.894 MB / 482.3 MB, free: 8.961 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001458/0.3212, allocations: 193.6 kB / 482.5 MB, free: 8.836 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0002998/0.3215, allocations: 188.5 kB / 482.7 MB, free: 8.77 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.003434/0.3249, allocations: 2.085 MB / 484.7 MB, free: 7.961 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 3.342e-05/0.325, allocations: 0.7031 kB / 484.7 MB, free: 7.961 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001733/0.3252, allocations: 70.97 kB / 484.8 MB, free: 7.906 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.772e-05/0.3252, allocations: 47.52 kB / 484.9 MB, free: 7.902 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.00426/0.3295, allocations: 2.584 MB / 487.4 MB, free: 7.152 MB / 350.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.00861/0.3381, allocations: 6.284 MB / 493.7 MB, free: 2.566 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.004063/0.3422, allocations: 2.537 MB / 496.3 MB, free: 15.97 MB / 366.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.00122/0.3434, allocations: 0.8512 MB / 497.1 MB, free: 15.11 MB / 366.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.009405/0.3528, allocations: 7.912 MB / 0.4932 GB, free: 6.277 MB / 366.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.275e-05/0.3529, allocations: 47.69 kB / 0.4932 GB, free: 6.219 MB / 366.1 MB Notification: Performance of pre-optimization done (n=122): time 2.615e-06/0.3529, allocations: 0 / 0.4932 GB, free: 6.219 MB / 366.1 MB Notification: Performance of matching and sorting (n=150): time 0.02861/0.3815, allocations: 6.265 MB / 0.4994 GB, free: 15.78 MB / 382.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.912e-05/0.3816, allocations: 94.42 kB / 0.4994 GB, free: 15.67 MB / 382.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001062/0.3826, allocations: 0.945 MB / 0.5004 GB, free: 14.71 MB / 382.1 MB Notification: Performance of collectPreVariables (initialization): time 8.881e-05/0.3827, allocations: 49.7 kB / 0.5004 GB, free: 14.66 MB / 382.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0005219/0.3832, allocations: 0.8365 MB / 0.5012 GB, free: 13.81 MB / 382.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0003854/0.3836, allocations: 0.516 MB / 0.5017 GB, free: 13.29 MB / 382.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001993/0.3838, allocations: 157.6 kB / 0.5019 GB, free: 13.12 MB / 382.1 MB Notification: Performance of setup shared object (initialization): time 9.26e-05/0.3839, allocations: 305.1 kB / 0.5022 GB, free: 12.82 MB / 382.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0009105/0.3849, allocations: 0.5272 MB / 0.5027 GB, free: 12.29 MB / 382.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001327/0.3862, allocations: 1.243 MB / 0.5039 GB, free: 10.71 MB / 382.1 MB Warning: It was not possible to determine if the initialization problem is consistent, because of not evaluable parameters/start values during compile time: solution_at_constant_temperature.temperature = solution_at_constant_temperature.temperature_start (fixedTemperature.T = solution_at_constant_temperature.temperature_start) Notification: Performance of analyzeInitialSystem (initialization): time 0.002571/0.3888, allocations: 2.053 MB / 0.5059 GB, free: 8.301 MB / 382.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 9.638e-06/0.3888, allocations: 8 kB / 0.5059 GB, free: 8.293 MB / 382.1 MB Notification: Performance of matching and sorting (n=258) (initialization): time 0.008832/0.3976, allocations: 2.576 MB / 0.5084 GB, free: 5.695 MB / 382.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.513e-05/0.3977, allocations: 12 kB / 0.5084 GB, free: 5.684 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.498e-05/0.3977, allocations: 27.98 kB / 0.5085 GB, free: 5.656 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.006588/0.4043, allocations: 0.7486 MB / 0.5092 GB, free: 4.895 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.00196/0.4063, allocations: 0.5266 MB / 0.5097 GB, free: 4.367 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01252/0.4188, allocations: 7.542 MB / 0.5171 GB, free: 12.28 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001495/0.4203, allocations: 107.9 kB / 0.5172 GB, free: 12.18 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001774/0.4205, allocations: 116 kB / 0.5173 GB, free: 12.06 MB / 398.1 MB Warning: The initial conditions are over specified. The following 1 initial equations are redundant, so they are removed from the initialization sytem: solution_at_constant_temperature.temperature = solution_at_constant_temperature.temperature_start. Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 107 * 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 (241): * Single equations (assignments): 237 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 4 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 2 systems {(3,6,77.8%), (1,3,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 2 systems {(1,3), (1,3)} Notification: Performance of prepare postOptimizeDAE: time 0.0006822/0.4212, allocations: 385 kB / 0.5177 GB, free: 11.68 MB / 398.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002465/0.4215, allocations: 142.2 kB / 0.5178 GB, free: 11.54 MB / 398.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.01038/0.4318, allocations: 2.515 MB / 0.5203 GB, free: 8.961 MB / 398.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.37e-05/0.4319, allocations: 16 kB / 0.5203 GB, free: 8.945 MB / 398.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.182e-06/0.4319, allocations: 7.938 kB / 0.5203 GB, free: 8.938 MB / 398.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.592e-05/0.4319, allocations: 15.97 kB / 0.5203 GB, free: 8.922 MB / 398.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.005691/0.4376, allocations: 2.536 MB / 0.5228 GB, free: 6.301 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 9.047e-06/0.4377, allocations: 4 kB / 0.5228 GB, free: 6.297 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001507/0.4392, allocations: 315.9 kB / 0.5231 GB, free: 5.988 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.00779/0.447, allocations: 0.796 MB / 0.5238 GB, free: 5.176 MB / 398.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 9.911e-05/0.4471, allocations: 43.98 kB / 0.5239 GB, free: 5.133 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.01314/0.4602, allocations: 8.642 MB / 0.5323 GB, free: 11.81 MB / 414.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.852e-06/0.4603, allocations: 11.92 kB / 0.5323 GB, free: 11.8 MB / 414.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01049/0.4707, allocations: 2.861 MB / 0.5351 GB, free: 8.875 MB / 414.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0004156/0.4712, allocations: 223.3 kB / 0.5353 GB, free: 8.637 MB / 414.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001801/0.4714, allocations: 28 kB / 0.5354 GB, free: 8.609 MB / 414.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0009127/0.4723, allocations: 51.83 kB / 0.5354 GB, free: 8.559 MB / 414.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002572/0.4725, allocations: 132.9 kB / 0.5356 GB, free: 8.43 MB / 414.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 9.726e-05/0.4727, allocations: 51.98 kB / 0.5356 GB, free: 8.379 MB / 414.1 MB Notification: Performance of sorting global known variables: time 0.000939/0.4736, allocations: 0.6303 MB / 0.5362 GB, free: 7.742 MB / 414.1 MB Notification: Performance of sort global known variables: time 1.3e-07/0.4736, allocations: 0 / 0.5362 GB, free: 7.742 MB / 414.1 MB Notification: Performance of remove unused functions: time 0.003344/0.477, allocations: 1.05 MB / 0.5372 GB, free: 6.691 MB / 414.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 12 * Number of states: 7 (A1.logn,B1.logn,H2O.logn,A.logn,B.logn,H2O1.amountOfBonds,H2O1.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 (137): * Single equations (assignments): 132 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 5 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 2 systems {(1,3,100.0%), (2,7,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 3 systems {(1,3), (1,1), (2,3)} Notification: Performance of Backend phase and start with SimCode phase: time 0.01241/0.4894, allocations: 4.391 MB / 0.5415 GB, free: 2.219 MB / 414.1 MB Notification: Performance of simCode: created initialization part: time 0.003544/0.4929, allocations: 2.076 MB / 0.5436 GB, free: 100 kB / 414.1 MB Notification: Performance of simCode: created event and clocks part: time 3.216e-06/0.4929, allocations: 0 / 0.5436 GB, free: 100 kB / 414.1 MB Notification: Performance of simCode: created simulation system equations: time 0.002038/0.495, allocations: 1.372 MB / 0.5449 GB, free: 14.67 MB / 430.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001952/0.497, allocations: 296.9 kB / 0.5452 GB, free: 14.38 MB / 430.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.03066/0.5276, allocations: 15.34 MB / 0.5602 GB, free: 13.73 MB / 446.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0008999/0.5286, allocations: 1.271 MB / 0.5614 GB, free: 12.44 MB / 446.1 MB Notification: Performance of simCode: alias equations: time 0.001424/0.53, allocations: 328 kB / 0.5617 GB, free: 12.11 MB / 446.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001021/0.531, allocations: 0.7182 MB / 0.5624 GB, free: 11.39 MB / 446.1 MB Notification: Performance of SimCode: time 4.879e-06/0.531, allocations: 0 / 0.5624 GB, free: 11.39 MB / 446.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.2996/0.8307, allocations: 48.55 MB / 0.6098 GB, free: 135.7 MB / 462.1 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001515/0.8308, allocations: 212.5 kB / 0.61 GB, free: 135.4 MB / 462.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 3.539/4.37, allocations: 0 / 0.61 GB, free: 135.4 MB / 462.1 MB (rm -f Chemical_Chemical.Examples.ExothermicReaction.pipe ; mkfifo Chemical_Chemical.Examples.ExothermicReaction.pipe ; head -c 1048576 < Chemical_Chemical.Examples.ExothermicReaction.pipe >> ../files/Chemical_Chemical.Examples.ExothermicReaction.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator --tempDir=temp_Chemical_Chemical_Examples_ExothermicReaction_fmu --startTime=0 --stopTime=0.001 --timeout=50 --tolerance=1e-06 Chemical_Chemical_Examples_ExothermicReaction.fmu > Chemical_Chemical.Examples.ExothermicReaction.pipe 2>&1)