Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Chemical_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.001474/0.001474, allocations: 110.4 kB / 18.94 MB, free: 2.812 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.001635/0.001635, allocations: 219 kB / 22.25 MB, free: 5.184 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.353/1.353, allocations: 230.6 MB / 256 MB, free: 7.996 MB / 206.1 MB " [Timeout remaining time 178] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Chemical 2.0.0/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Chemical 2.0.0/package.mo): time 0.1293/0.1293, allocations: 23.85 MB / 336.3 MB, free: 11.21 MB / 270.1 MB " [Timeout remaining time 180] Using package Chemical with version 2.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Chemical 2.0.0/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_Chemical_Obsolete_Examples_CheckSubstancesData_SimpleReaction2",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Chemical.Obsolete.Examples.CheckSubstancesData.SimpleReaction2,fileNamePrefix="Chemical_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.002726/0.002726, allocations: 64.08 kB / 471.2 MB, free: 7.719 MB / 334.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2892/0.2919, allocations: 59.86 MB / 0.5186 GB, free: 9.84 MB / 382.1 MB [/home/hudson/saved_omc/libraries/.openmodelica/libraries/Chemical 2.0.0/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 2.0.0/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.03019/0.3221, allocations: 24.26 MB / 0.5423 GB, free: 15.59 MB / 398.1 MB Notification: Performance of NFInst.instExpressions: time 0.01115/0.3333, allocations: 9.252 MB / 0.5513 GB, free: 7.051 MB / 398.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0003688/0.3336, allocations: 15.88 kB / 0.5513 GB, free: 7.035 MB / 398.1 MB Notification: Performance of NFTyping.typeComponents: time 0.000606/0.3342, allocations: 219.9 kB / 0.5515 GB, free: 6.863 MB / 398.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0008719/0.3351, allocations: 362.7 kB / 0.5519 GB, free: 6.559 MB / 398.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.003305/0.3384, allocations: 1.438 MB / 0.5533 GB, free: 5.344 MB / 398.1 MB Notification: Performance of NFFlatten.flatten: time 0.0009596/0.3394, allocations: 0.6672 MB / 0.5539 GB, free: 4.738 MB / 398.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0003215/0.3397, allocations: 196.9 kB / 0.5541 GB, free: 4.586 MB / 398.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0003865/0.3401, allocations: 335 kB / 0.5544 GB, free: 4.289 MB / 398.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0004865/0.3406, allocations: 345.2 kB / 0.5548 GB, free: 4.008 MB / 398.1 MB Notification: Performance of NFPackage.collectConstants: time 6.953e-05/0.3406, allocations: 36 kB / 0.5548 GB, free: 3.973 MB / 398.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.002011/0.3427, allocations: 0.8386 MB / 0.5556 GB, free: 3.223 MB / 398.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001488/0.3428, allocations: 117 kB / 0.5557 GB, free: 3.129 MB / 398.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0002646/0.3431, allocations: 258.8 kB / 0.556 GB, free: 2.891 MB / 398.1 MB Notification: Performance of NFConvertDAE.convert: time 0.002443/0.3455, allocations: 1.532 MB / 0.5575 GB, free: 1.602 MB / 398.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.068e-06/0.3455, allocations: 0 / 0.5575 GB, free: 1.602 MB / 398.1 MB Notification: Performance of FrontEnd: time 1.182e-06/0.3455, allocations: 0 / 0.5575 GB, free: 1.602 MB / 398.1 MB Notification: Performance of Transformations before backend: time 8.686e-06/0.3455, allocations: 0 / 0.5575 GB, free: 1.602 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.001442/0.347, allocations: 0.8903 MB / 0.5583 GB, free: 0.7422 MB / 398.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.874e-05/0.347, allocations: 8.031 kB / 0.5584 GB, free: 0.7344 MB / 398.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 8.962e-05/0.3471, allocations: 70.06 kB / 0.5584 GB, free: 0.6641 MB / 398.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0007609/0.3479, allocations: 159 kB / 0.5586 GB, free: 0.5352 MB / 398.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.00069/0.3485, allocations: 398.3 kB / 0.559 GB, free: 180 kB / 398.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.519e-05/0.3486, allocations: 21.73 kB / 0.559 GB, free: 160 kB / 398.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 6.855e-05/0.3486, allocations: 35.94 kB / 0.559 GB, free: 124 kB / 398.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0008608/0.3495, allocations: 0.5279 MB / 0.5595 GB, free: 15.66 MB / 414.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.267e-05/0.3495, allocations: 4 kB / 0.5595 GB, free: 15.66 MB / 414.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.556e-05/0.3496, allocations: 12 kB / 0.5595 GB, free: 15.65 MB / 414.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 9.778e-06/0.3496, allocations: 8 kB / 0.5595 GB, free: 15.64 MB / 414.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001217/0.3508, allocations: 0.8103 MB / 0.5603 GB, free: 14.95 MB / 414.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002549/0.3533, allocations: 1.856 MB / 0.5621 GB, free: 13.24 MB / 414.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0004069/0.3537, allocations: 193.5 kB / 0.5623 GB, free: 13.07 MB / 414.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002347/0.354, allocations: 135 kB / 0.5625 GB, free: 12.95 MB / 414.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.002752/0.3567, allocations: 1.333 MB / 0.5638 GB, free: 11.82 MB / 414.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.766e-05/0.3568, allocations: 39.27 kB / 0.5638 GB, free: 11.78 MB / 414.1 MB Notification: Performance of pre-optimization done (n=17): time 1.523e-06/0.3568, allocations: 0 / 0.5638 GB, free: 11.78 MB / 414.1 MB Notification: Performance of matching and sorting (n=17): time 0.0005999/0.3574, allocations: 297.2 kB / 0.5641 GB, free: 11.51 MB / 414.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.098e-05/0.3574, allocations: 52.02 kB / 0.5641 GB, free: 11.45 MB / 414.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0005451/0.358, allocations: 488.2 kB / 0.5646 GB, free: 11 MB / 414.1 MB Notification: Performance of collectPreVariables (initialization): time 2.469e-05/0.358, allocations: 25.7 kB / 0.5646 GB, free: 10.96 MB / 414.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002342/0.3582, allocations: 300 kB / 0.5649 GB, free: 10.66 MB / 414.1 MB Notification: Performance of collectInitialBindings (initialization): time 5.847e-05/0.3583, allocations: 71.45 kB / 0.565 GB, free: 10.59 MB / 414.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001234/0.3584, allocations: 98.08 kB / 0.5651 GB, free: 10.49 MB / 414.1 MB Notification: Performance of setup shared object (initialization): time 0.0002321/0.3586, allocations: 354.7 kB / 0.5654 GB, free: 10.14 MB / 414.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001644/0.3588, allocations: 96.81 kB / 0.5655 GB, free: 10.04 MB / 414.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003652/0.3592, allocations: 357.1 kB / 0.5658 GB, free: 9.566 MB / 414.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0005867/0.3597, allocations: 0.4925 MB / 0.5663 GB, free: 8.941 MB / 414.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.751e-06/0.3597, allocations: 8 kB / 0.5663 GB, free: 8.934 MB / 414.1 MB Notification: Performance of matching and sorting (n=50) (initialization): time 0.0007658/0.3605, allocations: 485.6 kB / 0.5668 GB, free: 8.453 MB / 414.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.015e-05/0.3605, allocations: 12 kB / 0.5668 GB, free: 8.441 MB / 414.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.262e-05/0.3605, allocations: 11.94 kB / 0.5668 GB, free: 8.43 MB / 414.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.336e-05/0.3606, allocations: 16.06 kB / 0.5668 GB, free: 8.414 MB / 414.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003178/0.3609, allocations: 115.8 kB / 0.5669 GB, free: 8.301 MB / 414.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.809e-05/0.3609, allocations: 15.94 kB / 0.567 GB, free: 8.285 MB / 414.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002623/0.3612, allocations: 63.55 kB / 0.567 GB, free: 8.223 MB / 414.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.983e-05/0.3612, allocations: 32 kB / 0.567 GB, free: 8.191 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.0001908/0.3614, allocations: 178.1 kB / 0.5672 GB, free: 8.008 MB / 414.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 8.035e-05/0.3615, allocations: 51.67 kB / 0.5673 GB, free: 7.957 MB / 414.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0007182/0.3622, allocations: 399.9 kB / 0.5677 GB, free: 7.523 MB / 414.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.659e-06/0.3622, allocations: 4 kB / 0.5677 GB, free: 7.52 MB / 414.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.516e-06/0.3622, allocations: 0 / 0.5677 GB, free: 7.52 MB / 414.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.392e-06/0.3622, allocations: 11.86 kB / 0.5677 GB, free: 7.508 MB / 414.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0008546/0.3631, allocations: 0.693 MB / 0.5683 GB, free: 6.746 MB / 414.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.95e-06/0.3631, allocations: 3.938 kB / 0.5683 GB, free: 6.742 MB / 414.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 7.065e-05/0.3632, allocations: 12 kB / 0.5684 GB, free: 6.73 MB / 414.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.755e-06/0.3632, allocations: 0 / 0.5684 GB, free: 6.73 MB / 414.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.072e-05/0.3632, allocations: 4 kB / 0.5684 GB, free: 6.727 MB / 414.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 5.66e-06/0.3632, allocations: 7.922 kB / 0.5684 GB, free: 6.719 MB / 414.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.813e-06/0.3632, allocations: 0 / 0.5684 GB, free: 6.719 MB / 414.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002409/0.3634, allocations: 201.1 kB / 0.5686 GB, free: 6.488 MB / 414.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001072/0.3635, allocations: 55.58 kB / 0.5686 GB, free: 6.434 MB / 414.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 6.698e-05/0.3636, allocations: 11.95 kB / 0.5686 GB, free: 6.422 MB / 414.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001227/0.3637, allocations: 4 kB / 0.5686 GB, free: 6.418 MB / 414.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 2.142e-05/0.3637, allocations: 11.92 kB / 0.5686 GB, free: 6.406 MB / 414.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.284e-06/0.3637, allocations: 7.938 kB / 0.5686 GB, free: 6.398 MB / 414.1 MB Notification: Performance of sorting global known variables: time 0.0004676/0.3642, allocations: 410.8 kB / 0.569 GB, free: 6 MB / 414.1 MB Notification: Performance of sort global known variables: time 7e-08/0.3642, allocations: 0 / 0.569 GB, free: 6 MB / 414.1 MB Notification: Performance of remove unused functions: time 0.0007014/0.3649, allocations: 255.1 kB / 0.5693 GB, free: 5.75 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.001063/0.366, allocations: 1.025 MB / 0.5703 GB, free: 4.676 MB / 414.1 MB Notification: Performance of simCode: created initialization part: time 0.000389/0.3664, allocations: 225.4 kB / 0.5705 GB, free: 4.457 MB / 414.1 MB Notification: Performance of simCode: created event and clocks part: time 1.953e-06/0.3664, allocations: 0.8125 kB / 0.5705 GB, free: 4.457 MB / 414.1 MB Notification: Performance of simCode: created simulation system equations: time 6.329e-05/0.3664, allocations: 44.03 kB / 0.5705 GB, free: 4.414 MB / 414.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005501/0.367, allocations: 112.3 kB / 0.5706 GB, free: 4.309 MB / 414.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.004883/0.3719, allocations: 4.148 MB / 0.5747 GB, free: 15.78 MB / 430.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004242/0.3723, allocations: 0.8152 MB / 0.5755 GB, free: 14.94 MB / 430.1 MB Notification: Performance of simCode: alias equations: time 0.0003672/0.3726, allocations: 136.3 kB / 0.5756 GB, free: 14.8 MB / 430.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002381/0.3729, allocations: 171.4 kB / 0.5758 GB, free: 14.64 MB / 430.1 MB Notification: Performance of SimCode: time 4.7e-07/0.3729, allocations: 0 / 0.5758 GB, free: 14.64 MB / 430.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.04193/0.4148, allocations: 13.59 MB / 0.5891 GB, free: 1.168 MB / 430.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 10.92/11.34, allocations: 13 kB / 0.5891 GB, free: 1.164 MB / 430.1 MB " [Timeout remaining time 649] (rm -f Chemical_Chemical.Obsolete.Examples.CheckSubstancesData.SimpleReaction2.pipe ; mkfifo Chemical_Chemical.Obsolete.Examples.CheckSubstancesData.SimpleReaction2.pipe ; head -c 1048576 < Chemical_Chemical.Obsolete.Examples.CheckSubstancesData.SimpleReaction2.pipe >> ../files/Chemical_Chemical.Obsolete.Examples.CheckSubstancesData.SimpleReaction2.sim & python3 -m fmpy simulate --output-file Chemical_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_Chemical_Obsolete_Examples_CheckSubstancesData_SimpleReaction2.fmu > Chemical_Chemical.Obsolete.Examples.CheckSubstancesData.SimpleReaction2.pipe 2>&1) [Timeout 52.5] [Calling sys.exit(0), Time elapsed: 13.85592719300621] Failed to read output from testmodel.py, exit status != 0: 11.442896672997449 11.457282043 11.108800737 Calling exit ...