Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr SystemDynamics_SystemDynamics.IntroductoryExamples.Influenza.Flu.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/SystemDynamics 2.1.2-master/package.mo", uses=false) Using package SystemDynamics with version 2.1.2 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/SystemDynamics 2.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(SystemDynamics.IntroductoryExamples.Influenza.Flu,fileNamePrefix="SystemDynamics_SystemDynamics_IntroductoryExamples_Influenza_Flu",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(SystemDynamics.IntroductoryExamples.Influenza.Flu,fileNamePrefix="SystemDynamics_SystemDynamics_IntroductoryExamples_Influenza_Flu",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.001867/0.001867, 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.002584/0.002584, allocations: 197 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 2.954/2.954, allocations: 222.9 MB / 240.2 MB, free: 4.395 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/SystemDynamics 2.1.2-master/package.mo): time 0.6481/0.6481, allocations: 28.8 MB / 319.2 MB, free: 5.738 MB / 254.1 MB Warning: Ignoring unknown experiment annotation option: Algorithm = "dassl" Notification: Performance of FrontEnd - loaded program: time 0.002283/0.002283, allocations: 63.91 kB / 386.7 MB, free: 3.531 MB / 318.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.5967/0.599, allocations: 56.41 MB / 443.1 MB, free: 39.59 MB / 366.1 MB Notification: Performance of NFInst.instantiate(SystemDynamics.IntroductoryExamples.Influenza.Flu): time 0.005359/0.6044, allocations: 1.938 MB / 445.1 MB, free: 38.48 MB / 366.1 MB Notification: Performance of NFInst.instExpressions: time 0.001297/0.6058, allocations: 315.8 kB / 445.4 MB, free: 38.39 MB / 366.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0003424/0.6062, allocations: 9.625 kB / 445.4 MB, free: 38.39 MB / 366.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0003463/0.6066, allocations: 56.31 kB / 445.5 MB, free: 38.35 MB / 366.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0002012/0.6068, allocations: 37.56 kB / 445.5 MB, free: 38.32 MB / 366.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0006108/0.6074, allocations: 147.8 kB / 445.6 MB, free: 38.32 MB / 366.1 MB Notification: Performance of NFFlatten.flatten: time 0.000644/0.6081, allocations: 380.7 kB / 446 MB, free: 38.28 MB / 366.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0006574/0.6088, allocations: 270.1 kB / 446.3 MB, free: 38.23 MB / 366.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002159/0.609, allocations: 138.6 kB / 446.4 MB, free: 38.2 MB / 366.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.000294/0.6093, allocations: 169.9 kB / 446.6 MB, free: 38.14 MB / 366.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001068/0.6095, allocations: 37.91 kB / 446.6 MB, free: 38.14 MB / 366.1 MB Notification: Performance of NFFlatten.collectFunctions: time 8.407e-05/0.6096, allocations: 38.44 kB / 446.7 MB, free: 38.14 MB / 366.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001272/0.6097, allocations: 85.56 kB / 446.7 MB, free: 38.13 MB / 366.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0002631/0.61, allocations: 194 kB / 446.9 MB, free: 38.05 MB / 366.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0005711/0.6106, allocations: 372.7 kB / 447.3 MB, free: 37.97 MB / 366.1 MB Notification: Performance of FrontEnd - DAE generated: time 8.927e-06/0.6106, allocations: 2.531 kB / 447.3 MB, free: 37.97 MB / 366.1 MB Notification: Performance of FrontEnd: time 2.515e-06/0.6106, allocations: 0 / 447.3 MB, free: 37.97 MB / 366.1 MB Notification: Performance of Transformations before backend: time 1.293e-05/0.6106, allocations: 4 kB / 447.3 MB, free: 37.96 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: 115 * Number of variables: 115 Notification: Performance of Generate backend data structure: time 0.001334/0.612, allocations: 0.6687 MB / 448 MB, free: 37.49 MB / 366.1 MB Notification: Performance of prepare preOptimizeDAE: time 6.647e-05/0.6121, allocations: 10.66 kB / 448 MB, free: 37.49 MB / 366.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001921/0.6123, allocations: 93.09 kB / 448.1 MB, free: 37.45 MB / 366.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001303/0.6124, allocations: 54.06 kB / 448.1 MB, free: 37.42 MB / 366.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.005674/0.6181, allocations: 318.5 kB / 448.4 MB, free: 37.18 MB / 366.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 6.262e-05/0.6183, allocations: 40.88 kB / 448.5 MB, free: 37.17 MB / 366.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001631/0.6184, allocations: 50.03 kB / 448.5 MB, free: 37.17 MB / 366.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001076/0.6195, allocations: 451.6 kB / 449 MB, free: 37.03 MB / 366.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.54e-05/0.6196, allocations: 7.938 kB / 449 MB, free: 37.02 MB / 366.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 5.832e-05/0.6196, allocations: 25.66 kB / 449 MB, free: 37 MB / 366.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.23e-05/0.6197, allocations: 11 kB / 449 MB, free: 37 MB / 366.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0006398/0.6203, allocations: 234.9 kB / 449.2 MB, free: 36.93 MB / 366.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002668/0.623, allocations: 1.689 MB / 450.9 MB, free: 35.64 MB / 366.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0005501/0.6236, allocations: 172.9 kB / 451.1 MB, free: 35.55 MB / 366.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.000186/0.6238, allocations: 81.56 kB / 451.2 MB, free: 35.52 MB / 366.1 MB Notification: Performance of preOpt evalFunc (simulation): time 3.237e-05/0.6239, allocations: 6.844 kB / 451.2 MB, free: 35.51 MB / 366.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0004595/0.6243, allocations: 123.2 kB / 451.3 MB, free: 35.43 MB / 366.1 MB Notification: Performance of pre-optimization done (n=21): time 4.218e-06/0.6244, allocations: 0 / 451.3 MB, free: 35.43 MB / 366.1 MB Notification: Performance of matching and sorting (n=21): time 0.0007369/0.6251, allocations: 234.2 kB / 451.5 MB, free: 35.32 MB / 366.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.151e-05/0.6252, allocations: 54.25 kB / 451.6 MB, free: 35.25 MB / 366.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0004232/0.6256, allocations: 254.8 kB / 451.8 MB, free: 35.1 MB / 366.1 MB Notification: Performance of collectPreVariables (initialization): time 3.571e-05/0.6257, allocations: 28.73 kB / 451.9 MB, free: 35.07 MB / 366.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002154/0.6259, allocations: 248.9 kB / 452.1 MB, free: 34.86 MB / 366.1 MB Notification: Performance of collectInitialBindings (initialization): time 9.57e-05/0.626, allocations: 70.17 kB / 452.2 MB, free: 34.81 MB / 366.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001435/0.6262, allocations: 60.97 kB / 452.2 MB, free: 34.77 MB / 366.1 MB Notification: Performance of setup shared object (initialization): time 0.0001182/0.6263, allocations: 338.8 kB / 452.6 MB, free: 34.44 MB / 366.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001836/0.6265, allocations: 58.8 kB / 452.6 MB, free: 34.42 MB / 366.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002193/0.6268, allocations: 138.7 kB / 452.8 MB, free: 34.3 MB / 366.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0004521/0.6272, allocations: 218.2 kB / 453 MB, free: 34.14 MB / 366.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.919e-06/0.6273, allocations: 0 / 453 MB, free: 34.14 MB / 366.1 MB Notification: Performance of matching and sorting (n=33) (initialization): time 0.0006458/0.6279, allocations: 263.2 kB / 453.2 MB, free: 34.01 MB / 366.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.74e-05/0.628, allocations: 5.594 kB / 453.2 MB, free: 34.01 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.179e-05/0.628, allocations: 3.062 kB / 453.2 MB, free: 34.01 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 3.019e-05/0.628, allocations: 2.938 kB / 453.2 MB, free: 34.01 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003868/0.6284, allocations: 50.95 kB / 453.3 MB, free: 34 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.691e-05/0.6285, allocations: 6.781 kB / 453.3 MB, free: 34 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002326/0.6287, allocations: 31.42 kB / 453.3 MB, free: 33.98 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.971e-05/0.6288, allocations: 5.906 kB / 453.3 MB, free: 33.98 MB / 366.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 10 * Number of states: 0 () * Number of discrete variables: 5 ($whenCondition1,Immune.Integrator1.local_reset,Sick.Integrator1.local_reset,Infected.Integrator1.local_reset,Non_infected.Integrator1.local_reset) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (33): * Single equations (assignments): 33 * 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.0002858/0.6291, allocations: 162.8 kB / 453.5 MB, free: 33.83 MB / 366.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 6.769e-05/0.6291, allocations: 26.38 kB / 453.5 MB, free: 33.82 MB / 366.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0005455/0.6297, allocations: 203.7 kB / 453.7 MB, free: 33.71 MB / 366.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.905e-06/0.6297, allocations: 2.656 kB / 453.7 MB, free: 33.71 MB / 366.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.165e-06/0.6298, allocations: 0 / 453.7 MB, free: 33.71 MB / 366.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.843e-06/0.6298, allocations: 0 / 453.7 MB, free: 33.71 MB / 366.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001034/0.6308, allocations: 0.6405 MB / 454.4 MB, free: 33.27 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.589e-06/0.6308, allocations: 2.938 kB / 454.4 MB, free: 33.27 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003507/0.6312, allocations: 38.33 kB / 454.4 MB, free: 33.25 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 6.452e-06/0.6312, allocations: 2.875 kB / 454.4 MB, free: 33.25 MB / 366.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.45e-05/0.6313, allocations: 0 / 454.4 MB, free: 33.25 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 5.861e-06/0.6313, allocations: 2.688 kB / 454.4 MB, free: 33.25 MB / 366.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.045e-06/0.6313, allocations: 0 / 454.4 MB, free: 33.25 MB / 366.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0006298/0.6319, allocations: 362.1 kB / 454.8 MB, free: 33.02 MB / 366.1 MB Notification: Performance of postOpt removeConstants (simulation): time 6.777e-05/0.632, allocations: 104.9 kB / 454.9 MB, free: 32.91 MB / 366.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.163e-05/0.6321, allocations: 4 kB / 454.9 MB, free: 32.91 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.000211/0.6323, allocations: 14.81 kB / 454.9 MB, free: 32.9 MB / 366.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.398e-05/0.6324, allocations: 16.05 kB / 454.9 MB, free: 32.89 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.494e-05/0.6325, allocations: 10.84 kB / 454.9 MB, free: 32.89 MB / 366.1 MB Notification: Performance of sorting global known variables: time 0.0002403/0.6327, allocations: 178.6 kB / 455.1 MB, free: 32.79 MB / 366.1 MB Notification: Performance of sort global known variables: time 4.61e-07/0.6327, allocations: 0 / 455.1 MB, free: 32.79 MB / 366.1 MB Notification: Performance of remove unused functions: time 0.000586/0.6333, allocations: 71.78 kB / 455.1 MB, free: 32.76 MB / 366.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * Number of states: 4 (Non_infected.Integrator1.y,Infected.Integrator1.y,Sick.Integrator1.y,Immune.Integrator1.y) * Number of discrete variables: 1 ($whenCondition1) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (21): * Single equations (assignments): 21 * 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.0008633/0.6342, allocations: 0.905 MB / 456 MB, free: 31.99 MB / 366.1 MB Notification: Performance of simCode: created initialization part: time 0.000527/0.6348, allocations: 172.8 kB / 456.2 MB, free: 31.93 MB / 366.1 MB Notification: Performance of simCode: created event and clocks part: time 5.36e-06/0.6348, allocations: 2.969 kB / 456.2 MB, free: 31.93 MB / 366.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0001761/0.635, allocations: 83.02 kB / 456.3 MB, free: 31.89 MB / 366.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0006769/0.6357, allocations: 48.03 kB / 456.3 MB, free: 31.87 MB / 366.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.005139/0.6408, allocations: 2.813 MB / 459.2 MB, free: 29.89 MB / 366.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004628/0.6414, allocations: 0.8011 MB / 460 MB, free: 29.19 MB / 366.1 MB Notification: Performance of simCode: alias equations: time 0.0001978/0.6416, allocations: 26.42 kB / 460 MB, free: 29.18 MB / 366.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002314/0.6418, allocations: 123.2 kB / 460.1 MB, free: 29.08 MB / 366.1 MB Notification: Performance of SimCode: time 3.046e-06/0.6419, allocations: 0 / 460.1 MB, free: 29.08 MB / 366.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.1271/0.769, allocations: 4.829 MB / 464.9 MB, free: 28.44 MB / 366.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 15.02/15.79, allocations: 6.031 kB / 464.9 MB, free: 28.44 MB / 366.1 MB (rm -f SystemDynamics_SystemDynamics.IntroductoryExamples.Influenza.Flu.pipe ; mkfifo SystemDynamics_SystemDynamics.IntroductoryExamples.Influenza.Flu.pipe ; head -c 1048576 < SystemDynamics_SystemDynamics.IntroductoryExamples.Influenza.Flu.pipe >> ../files/SystemDynamics_SystemDynamics.IntroductoryExamples.Influenza.Flu.sim & python3 -m fmpy simulate --output-file SystemDynamics_SystemDynamics.IntroductoryExamples.Influenza.Flu_res.csv --start-time 0 --stop-time 52 --timeout 50 --relative-tolerance 1e-06 --interface-type ModelExchange --solver CVode --output-interval 0.052 SystemDynamics_SystemDynamics_IntroductoryExamples_Influenza_Flu.fmu > SystemDynamics_SystemDynamics.IntroductoryExamples.Influenza.Flu.pipe 2>&1)