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.001097/0.001097, allocations: 108 kB / 15.6 MB, free: 132 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.001074/0.001074, allocations: 199 kB / 16.54 MB, free: 6.672 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.151/1.151, allocations: 222.9 MB / 240.2 MB, free: 4.398 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Chemical 1.4.1-master/package.mo): time 0.1569/0.1569, allocations: 15.33 MB / 305.7 MB, free: 15.3 MB / 254.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001151/0.001151, allocations: 63.91 kB / 370.4 MB, free: 3.867 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.07741/0.07857, allocations: 53.6 MB / 424 MB, free: 14.21 MB / 366.1 MB Notification: Performance of NFInst.instantiate(Chemical.Examples.ExothermicReaction): time 0.00806/0.08666, allocations: 8.56 MB / 432.6 MB, free: 5.617 MB / 366.1 MB Notification: Performance of NFInst.instExpressions: time 0.15/0.2366, allocations: 23.24 MB / 455.8 MB, free: 37.09 MB / 366.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.000613/0.2373, allocations: 19.84 kB / 455.9 MB, free: 37.09 MB / 366.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0008433/0.2381, allocations: 0.5094 MB / 456.4 MB, free: 36.8 MB / 366.1 MB Notification: Performance of NFTyping.typeBindings: time 0.002943/0.2411, allocations: 2.01 MB / 458.4 MB, free: 35.68 MB / 366.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.004514/0.2457, allocations: 2.999 MB / 461.4 MB, free: 34.39 MB / 366.1 MB Notification: Performance of NFFlatten.flatten: time 0.001358/0.247, allocations: 2.486 MB / 463.9 MB, free: 33.51 MB / 366.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0009203/0.248, allocations: 1.434 MB / 465.3 MB, free: 32.88 MB / 366.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0006896/0.2487, allocations: 1.212 MB / 466.5 MB, free: 32.43 MB / 366.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.001032/0.2497, allocations: 1.367 MB / 467.9 MB, free: 31.87 MB / 366.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0002321/0.2499, allocations: 215.3 kB / 468.1 MB, free: 31.87 MB / 366.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.004603/0.2545, allocations: 2.597 MB / 470.7 MB, free: 31.21 MB / 366.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0002889/0.2548, allocations: 0.5067 MB / 471.2 MB, free: 30.89 MB / 366.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0006279/0.2555, allocations: 1.089 MB / 472.3 MB, free: 30.25 MB / 366.1 MB Notification: Performance of NFConvertDAE.convert: time 0.00495/0.2604, allocations: 4.996 MB / 477.3 MB, free: 28.06 MB / 366.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.948e-06/0.2605, allocations: 0 / 477.3 MB, free: 28.06 MB / 366.1 MB Notification: Performance of FrontEnd: time 1.343e-06/0.2605, allocations: 0 / 477.3 MB, free: 28.06 MB / 366.1 MB Notification: Performance of Transformations before backend: time 1.944e-05/0.2605, allocations: 0 / 477.3 MB, free: 28.06 MB / 366.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.003879/0.2644, allocations: 2.655 MB / 479.9 MB, free: 26.52 MB / 366.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.305e-05/0.2644, allocations: 11.19 kB / 479.9 MB, free: 26.52 MB / 366.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0002442/0.2647, allocations: 253.6 kB / 480.2 MB, free: 26.36 MB / 366.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001493/0.2662, allocations: 413.1 kB / 480.6 MB, free: 26.23 MB / 366.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001115/0.2673, allocations: 0.9249 MB / 481.5 MB, free: 25.65 MB / 366.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001256/0.2674, allocations: 202.5 kB / 481.7 MB, free: 25.52 MB / 366.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0002332/0.2677, allocations: 185.7 kB / 481.9 MB, free: 25.45 MB / 366.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.00268/0.2703, allocations: 2.08 MB / 484 MB, free: 24.65 MB / 366.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.894e-05/0.2704, allocations: 1.188 kB / 484 MB, free: 24.65 MB / 366.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001517/0.2705, allocations: 70.66 kB / 484 MB, free: 24.59 MB / 366.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.842e-05/0.2706, allocations: 49 kB / 484.1 MB, free: 24.59 MB / 366.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.003345/0.2739, allocations: 2.585 MB / 486.7 MB, free: 23.84 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.007905/0.2818, allocations: 6.373 MB / 493 MB, free: 20.25 MB / 366.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.00418/0.286, allocations: 2.531 MB / 495.6 MB, free: 19.13 MB / 366.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.00101/0.2871, allocations: 0.856 MB / 496.4 MB, free: 18.77 MB / 366.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.007622/0.2947, allocations: 8.089 MB / 0.4927 GB, free: 12.41 MB / 366.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.814e-05/0.2947, allocations: 45.97 kB / 0.4927 GB, free: 12.36 MB / 366.1 MB Notification: Performance of pre-optimization done (n=122): time 2.304e-06/0.2947, allocations: 0 / 0.4927 GB, free: 12.36 MB / 366.1 MB Notification: Performance of matching and sorting (n=150): time 0.02187/0.3166, allocations: 6.176 MB / 0.4988 GB, free: 7.582 MB / 366.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 2.621e-05/0.3166, allocations: 98.36 kB / 0.4989 GB, free: 7.469 MB / 366.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.00071/0.3174, allocations: 0.945 MB / 0.4998 GB, free: 6.508 MB / 366.1 MB Notification: Performance of collectPreVariables (initialization): time 6.986e-05/0.3174, allocations: 53.7 kB / 0.4998 GB, free: 6.449 MB / 366.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002816/0.3177, allocations: 0.8327 MB / 0.5007 GB, free: 5.602 MB / 366.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002246/0.318, allocations: 0.5083 MB / 0.5012 GB, free: 5.086 MB / 366.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0003482/0.3183, allocations: 371.3 kB / 0.5015 GB, free: 4.715 MB / 366.1 MB Notification: Performance of setup shared object (initialization): time 2.947e-05/0.3183, allocations: 305.1 kB / 0.5018 GB, free: 4.414 MB / 366.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0007138/0.3191, allocations: 0.5233 MB / 0.5023 GB, free: 3.887 MB / 366.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0009121/0.32, allocations: 1.247 MB / 0.5035 GB, free: 2.301 MB / 366.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.00191/0.3219, allocations: 2.048 MB / 0.5055 GB, free: 15.9 MB / 382.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.057e-05/0.3219, allocations: 8 kB / 0.5055 GB, free: 15.89 MB / 382.1 MB Notification: Performance of matching and sorting (n=258) (initialization): time 0.007077/0.329, allocations: 2.537 MB / 0.508 GB, free: 13.34 MB / 382.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.072e-05/0.329, allocations: 12 kB / 0.508 GB, free: 13.32 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.226e-05/0.3291, allocations: 24 kB / 0.508 GB, free: 13.3 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.005038/0.3341, allocations: 0.7097 MB / 0.5087 GB, free: 12.58 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001701/0.3358, allocations: 0.5227 MB / 0.5092 GB, free: 12.05 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01048/0.3463, allocations: 8.266 MB / 0.5173 GB, free: 3.23 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001002/0.3473, allocations: 67.91 kB / 0.5174 GB, free: 3.164 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001548/0.3475, allocations: 116 kB / 0.5175 GB, free: 3.051 MB / 382.1 MB Warning: The initial conditions are over specified. The following 1 initial equations are redundant, so they are removed from the initialization system: 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.0005059/0.348, allocations: 378 kB / 0.5179 GB, free: 2.672 MB / 382.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002436/0.3482, allocations: 138.3 kB / 0.518 GB, free: 2.535 MB / 382.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.007967/0.3562, allocations: 2.48 MB / 0.5204 GB, free: 16 MB / 398.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 9.678e-06/0.3562, allocations: 19.94 kB / 0.5204 GB, free: 15.98 MB / 398.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.002e-06/0.3563, allocations: 7.828 kB / 0.5204 GB, free: 15.97 MB / 398.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.324e-05/0.3563, allocations: 7.922 kB / 0.5204 GB, free: 15.96 MB / 398.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.004408/0.3607, allocations: 2.524 MB / 0.5229 GB, free: 13.35 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.804e-06/0.3607, allocations: 4.312 kB / 0.5229 GB, free: 13.35 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001294/0.362, allocations: 311.6 kB / 0.5232 GB, free: 13.04 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.005895/0.3679, allocations: 0.7532 MB / 0.5239 GB, free: 12.27 MB / 398.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.902e-05/0.368, allocations: 43.92 kB / 0.524 GB, free: 12.23 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.01087/0.3789, allocations: 9.497 MB / 0.5333 GB, free: 2.031 MB / 398.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.959e-06/0.3789, allocations: 7.969 kB / 0.5333 GB, free: 2.023 MB / 398.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.007872/0.3868, allocations: 2.815 MB / 0.536 GB, free: 15.14 MB / 414.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002314/0.387, allocations: 207.3 kB / 0.5362 GB, free: 14.92 MB / 414.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001718/0.3872, allocations: 28 kB / 0.5362 GB, free: 14.89 MB / 414.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0007115/0.3879, allocations: 35.98 kB / 0.5363 GB, free: 14.86 MB / 414.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002153/0.3881, allocations: 128.9 kB / 0.5364 GB, free: 14.73 MB / 414.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.297e-05/0.3882, allocations: 51.98 kB / 0.5365 GB, free: 14.68 MB / 414.1 MB Notification: Performance of sorting global known variables: time 0.0006909/0.3889, allocations: 0.6303 MB / 0.5371 GB, free: 14.05 MB / 414.1 MB Notification: Performance of sort global known variables: time 1.4e-07/0.3889, allocations: 0 / 0.5371 GB, free: 14.05 MB / 414.1 MB Notification: Performance of remove unused functions: time 0.002786/0.3917, allocations: 1.054 MB / 0.5381 GB, free: 12.99 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.00987/0.4016, allocations: 4.346 MB / 0.5423 GB, free: 8.57 MB / 414.1 MB Notification: Performance of simCode: created initialization part: time 0.003663/0.4053, allocations: 2.154 MB / 0.5444 GB, free: 6.363 MB / 414.1 MB Notification: Performance of simCode: created event and clocks part: time 2.735e-06/0.4053, allocations: 0 / 0.5444 GB, free: 6.363 MB / 414.1 MB Notification: Performance of simCode: created simulation system equations: time 0.001821/0.4071, allocations: 1.375 MB / 0.5458 GB, free: 4.93 MB / 414.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001333/0.4085, allocations: 332.6 kB / 0.5461 GB, free: 4.621 MB / 414.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.02327/0.4317, allocations: 14.45 MB / 0.5602 GB, free: 4.859 MB / 430.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0007408/0.4325, allocations: 1.271 MB / 0.5615 GB, free: 3.562 MB / 430.1 MB Notification: Performance of simCode: alias equations: time 0.001199/0.4337, allocations: 331.8 kB / 0.5618 GB, free: 3.234 MB / 430.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0007958/0.4345, allocations: 0.714 MB / 0.5625 GB, free: 2.52 MB / 430.1 MB Notification: Performance of SimCode: time 4.11e-07/0.4345, allocations: 0 / 0.5625 GB, free: 2.52 MB / 430.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.2451/0.6797, allocations: 50.17 MB / 0.6115 GB, free: 135.9 MB / 462.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 11.28/11.96, allocations: 8.438 kB / 0.6115 GB, free: 135.9 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)