Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Chemical_master_Chemical.Obsolete.Examples.SimpleReaction2.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo): time 0.001435/0.001435, allocations: 104.3 kB / 16.45 MB, free: 6.453 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo): time 0.001608/0.001608, allocations: 213.7 kB / 19.43 MB, free: 3.625 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo): time 1.61/1.61, allocations: 230.6 MB / 252.8 MB, free: 8.957 MB / 206.1 MB " [Timeout remaining time 178] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Chemical master/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Chemical master/package.mo): time 0.1672/0.1672, allocations: 23.88 MB / 332.7 MB, free: 12.32 MB / 270.1 MB " [Timeout remaining time 180] Using package Chemical with version 2.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Chemical master/package.mo) Using package Modelica with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo) Using package Complex with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo) Using package ModelicaServices with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo) Running command: "" <> buildModelFMU(Chemical.Obsolete.Examples.SimpleReaction2,fileNamePrefix="Chemical_master_Chemical_Obsolete_Examples_SimpleReaction2",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Chemical.Obsolete.Examples.SimpleReaction2,fileNamePrefix="Chemical_master_Chemical_Obsolete_Examples_SimpleReaction2",fmuType="me",version="2.0",platforms={"static"}) [Timeout 660] "Notification: Chemical requested package Modelica of version 4.0.0. Modelica 4.1.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Performance of FrontEnd - loaded program: time 0.00237/0.00237, allocations: 63.91 kB / 466 MB, free: 10.05 MB / 334.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3903/0.3926, allocations: 59.83 MB / 0.5135 GB, free: 8.828 MB / 382.1 MB [/home/hudson/saved_omc/libraries/.openmodelica/libraries/Chemical master/Obsolete.mo:14335:7-14335: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 master/Obsolete.mo:14335:7-14335: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.Obsolete.Examples.SimpleReaction2): time 0.04423/0.4369, allocations: 25.84 MB / 0.5388 GB, free: 14.68 MB / 398.1 MB Notification: Performance of NFInst.instExpressions: time 0.01901/0.4559, allocations: 11.69 MB / 0.5502 GB, free: 3.934 MB / 398.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001133/0.457, allocations: 15.88 kB / 0.5502 GB, free: 3.918 MB / 398.1 MB Notification: Performance of NFTyping.typeComponents: time 0.001222/0.4582, allocations: 269.6 kB / 0.5504 GB, free: 3.711 MB / 398.1 MB Notification: Performance of NFTyping.typeBindings: time 0.004271/0.4625, allocations: 0.9877 MB / 0.5514 GB, free: 2.879 MB / 398.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.005638/0.4681, allocations: 1.515 MB / 0.5529 GB, free: 1.645 MB / 398.1 MB Notification: Performance of NFFlatten.flatten: time 0.002708/0.4709, allocations: 1.255 MB / 0.5541 GB, free: 0.5117 MB / 398.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.001234/0.4721, allocations: 0.5847 MB / 0.5547 GB, free: 40 kB / 398.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001337/0.4734, allocations: 0.6161 MB / 0.5553 GB, free: 15.48 MB / 414.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.001611/0.475, allocations: 0.6755 MB / 0.556 GB, free: 14.94 MB / 414.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0004282/0.4755, allocations: 108 kB / 0.5561 GB, free: 14.83 MB / 414.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.005981/0.4814, allocations: 1.3 MB / 0.5573 GB, free: 13.68 MB / 414.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0006338/0.4821, allocations: 267 kB / 0.5576 GB, free: 13.46 MB / 414.1 MB Notification: Performance of NFVerifyModel.verify: time 0.001336/0.4834, allocations: 0.5462 MB / 0.5581 GB, free: 12.96 MB / 414.1 MB Notification: Performance of NFConvertDAE.convert: time 0.009504/0.4929, allocations: 2.591 MB / 0.5606 GB, free: 10.88 MB / 414.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.789e-06/0.4929, allocations: 0 / 0.5606 GB, free: 10.88 MB / 414.1 MB Notification: Performance of FrontEnd: time 2.004e-06/0.4929, allocations: 0 / 0.5606 GB, free: 10.88 MB / 414.1 MB Notification: Performance of Transformations before backend: time 6.412e-05/0.493, allocations: 0 / 0.5606 GB, free: 10.88 MB / 414.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.004753/0.4977, allocations: 1.531 MB / 0.5621 GB, free: 9.383 MB / 414.1 MB Notification: Performance of prepare preOptimizeDAE: time 6.435e-05/0.4978, allocations: 8.031 kB / 0.5621 GB, free: 9.375 MB / 414.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0003193/0.4981, allocations: 143.6 kB / 0.5623 GB, free: 9.227 MB / 414.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001179/0.4993, allocations: 215.9 kB / 0.5625 GB, free: 9.016 MB / 414.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001237/0.5005, allocations: 0.5719 MB / 0.563 GB, free: 8.402 MB / 414.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001597/0.5007, allocations: 112.2 kB / 0.5632 GB, free: 8.285 MB / 414.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001997/0.5009, allocations: 84.38 kB / 0.5632 GB, free: 8.203 MB / 414.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002154/0.5031, allocations: 1.045 MB / 0.5643 GB, free: 7.141 MB / 414.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.073e-05/0.5031, allocations: 0 / 0.5643 GB, free: 7.141 MB / 414.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001033/0.5032, allocations: 36 kB / 0.5643 GB, free: 7.105 MB / 414.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.54e-05/0.5032, allocations: 20 kB / 0.5643 GB, free: 7.086 MB / 414.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.002409/0.5056, allocations: 1.277 MB / 0.5656 GB, free: 5.809 MB / 414.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.006328/0.5119, allocations: 3.486 MB / 0.569 GB, free: 2.145 MB / 414.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.002593/0.5145, allocations: 1.485 MB / 0.5704 GB, free: 0.5938 MB / 414.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0006917/0.5152, allocations: 387.7 kB / 0.5708 GB, free: 216 kB / 414.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.006001/0.5212, allocations: 4.057 MB / 0.5747 GB, free: 11.68 MB / 430.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.077e-05/0.5213, allocations: 39.12 kB / 0.5748 GB, free: 11.63 MB / 430.1 MB Notification: Performance of pre-optimization done (n=56): time 2.214e-06/0.5213, allocations: 0 / 0.5748 GB, free: 11.63 MB / 430.1 MB Notification: Performance of matching and sorting (n=63): time 0.00377/0.525, allocations: 1.679 MB / 0.5764 GB, free: 9.898 MB / 430.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.442e-05/0.5251, allocations: 55.97 kB / 0.5765 GB, free: 9.832 MB / 430.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0007367/0.5258, allocations: 0.5107 MB / 0.577 GB, free: 9.312 MB / 430.1 MB Notification: Performance of collectPreVariables (initialization): time 5.092e-05/0.5259, allocations: 41.7 kB / 0.577 GB, free: 9.266 MB / 430.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0003835/0.5263, allocations: 475.6 kB / 0.5775 GB, free: 8.793 MB / 430.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002373/0.5265, allocations: 238 kB / 0.5777 GB, free: 8.559 MB / 430.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.000276/0.5268, allocations: 174.6 kB / 0.5779 GB, free: 8.383 MB / 430.1 MB Notification: Performance of setup shared object (initialization): time 0.0002132/0.527, allocations: 378.8 kB / 0.5782 GB, free: 8.004 MB / 430.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0004414/0.5274, allocations: 209.9 kB / 0.5784 GB, free: 7.801 MB / 430.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0007126/0.5281, allocations: 0.5295 MB / 0.5789 GB, free: 7.125 MB / 430.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.00126/0.5294, allocations: 0.813 MB / 0.5797 GB, free: 6.156 MB / 430.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.007e-05/0.5294, allocations: 4 kB / 0.5797 GB, free: 6.152 MB / 430.1 MB Notification: Performance of matching and sorting (n=115) (initialization): time 0.001577/0.531, allocations: 0.8543 MB / 0.5806 GB, free: 5.297 MB / 430.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.617e-05/0.531, allocations: 8.188 kB / 0.5806 GB, free: 5.289 MB / 430.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.105e-05/0.531, allocations: 19.94 kB / 0.5806 GB, free: 5.27 MB / 430.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 3.675e-05/0.5311, allocations: 16 kB / 0.5806 GB, free: 5.254 MB / 430.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0009825/0.5321, allocations: 263.6 kB / 0.5809 GB, free: 4.996 MB / 430.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 3.191e-05/0.5321, allocations: 23.92 kB / 0.5809 GB, free: 4.973 MB / 430.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.000516/0.5326, allocations: 28 kB / 0.5809 GB, free: 4.945 MB / 430.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.953e-05/0.5327, allocations: 47.94 kB / 0.581 GB, free: 4.898 MB / 430.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.0003862/0.5331, allocations: 233.6 kB / 0.5812 GB, free: 4.66 MB / 430.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001501/0.5332, allocations: 71.58 kB / 0.5812 GB, free: 4.59 MB / 430.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001476/0.5347, allocations: 0.6969 MB / 0.5819 GB, free: 3.879 MB / 430.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.434e-06/0.5347, allocations: 11.94 kB / 0.5819 GB, free: 3.867 MB / 430.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.396e-06/0.5347, allocations: 0 / 0.5819 GB, free: 3.867 MB / 430.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.093e-05/0.5347, allocations: 3.984 kB / 0.5819 GB, free: 3.863 MB / 430.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001251/0.536, allocations: 0.7643 MB / 0.5827 GB, free: 3.031 MB / 430.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 8.907e-06/0.536, allocations: 4 kB / 0.5827 GB, free: 3.027 MB / 430.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0007989/0.5368, allocations: 179.9 kB / 0.5829 GB, free: 2.852 MB / 430.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.344e-05/0.5368, allocations: 4 kB / 0.5829 GB, free: 2.848 MB / 430.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.633e-05/0.5369, allocations: 19.94 kB / 0.5829 GB, free: 2.828 MB / 430.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.142e-05/0.5369, allocations: 11.92 kB / 0.5829 GB, free: 2.816 MB / 430.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.663e-06/0.5369, allocations: 0 / 0.5829 GB, free: 2.816 MB / 430.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001632/0.5385, allocations: 0.9524 MB / 0.5838 GB, free: 1.844 MB / 430.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0003519/0.5389, allocations: 196.6 kB / 0.584 GB, free: 1.633 MB / 430.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001132/0.539, allocations: 15.94 kB / 0.584 GB, free: 1.617 MB / 430.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003017/0.5393, allocations: 12 kB / 0.584 GB, free: 1.605 MB / 430.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001376/0.5394, allocations: 60.44 kB / 0.5841 GB, free: 1.543 MB / 430.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.464e-05/0.5395, allocations: 27.98 kB / 0.5841 GB, free: 1.516 MB / 430.1 MB Notification: Performance of sorting global known variables: time 0.0004799/0.54, allocations: 342.9 kB / 0.5845 GB, free: 1.184 MB / 430.1 MB Notification: Performance of sort global known variables: time 8.1e-08/0.54, allocations: 0 / 0.5845 GB, free: 1.184 MB / 430.1 MB Notification: Performance of remove unused functions: time 0.001869/0.5418, allocations: 486.6 kB / 0.5849 GB, free: 0.707 MB / 430.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.00377/0.5456, allocations: 1.999 MB / 0.5869 GB, free: 14.67 MB / 446.1 MB Notification: Performance of simCode: created initialization part: time 0.001209/0.5468, allocations: 0.5645 MB / 0.5874 GB, free: 14.1 MB / 446.1 MB Notification: Performance of simCode: created event and clocks part: time 4.759e-06/0.5468, allocations: 3.938 kB / 0.5874 GB, free: 14.1 MB / 446.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0004631/0.5473, allocations: 263 kB / 0.5877 GB, free: 13.84 MB / 446.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0009309/0.5482, allocations: 158.5 kB / 0.5878 GB, free: 13.69 MB / 446.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01063/0.5588, allocations: 6.131 MB / 0.5938 GB, free: 7.148 MB / 446.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0007808/0.5596, allocations: 0.9578 MB / 0.5947 GB, free: 6.164 MB / 446.1 MB Notification: Performance of simCode: alias equations: time 0.0006146/0.5602, allocations: 173.4 kB / 0.5949 GB, free: 5.992 MB / 446.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0005613/0.5608, allocations: 351.3 kB / 0.5952 GB, free: 5.648 MB / 446.1 MB Notification: Performance of SimCode: time 1.032e-06/0.5608, allocations: 0 / 0.5952 GB, free: 5.648 MB / 446.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.06725/0.628, allocations: 21.05 MB / 0.6158 GB, free: 0.707 MB / 462.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 10.08/10.71, allocations: 11.19 kB / 0.6158 GB, free: 0.6992 MB / 462.1 MB " [Timeout remaining time 649] (rm -f Chemical_master_Chemical.Obsolete.Examples.SimpleReaction2.pipe ; mkfifo Chemical_master_Chemical.Obsolete.Examples.SimpleReaction2.pipe ; head -c 1048576 < Chemical_master_Chemical.Obsolete.Examples.SimpleReaction2.pipe >> ../files/Chemical_master_Chemical.Obsolete.Examples.SimpleReaction2.sim & python3 -m fmpy simulate --output-file Chemical_master_Chemical.Obsolete.Examples.SimpleReaction2_res.csv --start-time 0 --stop-time 0.0001 --timeout 50 --relative-tolerance 1e-06 --interface-type ModelExchange --solver CVode --output-interval 4e-08 Chemical_master_Chemical_Obsolete_Examples_SimpleReaction2.fmu > Chemical_master_Chemical.Obsolete.Examples.SimpleReaction2.pipe 2>&1) [Timeout 52.5] [Calling sys.exit(0), Time elapsed: 13.787817729171365] Failed to read output from testmodel.py, exit status != 0: 10.79464250500314 10.823620638 10.324771966 Calling exit ...