Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Chemical_Chemical.Examples.CheckSubstancesData.SimpleReaction.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.CheckSubstancesData.SimpleReaction,fileNamePrefix="Chemical_Chemical_Examples_CheckSubstancesData_SimpleReaction",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Chemical.Examples.CheckSubstancesData.SimpleReaction,fileNamePrefix="Chemical_Chemical_Examples_CheckSubstancesData_SimpleReaction",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.005033/0.005033, allocations: 97.62 kB / 15.73 MB, free: 6.047 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.001206/0.001206, allocations: 202.3 kB / 16.68 MB, free: 5.969 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.396/1.396, allocations: 222.9 MB / 240.4 MB, free: 4.328 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Chemical 1.4.1-master/package.mo): time 0.207/0.207, allocations: 15.31 MB / 305.9 MB, free: 15.28 MB / 254.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001368/0.001368, allocations: 63.91 kB / 424.7 MB, free: 13.61 MB / 366.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2954/0.2968, allocations: 53.6 MB / 478.3 MB, free: 25.75 MB / 366.1 MB Notification: Performance of NFInst.instantiate(Chemical.Examples.CheckSubstancesData.SimpleReaction): time 0.003857/0.3007, allocations: 2.979 MB / 481.3 MB, free: 23.64 MB / 366.1 MB Notification: Performance of NFInst.instExpressions: time 0.006062/0.3068, allocations: 6.285 MB / 487.6 MB, free: 18.88 MB / 366.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0004529/0.3073, allocations: 3.781 kB / 487.6 MB, free: 18.88 MB / 366.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0005414/0.3078, allocations: 159.2 kB / 487.7 MB, free: 18.75 MB / 366.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0007271/0.3086, allocations: 253.6 kB / 488 MB, free: 18.55 MB / 366.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.002692/0.3113, allocations: 0.9584 MB / 488.9 MB, free: 17.82 MB / 366.1 MB Notification: Performance of NFFlatten.flatten: time 0.0008469/0.3122, allocations: 495.2 kB / 489.4 MB, free: 17.54 MB / 366.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002821/0.3125, allocations: 154.2 kB / 489.6 MB, free: 17.44 MB / 366.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002844/0.3128, allocations: 234.8 kB / 489.8 MB, free: 17.34 MB / 366.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0003595/0.3131, allocations: 246.4 kB / 490 MB, free: 17.21 MB / 366.1 MB Notification: Performance of NFPackage.collectConstants: time 6.347e-05/0.3132, allocations: 24.78 kB / 490.1 MB, free: 17.21 MB / 366.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.002207/0.3154, allocations: 0.5408 MB / 490.6 MB, free: 17.02 MB / 366.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001171/0.3156, allocations: 87.8 kB / 490.7 MB, free: 16.96 MB / 366.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0002023/0.3158, allocations: 188.1 kB / 490.9 MB, free: 16.84 MB / 366.1 MB Notification: Performance of NFConvertDAE.convert: time 0.002119/0.3179, allocations: 1.02 MB / 491.9 MB, free: 16.25 MB / 366.1 MB Notification: Performance of FrontEnd - DAE generated: time 6.562e-06/0.3179, allocations: 8 kB / 491.9 MB, free: 16.24 MB / 366.1 MB Notification: Performance of FrontEnd: time 2.726e-06/0.3179, allocations: 0 / 491.9 MB, free: 16.24 MB / 366.1 MB Notification: Performance of Transformations before backend: time 8.345e-06/0.3179, allocations: 1.656 kB / 491.9 MB, free: 16.24 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: 53 * Number of variables: 53 Notification: Performance of Generate backend data structure: time 0.001102/0.319, allocations: 0.7694 MB / 492.7 MB, free: 15.58 MB / 366.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.143e-05/0.3191, allocations: 10.53 kB / 492.7 MB, free: 15.58 MB / 366.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 5.963e-05/0.3192, allocations: 52.64 kB / 492.7 MB, free: 15.53 MB / 366.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0005833/0.3198, allocations: 114.7 kB / 492.8 MB, free: 15.48 MB / 366.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000568/0.3203, allocations: 374.5 kB / 493.2 MB, free: 15.15 MB / 366.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.151e-05/0.3204, allocations: 17.3 kB / 493.2 MB, free: 15.14 MB / 366.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 5.343e-05/0.3204, allocations: 26.38 kB / 493.3 MB, free: 15.12 MB / 366.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0005404/0.321, allocations: 390.3 kB / 493.6 MB, free: 14.86 MB / 366.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.286e-05/0.321, allocations: 1.25 kB / 493.6 MB, free: 14.86 MB / 366.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.572e-05/0.321, allocations: 10.91 kB / 493.6 MB, free: 14.85 MB / 366.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.886e-06/0.3211, allocations: 5.125 kB / 493.6 MB, free: 14.85 MB / 366.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0008002/0.3219, allocations: 0.5425 MB / 494.2 MB, free: 14.63 MB / 366.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001669/0.3235, allocations: 1.406 MB / 495.6 MB, free: 13.46 MB / 366.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003909/0.3239, allocations: 168.2 kB / 495.8 MB, free: 13.37 MB / 366.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001989/0.3241, allocations: 90.92 kB / 495.9 MB, free: 13.33 MB / 366.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.002291/0.3264, allocations: 1.915 MB / 497.8 MB, free: 11.54 MB / 366.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.262e-05/0.3265, allocations: 30.56 kB / 497.8 MB, free: 11.5 MB / 366.1 MB Notification: Performance of pre-optimization done (n=13): time 1.362e-06/0.3265, allocations: 1.438 kB / 497.8 MB, free: 11.5 MB / 366.1 MB Notification: Performance of matching and sorting (n=13): time 0.0005225/0.327, allocations: 217.4 kB / 498 MB, free: 11.38 MB / 366.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.16e-05/0.3271, allocations: 57.72 kB / 498.1 MB, free: 11.32 MB / 366.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003803/0.3275, allocations: 381.2 kB / 498.4 MB, free: 11.07 MB / 366.1 MB Notification: Performance of collectPreVariables (initialization): time 1.826e-05/0.3275, allocations: 29.7 kB / 498.5 MB, free: 11.04 MB / 366.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001232/0.3276, allocations: 230.5 kB / 498.7 MB, free: 10.82 MB / 366.1 MB Notification: Performance of collectInitialBindings (initialization): time 3.138e-05/0.3276, allocations: 53.97 kB / 498.7 MB, free: 10.78 MB / 366.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 9.698e-05/0.3277, allocations: 73.83 kB / 498.8 MB, free: 10.73 MB / 366.1 MB Notification: Performance of setup shared object (initialization): time 7.75e-05/0.3278, allocations: 341.7 kB / 499.2 MB, free: 10.39 MB / 366.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.000112/0.328, allocations: 64.31 kB / 499.2 MB, free: 10.37 MB / 366.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001917/0.3282, allocations: 240.2 kB / 499.4 MB, free: 10.09 MB / 366.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003434/0.3285, allocations: 340.9 kB / 499.8 MB, free: 9.762 MB / 366.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.09e-06/0.3285, allocations: 6.125 kB / 499.8 MB, free: 9.758 MB / 366.1 MB Notification: Performance of matching and sorting (n=35) (initialization): time 0.0005219/0.329, allocations: 346.6 kB / 0.4884 GB, free: 9.578 MB / 366.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.566e-05/0.3291, allocations: 7.156 kB / 0.4884 GB, free: 9.578 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.1e-05/0.3291, allocations: 11.31 kB / 0.4884 GB, free: 9.574 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.274e-05/0.3291, allocations: 8.25 kB / 0.4884 GB, free: 9.574 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002243/0.3293, allocations: 78.92 kB / 0.4885 GB, free: 9.555 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.723e-05/0.3294, allocations: 17.14 kB / 0.4885 GB, free: 9.547 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001878/0.3296, allocations: 36.2 kB / 0.4886 GB, free: 9.523 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.663e-05/0.3296, allocations: 28.83 kB / 0.4886 GB, free: 9.516 MB / 366.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 29 * 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 (35): * Single equations (assignments): 35 * 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.0001216/0.3297, allocations: 159.7 kB / 0.4887 GB, free: 9.367 MB / 366.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.868e-05/0.3298, allocations: 35.55 kB / 0.4888 GB, free: 9.348 MB / 366.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0004577/0.3303, allocations: 284.1 kB / 0.489 GB, free: 9.129 MB / 366.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.09e-06/0.3303, allocations: 1.375 kB / 0.489 GB, free: 9.129 MB / 366.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.707e-06/0.3303, allocations: 3.938 kB / 0.489 GB, free: 9.125 MB / 366.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.25e-06/0.3303, allocations: 3.984 kB / 0.489 GB, free: 9.121 MB / 366.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0005601/0.3309, allocations: 0.6271 MB / 0.4897 GB, free: 8.535 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.955e-06/0.3309, allocations: 1.375 kB / 0.4897 GB, free: 8.535 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 5.864e-05/0.331, allocations: 13.56 kB / 0.4897 GB, free: 8.531 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 3.707e-06/0.331, allocations: 6.938 kB / 0.4897 GB, free: 8.527 MB / 366.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.152e-05/0.331, allocations: 1.375 kB / 0.4897 GB, free: 8.527 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.386e-06/0.331, allocations: 5.312 kB / 0.4897 GB, free: 8.523 MB / 366.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.575e-06/0.331, allocations: 2.75 kB / 0.4897 GB, free: 8.523 MB / 366.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001769/0.3312, allocations: 185.2 kB / 0.4899 GB, free: 8.355 MB / 366.1 MB Notification: Performance of postOpt removeConstants (simulation): time 9.747e-05/0.3313, allocations: 119.8 kB / 0.49 GB, free: 8.23 MB / 366.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.367e-05/0.3314, allocations: 6.703 kB / 0.49 GB, free: 8.227 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 9.901e-05/0.3315, allocations: 2.75 kB / 0.49 GB, free: 8.227 MB / 366.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 2.237e-05/0.3315, allocations: 2.75 kB / 0.49 GB, free: 8.227 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.166e-06/0.3315, allocations: 12.11 kB / 0.49 GB, free: 8.219 MB / 366.1 MB Notification: Performance of sorting global known variables: time 0.0002982/0.3318, allocations: 310.8 kB / 0.4903 GB, free: 8.035 MB / 366.1 MB Notification: Performance of sort global known variables: time 1.2e-07/0.3318, allocations: 4 kB / 0.4903 GB, free: 8.031 MB / 366.1 MB Notification: Performance of remove unused functions: time 0.0006254/0.3324, allocations: 168.3 kB / 0.4905 GB, free: 7.984 MB / 366.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.0007902/0.3332, allocations: 0.9256 MB / 0.4914 GB, free: 7.172 MB / 366.1 MB Notification: Performance of simCode: created initialization part: time 0.0003067/0.3336, allocations: 165.4 kB / 0.4915 GB, free: 7.102 MB / 366.1 MB Notification: Performance of simCode: created event and clocks part: time 2.455e-06/0.3336, allocations: 0 / 0.4915 GB, free: 7.102 MB / 366.1 MB Notification: Performance of simCode: created simulation system equations: time 4.341e-05/0.3336, allocations: 32.55 kB / 0.4916 GB, free: 7.086 MB / 366.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005194/0.3341, allocations: 86.56 kB / 0.4916 GB, free: 7.047 MB / 366.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003265/0.3374, allocations: 3.261 MB / 0.4948 GB, free: 4.449 MB / 366.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001967/0.3376, allocations: 0.7723 MB / 0.4956 GB, free: 3.711 MB / 366.1 MB Notification: Performance of simCode: alias equations: time 0.0002988/0.3379, allocations: 101.3 kB / 0.4957 GB, free: 3.664 MB / 366.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001597/0.3381, allocations: 115.8 kB / 0.4958 GB, free: 3.578 MB / 366.1 MB Notification: Performance of SimCode: time 8.92e-07/0.3381, allocations: 3.938 kB / 0.4958 GB, free: 3.574 MB / 366.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02878/0.3669, allocations: 9.715 MB / 0.5053 GB, free: 10.42 MB / 382.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 8.177/8.544, allocations: 8 kB / 0.5053 GB, free: 10.41 MB / 382.1 MB (rm -f Chemical_Chemical.Examples.CheckSubstancesData.SimpleReaction.pipe ; mkfifo Chemical_Chemical.Examples.CheckSubstancesData.SimpleReaction.pipe ; head -c 1048576 < Chemical_Chemical.Examples.CheckSubstancesData.SimpleReaction.pipe >> ../files/Chemical_Chemical.Examples.CheckSubstancesData.SimpleReaction.sim & python3 -m fmpy simulate --output-file Chemical_Chemical.Examples.CheckSubstancesData.SimpleReaction_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_Examples_CheckSubstancesData_SimpleReaction.fmu > Chemical_Chemical.Examples.CheckSubstancesData.SimpleReaction.pipe 2>&1)