Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr BioChem_BioChem.Examples.CaOscillations.Cytosol.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/BioChem 1.1.2-master/package.mo", uses=false) Using package BioChem with version 1.1.2 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/BioChem 1.1.2-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(BioChem.Examples.CaOscillations.Cytosol,fileNamePrefix="BioChem_BioChem_Examples_CaOscillations_Cytosol",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(BioChem.Examples.CaOscillations.Cytosol,fileNamePrefix="BioChem_BioChem_Examples_CaOscillations_Cytosol",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.001241/0.001241, allocations: 108 kB / 15.61 MB, free: 152 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.00153/0.00153, allocations: 192.7 kB / 16.53 MB, free: 6.664 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.308/1.308, allocations: 222.9 MB / 240.2 MB, free: 4.402 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/BioChem 1.1.2-master/package.mo): time 0.2064/0.2064, allocations: 12.26 MB / 302.6 MB, free: 1.336 MB / 238.1 MB Warning: Ignoring unknown experiment annotation option: Algorithm = "dassl" Notification: Performance of FrontEnd - loaded program: time 0.00127/0.001271, allocations: 71.91 kB / 365.9 MB, free: 9.73 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1055/0.1068, allocations: 52.07 MB / 418 MB, free: 5.559 MB / 350.1 MB Notification: Performance of NFInst.instantiate(BioChem.Examples.CaOscillations.Cytosol): time 0.005531/0.1124, allocations: 2.815 MB / 420.8 MB, free: 2.723 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.0003089/0.1127, allocations: 187.2 kB / 421 MB, free: 2.539 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 8.675e-05/0.1128, allocations: 8 kB / 421 MB, free: 2.531 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 9.013e-05/0.1129, allocations: 35.67 kB / 421 MB, free: 2.496 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001439/0.1131, allocations: 47.56 kB / 421 MB, free: 2.449 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002161/0.1133, allocations: 47.89 kB / 421.1 MB, free: 2.402 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.000204/0.1135, allocations: 179.2 kB / 421.3 MB, free: 2.227 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002406/0.1138, allocations: 103.6 kB / 421.4 MB, free: 2.129 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 9.121e-05/0.1139, allocations: 87.62 kB / 421.4 MB, free: 2.043 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001443/0.114, allocations: 95.55 kB / 421.5 MB, free: 1.949 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 3.957e-05/0.1141, allocations: 24 kB / 421.6 MB, free: 1.926 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 3.541e-05/0.1141, allocations: 20 kB / 421.6 MB, free: 1.906 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 4.939e-05/0.1142, allocations: 47.84 kB / 421.6 MB, free: 1.859 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001199/0.1143, allocations: 107.4 kB / 421.7 MB, free: 1.754 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0002584/0.1146, allocations: 231.4 kB / 422 MB, free: 1.527 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.168e-06/0.1146, allocations: 0 / 422 MB, free: 1.527 MB / 350.1 MB Notification: Performance of FrontEnd: time 1.393e-06/0.1146, allocations: 0 / 422 MB, free: 1.527 MB / 350.1 MB Notification: Performance of Transformations before backend: time 1.044e-05/0.1146, allocations: 0 / 422 MB, free: 1.527 MB / 350.1 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 60 * Number of variables: 60 Notification: Performance of Generate backend data structure: time 0.0007903/0.1154, allocations: 0.5032 MB / 422.5 MB, free: 0.9727 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.427e-05/0.1155, allocations: 8.031 kB / 422.5 MB, free: 0.9648 MB / 350.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 7.331e-05/0.1155, allocations: 62.73 kB / 422.5 MB, free: 0.8945 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 5.256e-05/0.1156, allocations: 24.66 kB / 422.6 MB, free: 0.8711 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001652/0.1158, allocations: 192 kB / 422.7 MB, free: 0.6445 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.56e-05/0.1158, allocations: 20.94 kB / 422.8 MB, free: 0.625 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.655e-05/0.1159, allocations: 24.38 kB / 422.8 MB, free: 0.6016 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003577/0.1162, allocations: 205.4 kB / 423 MB, free: 408 kB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.667e-05/0.1163, allocations: 3.938 kB / 423 MB, free: 404 kB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.448e-05/0.1163, allocations: 12 kB / 423 MB, free: 392 kB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.995e-06/0.1163, allocations: 4 kB / 423 MB, free: 388 kB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002383/0.1165, allocations: 138.2 kB / 423.1 MB, free: 252 kB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.1865/0.3031, allocations: 0.7583 MB / 423.9 MB, free: 40.69 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0001992/0.3033, allocations: 103.8 kB / 424 MB, free: 40.67 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002602/0.3036, allocations: 97.83 kB / 424.1 MB, free: 40.66 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.928e-05/0.3036, allocations: 2.344 kB / 424.1 MB, free: 40.66 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.956e-05/0.3036, allocations: 40.41 kB / 424.1 MB, free: 40.62 MB / 350.1 MB Notification: Performance of pre-optimization done (n=15): time 2.895e-06/0.3036, allocations: 1.281 kB / 424.1 MB, free: 40.62 MB / 350.1 MB Notification: Performance of matching and sorting (n=17): time 0.001358/0.305, allocations: 0.5759 MB / 424.7 MB, free: 40.34 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 2.927e-05/0.305, allocations: 55.81 kB / 424.8 MB, free: 40.28 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001153/0.3052, allocations: 147.9 kB / 424.9 MB, free: 40.18 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 1.577e-05/0.3052, allocations: 29.89 kB / 424.9 MB, free: 40.14 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 8.138e-05/0.3053, allocations: 161.1 kB / 425.1 MB, free: 40.03 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 4.786e-05/0.3053, allocations: 65.58 kB / 425.2 MB, free: 39.99 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 7.746e-05/0.3054, allocations: 39.05 kB / 425.2 MB, free: 39.97 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 0.0001008/0.3055, allocations: 331.6 kB / 425.5 MB, free: 39.66 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 8.94e-05/0.3056, allocations: 42.34 kB / 425.6 MB, free: 39.66 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001114/0.3057, allocations: 99.34 kB / 425.7 MB, free: 39.6 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001368/0.3071, allocations: 397.5 kB / 426.1 MB, free: 39.54 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.402e-06/0.3071, allocations: 2.781 kB / 426.1 MB, free: 39.54 MB / 350.1 MB Notification: Performance of matching and sorting (n=28) (initialization): time 0.0002933/0.3074, allocations: 205.2 kB / 426.3 MB, free: 39.5 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.533e-05/0.3075, allocations: 3.25 kB / 426.3 MB, free: 39.5 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.302e-06/0.3075, allocations: 5.906 kB / 426.3 MB, free: 39.5 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.678e-05/0.3075, allocations: 3.219 kB / 426.3 MB, free: 39.5 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001906/0.3077, allocations: 53.44 kB / 426.3 MB, free: 39.5 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.065e-05/0.3077, allocations: 10.72 kB / 426.3 MB, free: 39.49 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 8.249e-05/0.3078, allocations: 6.531 kB / 426.3 MB, free: 39.49 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.469e-05/0.3078, allocations: 15.94 kB / 426.4 MB, free: 39.49 MB / 350.1 MB Warning: Assuming fixed start value for the following 5 variables: V:VARIABLE(start = 1.0 fixed = true stateSelect=StateSelect.prefer ) "Compartment volume" type: Real endoplasmicReticulum.V:VARIABLE(start = 1.0 fixed = true stateSelect=StateSelect.prefer ) "Compartment volume" type: Real p3_sbml:VARIABLE(start = 0.95 fixed = true ) type: Real Ca_Cyt.n:VARIABLE(min = 0.0 unit = "mol" fixed = true stateSelect=StateSelect.prefer ) "Number of moles of substance in pool (mol)" type: Real endoplasmicReticulum.CaER.n:VARIABLE(min = 0.0 unit = "mol" fixed = true stateSelect=StateSelect.prefer ) "Number of moles of substance in pool (mol)" type: Real Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 7 * 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 (28): * Single equations (assignments): 28 * 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.0002619/0.3081, allocations: 139.1 kB / 426.5 MB, free: 39.38 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.814e-05/0.3081, allocations: 16.38 kB / 426.5 MB, free: 39.37 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0002851/0.3084, allocations: 168.6 kB / 426.7 MB, free: 39.34 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.896e-06/0.3084, allocations: 2.594 kB / 426.7 MB, free: 39.34 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.052e-06/0.3084, allocations: 6.719 kB / 426.7 MB, free: 39.34 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.963e-06/0.3085, allocations: 3.141 kB / 426.7 MB, free: 39.34 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0006422/0.3091, allocations: 0.513 MB / 427.2 MB, free: 39.04 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.814e-06/0.3091, allocations: 1.469 kB / 427.2 MB, free: 39.04 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001862/0.3093, allocations: 36.05 kB / 427.2 MB, free: 39.04 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 3.657e-06/0.3093, allocations: 6.469 kB / 427.2 MB, free: 39.04 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.67e-05/0.3093, allocations: 5.25 kB / 427.2 MB, free: 39.04 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.545e-06/0.3094, allocations: 0 / 427.2 MB, free: 39.04 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.775e-06/0.3094, allocations: 0.5 kB / 427.2 MB, free: 39.04 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003674/0.3097, allocations: 310.8 kB / 427.6 MB, free: 38.89 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 3.634e-05/0.3098, allocations: 91.89 kB / 427.6 MB, free: 38.79 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.799e-05/0.3098, allocations: 6.938 kB / 427.6 MB, free: 38.79 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001044/0.3099, allocations: 7.609 kB / 427.7 MB, free: 38.79 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.084e-05/0.31, allocations: 11.08 kB / 427.7 MB, free: 38.79 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 9.227e-06/0.31, allocations: 5.5 kB / 427.7 MB, free: 38.79 MB / 350.1 MB Notification: Performance of sorting global known variables: time 5.595e-05/0.31, allocations: 108.6 kB / 427.8 MB, free: 38.71 MB / 350.1 MB Notification: Performance of sort global known variables: time 1.1e-07/0.31, allocations: 0 / 427.8 MB, free: 38.71 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.0002733/0.3103, allocations: 40.44 kB / 427.8 MB, free: 38.71 MB / 350.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * Number of states: 5 (V,endoplasmicReticulum.V,endoplasmicReticulum.CaER.n,Ca_Cyt.n,p3_sbml) * 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 (18): * Single equations (assignments): 18 * 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.0004446/0.3108, allocations: 0.8492 MB / 428.7 MB, free: 38.05 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.0002489/0.311, allocations: 148 kB / 428.8 MB, free: 38.05 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 2.806e-06/0.311, allocations: 2.969 kB / 428.8 MB, free: 38.05 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 7.677e-05/0.3111, allocations: 66.16 kB / 428.9 MB, free: 38.04 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000265/0.3114, allocations: 14.33 kB / 428.9 MB, free: 38.04 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001815/0.3132, allocations: 2.147 MB / 431 MB, free: 36.65 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001678/0.3134, allocations: 0.739 MB / 431.8 MB, free: 35.95 MB / 350.1 MB Notification: Performance of simCode: alias equations: time 6.847e-05/0.3135, allocations: 13.47 kB / 431.8 MB, free: 35.95 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 9.366e-05/0.3136, allocations: 68.31 kB / 431.9 MB, free: 35.94 MB / 350.1 MB Notification: Performance of SimCode: time 2.5e-07/0.3136, allocations: 0 / 431.9 MB, free: 35.94 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02052/0.3341, allocations: 3.225 MB / 435.1 MB, free: 35.58 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 7.026/7.36, allocations: 4.406 kB / 435.1 MB, free: 35.57 MB / 350.1 MB (rm -f BioChem_BioChem.Examples.CaOscillations.Cytosol.pipe ; mkfifo BioChem_BioChem.Examples.CaOscillations.Cytosol.pipe ; head -c 1048576 < BioChem_BioChem.Examples.CaOscillations.Cytosol.pipe >> ../files/BioChem_BioChem.Examples.CaOscillations.Cytosol.sim & python3 -m fmpy simulate --output-file BioChem_BioChem.Examples.CaOscillations.Cytosol_res.csv --start-time 0 --stop-time 120 --timeout 50 --relative-tolerance 1e-06 --interface-type ModelExchange --solver CVode --output-interval 120 BioChem_BioChem_Examples_CaOscillations_Cytosol.fmu > BioChem_BioChem.Examples.CaOscillations.Cytosol.pipe 2>&1)