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/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/ModelicaServices 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 ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/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) 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/Complex 4.0.0+maint.om/package.mo): time 0.001741/0.001741, allocations: 180.9 kB / 7.651 MB, free: 1.422 MB / 5.871 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.487/1.487, allocations: 221.5 MB / 229.6 MB, free: 7.594 MB / 186.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.0009707/0.0009707, allocations: 93.83 kB / 280.5 MB, free: 5.324 MB / 234.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/SystemDynamics 2.1.2-master/package.mo): time 0.1876/0.1876, allocations: 28.85 MB / 360.1 MB, free: 2.207 MB / 250.7 MB Warning: Ignoring unknown experiment annotation option: Algorithm = "dassl" Notification: Performance of FrontEnd - loaded program: time 1.504e-05/1.508e-05, allocations: 0 / 423.9 MB, free: 32.11 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1116/0.1116, allocations: 57.49 MB / 481.4 MB, free: 6.734 MB / 314.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.4001/0.5118, allocations: 78.76 MB / 0.547 GB, free: 10.49 MB / 362.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0001961/0.512, allocations: 63.36 kB / 0.5471 GB, free: 10.49 MB / 362.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.0116/0.5236, allocations: 5.296 MB / 0.5522 GB, free: 9.805 MB / 362.7 MB Notification: Performance of FrontEnd: time 1.633e-06/0.5237, allocations: 0 / 0.5522 GB, free: 9.805 MB / 362.7 MB Notification: Performance of Transformations before backend: time 2.104e-05/0.5237, allocations: 14.28 kB / 0.5522 GB, free: 9.805 MB / 362.7 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.0005914/0.5243, allocations: 0.5825 MB / 0.5528 GB, free: 9.352 MB / 362.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.486e-05/0.5243, allocations: 11.8 kB / 0.5528 GB, free: 9.348 MB / 362.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 7.65e-05/0.5244, allocations: 61.05 kB / 0.5529 GB, free: 9.316 MB / 362.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000298/0.5247, allocations: 304.3 kB / 0.5532 GB, free: 9.082 MB / 362.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.933e-05/0.5248, allocations: 15.5 kB / 0.5532 GB, free: 9.082 MB / 362.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.355e-05/0.5248, allocations: 27.09 kB / 0.5532 GB, free: 9.082 MB / 362.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.0002889/0.5251, allocations: 186.2 kB / 0.5534 GB, free: 9.074 MB / 362.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.000487/0.5256, allocations: 364.9 kB / 0.5537 GB, free: 8.926 MB / 362.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.3e-05/0.5256, allocations: 0 / 0.5537 GB, free: 8.926 MB / 362.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.83e-05/0.5257, allocations: 5.203 kB / 0.5537 GB, free: 8.922 MB / 362.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.548e-05/0.5257, allocations: 19.7 kB / 0.5538 GB, free: 8.914 MB / 362.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001317/0.527, allocations: 1.581 MB / 0.5553 GB, free: 7.707 MB / 362.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.000255/0.5273, allocations: 159.6 kB / 0.5555 GB, free: 7.68 MB / 362.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 8.144e-05/0.5274, allocations: 64.39 kB / 0.5555 GB, free: 7.672 MB / 362.7 MB Notification: Performance of preOpt evalFunc (simulation): time 2.624e-05/0.5274, allocations: 11.86 kB / 0.5555 GB, free: 7.664 MB / 362.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001726/0.5276, allocations: 112.2 kB / 0.5556 GB, free: 7.598 MB / 362.7 MB Notification: Performance of pre-optimization done (n=21): time 1.813e-06/0.5276, allocations: 3.984 kB / 0.5556 GB, free: 7.594 MB / 362.7 MB Notification: Performance of matching and sorting (n=21): time 0.0002478/0.5278, allocations: 161.6 kB / 0.5558 GB, free: 7.539 MB / 362.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 1.577e-05/0.5279, allocations: 51.41 kB / 0.5558 GB, free: 7.477 MB / 362.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001286/0.528, allocations: 196.2 kB / 0.556 GB, free: 7.367 MB / 362.7 MB Notification: Performance of collectPreVariables (initialization): time 1.561e-05/0.528, allocations: 29.7 kB / 0.5561 GB, free: 7.332 MB / 362.7 MB Notification: Performance of collectInitialEqns (initialization): time 8.335e-05/0.5281, allocations: 245 kB / 0.5563 GB, free: 7.145 MB / 362.7 MB Notification: Performance of collectInitialBindings (initialization): time 3.571e-05/0.5282, allocations: 72.23 kB / 0.5564 GB, free: 7.094 MB / 362.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 9.187e-06/0.5282, allocations: 0 / 0.5564 GB, free: 7.094 MB / 362.7 MB Notification: Performance of setup shared object (initialization): time 5.641e-05/0.5282, allocations: 334.5 kB / 0.5567 GB, free: 6.773 MB / 362.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 7.566e-05/0.5283, allocations: 50.84 kB / 0.5567 GB, free: 6.77 MB / 362.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001011/0.5284, allocations: 128.5 kB / 0.5569 GB, free: 6.68 MB / 362.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001022/0.5285, allocations: 67.66 kB / 0.5569 GB, free: 6.672 MB / 362.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.475e-06/0.5285, allocations: 7.844 kB / 0.5569 GB, free: 6.668 MB / 362.7 MB Notification: Performance of matching and sorting (n=33) (initialization): time 0.0002609/0.5288, allocations: 222.7 kB / 0.5571 GB, free: 6.594 MB / 362.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.401e-05/0.5288, allocations: 7.656 kB / 0.5571 GB, free: 6.594 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.771e-06/0.5288, allocations: 3.75 kB / 0.5572 GB, free: 6.594 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.539e-05/0.5289, allocations: 3.906 kB / 0.5572 GB, free: 6.594 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001689/0.529, allocations: 46.67 kB / 0.5572 GB, free: 6.582 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.003e-06/0.529, allocations: 8.234 kB / 0.5572 GB, free: 6.578 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 9.406e-05/0.5291, allocations: 15.72 kB / 0.5572 GB, free: 6.566 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.757e-05/0.5292, allocations: 14.5 kB / 0.5572 GB, free: 6.566 MB / 362.7 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 () * 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 (linear and non-linear blocks): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 7.912e-05/0.5293, allocations: 108.7 kB / 0.5573 GB, free: 6.457 MB / 362.7 MB Notification: Performance of postOpt createAliasVarsForOutputStates (simulation): time 0.0001943/0.5295, allocations: 172 kB / 0.5575 GB, free: 6.395 MB / 362.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.189e-05/0.5295, allocations: 19.5 kB / 0.5575 GB, free: 6.383 MB / 362.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0002398/0.5297, allocations: 177.2 kB / 0.5577 GB, free: 6.32 MB / 362.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.066e-06/0.5297, allocations: 3.75 kB / 0.5577 GB, free: 6.32 MB / 362.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.178e-06/0.5298, allocations: 0 / 0.5577 GB, free: 6.32 MB / 362.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.008e-06/0.5298, allocations: 4 kB / 0.5577 GB, free: 6.316 MB / 362.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0004305/0.5302, allocations: 0.556 MB / 0.5582 GB, free: 5.969 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.263e-06/0.5302, allocations: 0 / 0.5582 GB, free: 5.969 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001626/0.5304, allocations: 30.98 kB / 0.5583 GB, free: 5.961 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.505e-06/0.5304, allocations: 3.875 kB / 0.5583 GB, free: 5.961 MB / 362.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.454e-05/0.5304, allocations: 3.188 kB / 0.5583 GB, free: 5.961 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.363e-06/0.5304, allocations: 0 / 0.5583 GB, free: 5.961 MB / 362.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.034e-06/0.5304, allocations: 0 / 0.5583 GB, free: 5.961 MB / 362.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003043/0.5307, allocations: 349.3 kB / 0.5586 GB, free: 5.789 MB / 362.7 MB Notification: Performance of postOpt removeConstants (simulation): time 3.133e-05/0.5308, allocations: 96.61 kB / 0.5587 GB, free: 5.68 MB / 362.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.544e-05/0.5308, allocations: 7.406 kB / 0.5587 GB, free: 5.68 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001072/0.5309, allocations: 4.031 kB / 0.5587 GB, free: 5.676 MB / 362.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.454e-05/0.531, allocations: 7.828 kB / 0.5587 GB, free: 5.672 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.006e-05/0.531, allocations: 7.812 kB / 0.5587 GB, free: 5.672 MB / 362.7 MB Notification: Performance of sorting global known variables: time 7.734e-05/0.5311, allocations: 146.9 kB / 0.5589 GB, free: 5.586 MB / 362.7 MB Notification: Performance of sort global known variables: time 1.3e-07/0.5311, allocations: 0 / 0.5589 GB, free: 5.586 MB / 362.7 MB Notification: Performance of remove unused functions: time 0.0002741/0.5313, allocations: 69.97 kB / 0.5589 GB, free: 5.562 MB / 362.7 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 () * 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 (linear and non-linear blocks): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.0004307/0.5318, allocations: 0.8699 MB / 0.5598 GB, free: 4.867 MB / 362.7 MB Notification: Performance of simCode: created initialization part: time 0.0002099/0.532, allocations: 147.7 kB / 0.5599 GB, free: 4.855 MB / 362.7 MB Notification: Performance of simCode: created event and clocks part: time 2.515e-06/0.532, allocations: 0 / 0.5599 GB, free: 4.855 MB / 362.7 MB Notification: Performance of simCode: created simulation system equations: time 7.6e-05/0.5321, allocations: 70.25 kB / 0.56 GB, free: 4.852 MB / 362.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002702/0.5324, allocations: 38.64 kB / 0.56 GB, free: 4.84 MB / 362.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0008097/0.5332, allocations: 0.5282 MB / 0.5605 GB, free: 4.523 MB / 362.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001864/0.5334, allocations: 0.8098 MB / 0.5613 GB, free: 3.766 MB / 362.7 MB Notification: Performance of simCode: alias equations: time 7.495e-05/0.5335, allocations: 25.59 kB / 0.5614 GB, free: 3.746 MB / 362.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001117/0.5336, allocations: 119.5 kB / 0.5615 GB, free: 3.73 MB / 362.7 MB Notification: Performance of SimCode: time 2.4e-07/0.5336, allocations: 0 / 0.5615 GB, free: 3.73 MB / 362.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02156/0.5552, allocations: 3.824 MB / 0.5652 GB, free: 1.949 MB / 362.7 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001583/0.5554, allocations: 141.3 kB / 0.5653 GB, free: 1.754 MB / 362.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 1.827/2.382, allocations: 0 / 0.5653 GB, free: 1.754 MB / 362.7 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 & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator --tempDir=temp_SystemDynamics_SystemDynamics_IntroductoryExamples_Influenza_Flu_fmu --startTime=0 --stopTime=52 --timeout=50 --tolerance=1e-06 SystemDynamics_SystemDynamics_IntroductoryExamples_Influenza_Flu.fmu > SystemDynamics_SystemDynamics.IntroductoryExamples.Influenza.Flu.pipe 2>&1)