Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Chemical_master_Chemical.Obsolete.Examples.CheckSubstancesData.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.001541/0.001541, allocations: 113.3 kB / 18.94 MB, free: 2.934 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.001814/0.001814, allocations: 214.5 kB / 22.25 MB, free: 5.082 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.392/1.392, allocations: 230.6 MB / 256 MB, free: 8 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.1311/0.1311, allocations: 23.9 MB / 336.3 MB, free: 11.15 MB / 270.1 MB " [Timeout remaining time 180] Using package Chemical with version 2.0.1 (/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.CheckSubstancesData.SimpleReaction2,fileNamePrefix="Chemical_master_Chemical_Obsolete_Examples_CheckSubstancesData_SimpleReaction2",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Chemical.Obsolete.Examples.CheckSubstancesData.SimpleReaction2,fileNamePrefix="Chemical_master_Chemical_Obsolete_Examples_CheckSubstancesData_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.001929/0.001929, allocations: 71.03 kB / 471.2 MB, free: 7.629 MB / 334.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2795/0.2814, allocations: 59.87 MB / 0.5187 GB, free: 9.598 MB / 382.1 MB [/home/hudson/saved_omc/libraries/.openmodelica/libraries/Chemical master/Obsolete.mo:12638:6-12638:65: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:12638:6-12638:65: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.CheckSubstancesData.SimpleReaction2): time 0.03297/0.3144, allocations: 24.26 MB / 0.5423 GB, free: 15.32 MB / 398.1 MB Notification: Performance of NFInst.instExpressions: time 0.01194/0.3263, allocations: 9.249 MB / 0.5514 GB, free: 6.781 MB / 398.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0005027/0.3268, allocations: 15.88 kB / 0.5514 GB, free: 6.766 MB / 398.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0006847/0.3275, allocations: 223.6 kB / 0.5516 GB, free: 6.59 MB / 398.1 MB Notification: Performance of NFTyping.typeBindings: time 0.001194/0.3287, allocations: 363.2 kB / 0.5519 GB, free: 6.285 MB / 398.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.004068/0.3328, allocations: 1.437 MB / 0.5534 GB, free: 5.07 MB / 398.1 MB Notification: Performance of NFFlatten.flatten: time 0.001321/0.3341, allocations: 0.6717 MB / 0.554 GB, free: 4.461 MB / 398.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0003736/0.3344, allocations: 193.8 kB / 0.5542 GB, free: 4.312 MB / 398.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0004334/0.3349, allocations: 335.5 kB / 0.5545 GB, free: 4.016 MB / 398.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0005706/0.3355, allocations: 339.6 kB / 0.5548 GB, free: 3.738 MB / 398.1 MB Notification: Performance of NFPackage.collectConstants: time 9.884e-05/0.3356, allocations: 36 kB / 0.5549 GB, free: 3.703 MB / 398.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.002792/0.3383, allocations: 0.8386 MB / 0.5557 GB, free: 2.953 MB / 398.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0002804/0.3386, allocations: 121 kB / 0.5558 GB, free: 2.855 MB / 398.1 MB Notification: Performance of NFVerifyModel.verify: time 0.000415/0.339, allocations: 255.3 kB / 0.556 GB, free: 2.621 MB / 398.1 MB Notification: Performance of NFConvertDAE.convert: time 0.003916/0.343, allocations: 1.534 MB / 0.5575 GB, free: 1.328 MB / 398.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.28e-06/0.343, allocations: 0.5156 kB / 0.5575 GB, free: 1.328 MB / 398.1 MB Notification: Performance of FrontEnd: time 1.744e-06/0.343, allocations: 4 kB / 0.5576 GB, free: 1.324 MB / 398.1 MB Notification: Performance of Transformations before backend: time 1.579e-05/0.343, allocations: 0 / 0.5576 GB, free: 1.324 MB / 398.1 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 76 * Number of variables: 76 Notification: Performance of Generate backend data structure: time 0.001724/0.3447, allocations: 0.8825 MB / 0.5584 GB, free: 484 kB / 398.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.317e-05/0.3447, allocations: 12.03 kB / 0.5584 GB, free: 472 kB / 398.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001003/0.3448, allocations: 66.44 kB / 0.5585 GB, free: 404 kB / 398.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0008491/0.3457, allocations: 171 kB / 0.5587 GB, free: 260 kB / 398.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0008934/0.3466, allocations: 394.2 kB / 0.559 GB, free: 15.89 MB / 414.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.692e-05/0.3466, allocations: 25.03 kB / 0.5591 GB, free: 15.87 MB / 414.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 8.111e-05/0.3467, allocations: 35.94 kB / 0.5591 GB, free: 15.84 MB / 414.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.000948/0.3476, allocations: 0.5226 MB / 0.5596 GB, free: 15.39 MB / 414.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.545e-05/0.3477, allocations: 4 kB / 0.5596 GB, free: 15.38 MB / 414.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.621e-05/0.3477, allocations: 15.94 kB / 0.5596 GB, free: 15.37 MB / 414.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.178e-05/0.3477, allocations: 8 kB / 0.5596 GB, free: 15.36 MB / 414.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001281/0.349, allocations: 0.8108 MB / 0.5604 GB, free: 14.67 MB / 414.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002922/0.3519, allocations: 1.852 MB / 0.5622 GB, free: 12.96 MB / 414.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0004536/0.3524, allocations: 193.1 kB / 0.5624 GB, free: 12.79 MB / 414.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002453/0.3526, allocations: 127.1 kB / 0.5625 GB, free: 12.67 MB / 414.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.002998/0.3556, allocations: 1.346 MB / 0.5638 GB, free: 11.54 MB / 414.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.137e-05/0.3556, allocations: 35.17 kB / 0.5639 GB, free: 11.5 MB / 414.1 MB Notification: Performance of pre-optimization done (n=17): time 1.423e-06/0.3556, allocations: 4 kB / 0.5639 GB, free: 11.49 MB / 414.1 MB Notification: Performance of matching and sorting (n=17): time 0.0006244/0.3563, allocations: 293.1 kB / 0.5642 GB, free: 11.23 MB / 414.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.094e-05/0.3563, allocations: 56.11 kB / 0.5642 GB, free: 11.16 MB / 414.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0005716/0.3569, allocations: 483.1 kB / 0.5647 GB, free: 10.73 MB / 414.1 MB Notification: Performance of collectPreVariables (initialization): time 2.581e-05/0.3569, allocations: 29.7 kB / 0.5647 GB, free: 10.7 MB / 414.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002368/0.3571, allocations: 300 kB / 0.565 GB, free: 10.39 MB / 414.1 MB Notification: Performance of collectInitialBindings (initialization): time 6.054e-05/0.3572, allocations: 67.45 kB / 0.5651 GB, free: 10.33 MB / 414.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001286/0.3573, allocations: 94.08 kB / 0.5651 GB, free: 10.23 MB / 414.1 MB Notification: Performance of setup shared object (initialization): time 0.0001881/0.3575, allocations: 362.7 kB / 0.5655 GB, free: 9.867 MB / 414.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001633/0.3577, allocations: 92.83 kB / 0.5656 GB, free: 9.777 MB / 414.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003724/0.3581, allocations: 357.1 kB / 0.5659 GB, free: 9.301 MB / 414.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0006157/0.3587, allocations: 0.4925 MB / 0.5664 GB, free: 8.676 MB / 414.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.667e-06/0.3587, allocations: 0 / 0.5664 GB, free: 8.676 MB / 414.1 MB Notification: Performance of matching and sorting (n=50) (initialization): time 0.0008059/0.3595, allocations: 497.5 kB / 0.5669 GB, free: 8.184 MB / 414.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.931e-05/0.3595, allocations: 8 kB / 0.5669 GB, free: 8.176 MB / 414.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.3e-05/0.3595, allocations: 12 kB / 0.5669 GB, free: 8.164 MB / 414.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.284e-05/0.3595, allocations: 15.94 kB / 0.5669 GB, free: 8.148 MB / 414.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003387/0.3599, allocations: 107.8 kB / 0.567 GB, free: 8.043 MB / 414.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 2.103e-05/0.3599, allocations: 23.92 kB / 0.567 GB, free: 8.02 MB / 414.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002773/0.3602, allocations: 55.56 kB / 0.5671 GB, free: 7.965 MB / 414.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.762e-05/0.3602, allocations: 36 kB / 0.5671 GB, free: 7.93 MB / 414.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 43 * 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 (50): * Single equations (assignments): 50 * 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.0002016/0.3604, allocations: 182.2 kB / 0.5673 GB, free: 7.742 MB / 414.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 8.505e-05/0.3605, allocations: 51.67 kB / 0.5673 GB, free: 7.691 MB / 414.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0007162/0.3612, allocations: 395.9 kB / 0.5677 GB, free: 7.262 MB / 414.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.705e-06/0.3612, allocations: 3.938 kB / 0.5677 GB, free: 7.258 MB / 414.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.897e-06/0.3612, allocations: 0 / 0.5677 GB, free: 7.258 MB / 414.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.18e-06/0.3613, allocations: 7.938 kB / 0.5677 GB, free: 7.25 MB / 414.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0008942/0.3621, allocations: 0.6929 MB / 0.5684 GB, free: 6.488 MB / 414.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.757e-06/0.3621, allocations: 3.938 kB / 0.5684 GB, free: 6.484 MB / 414.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 7.395e-05/0.3622, allocations: 12.05 kB / 0.5684 GB, free: 6.473 MB / 414.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 9.949e-06/0.3622, allocations: 8 kB / 0.5684 GB, free: 6.465 MB / 414.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.987e-06/0.3622, allocations: 0 / 0.5684 GB, free: 6.465 MB / 414.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 5.711e-06/0.3622, allocations: 7.938 kB / 0.5684 GB, free: 6.457 MB / 414.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.383e-06/0.3622, allocations: 0 / 0.5684 GB, free: 6.457 MB / 414.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002602/0.3625, allocations: 205.1 kB / 0.5686 GB, free: 6.223 MB / 414.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001168/0.3626, allocations: 55.58 kB / 0.5687 GB, free: 6.168 MB / 414.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 7.074e-05/0.3627, allocations: 11.95 kB / 0.5687 GB, free: 6.156 MB / 414.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001234/0.3628, allocations: 4 kB / 0.5687 GB, free: 6.152 MB / 414.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 2.509e-05/0.3628, allocations: 11.92 kB / 0.5687 GB, free: 6.141 MB / 414.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.865e-06/0.3629, allocations: 4 kB / 0.5687 GB, free: 6.137 MB / 414.1 MB Notification: Performance of sorting global known variables: time 0.0005203/0.3634, allocations: 414.8 kB / 0.5691 GB, free: 5.734 MB / 414.1 MB Notification: Performance of sort global known variables: time 7e-08/0.3634, allocations: 0 / 0.5691 GB, free: 5.734 MB / 414.1 MB Notification: Performance of remove unused functions: time 0.0008173/0.3642, allocations: 251.1 kB / 0.5694 GB, free: 5.488 MB / 414.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 6 * 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 simulation (6): * Single equations (assignments): 6 * 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.001228/0.3654, allocations: 1.045 MB / 0.5704 GB, free: 4.395 MB / 414.1 MB Notification: Performance of simCode: created initialization part: time 0.0004624/0.3659, allocations: 221.9 kB / 0.5706 GB, free: 4.18 MB / 414.1 MB Notification: Performance of simCode: created event and clocks part: time 2.204e-06/0.3659, allocations: 0 / 0.5706 GB, free: 4.18 MB / 414.1 MB Notification: Performance of simCode: created simulation system equations: time 5.426e-05/0.3659, allocations: 31.92 kB / 0.5706 GB, free: 4.148 MB / 414.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0006128/0.3666, allocations: 120.5 kB / 0.5707 GB, free: 4.039 MB / 414.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.005279/0.3718, allocations: 4.144 MB / 0.5748 GB, free: 15.52 MB / 430.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000448/0.3723, allocations: 0.8152 MB / 0.5756 GB, free: 14.68 MB / 430.1 MB Notification: Performance of simCode: alias equations: time 0.0004023/0.3727, allocations: 132.3 kB / 0.5757 GB, free: 14.54 MB / 430.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002469/0.3729, allocations: 175.4 kB / 0.5759 GB, free: 14.37 MB / 430.1 MB Notification: Performance of SimCode: time 6.91e-07/0.3729, allocations: 4 kB / 0.5759 GB, free: 14.37 MB / 430.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.04445/0.4174, allocations: 13.59 MB / 0.5891 GB, free: 0.8984 MB / 430.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 11/11.42, allocations: 7.156 kB / 0.5892 GB, free: 0.8945 MB / 430.1 MB " [Timeout remaining time 648] (rm -f Chemical_master_Chemical.Obsolete.Examples.CheckSubstancesData.SimpleReaction2.pipe ; mkfifo Chemical_master_Chemical.Obsolete.Examples.CheckSubstancesData.SimpleReaction2.pipe ; head -c 1048576 < Chemical_master_Chemical.Obsolete.Examples.CheckSubstancesData.SimpleReaction2.pipe >> ../files/Chemical_master_Chemical.Obsolete.Examples.CheckSubstancesData.SimpleReaction2.sim & python3 -m fmpy simulate --output-file Chemical_master_Chemical.Obsolete.Examples.CheckSubstancesData.SimpleReaction2_res.csv --start-time 0 --stop-time 0.001 --timeout 50 --relative-tolerance 1e-06 --interface-type ModelExchange --solver CVode --output-interval 4e-07 Chemical_master_Chemical_Obsolete_Examples_CheckSubstancesData_SimpleReaction2.fmu > Chemical_master_Chemical.Obsolete.Examples.CheckSubstancesData.SimpleReaction2.pipe 2>&1) [Timeout 52.5] [Calling sys.exit(0), Time elapsed: 14.012030316000164] Failed to read output from testmodel.py, exit status != 0: 11.535237142001279 11.550865986 11.204620804 Calling exit ...