Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr SystemDynamics_SystemDynamics.IntroductoryExamples.Sugar_Cane.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.Sugar_Cane,fileNamePrefix="SystemDynamics_SystemDynamics_IntroductoryExamples_Sugar_Cane",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(SystemDynamics.IntroductoryExamples.Sugar_Cane,fileNamePrefix="SystemDynamics_SystemDynamics_IntroductoryExamples_Sugar_Cane",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.005587/0.005588, allocations: 95.58 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.001591/0.001591, allocations: 205.8 kB / 16.68 MB, free: 5.973 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.418/1.418, allocations: 222.9 MB / 240.4 MB, free: 4.305 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/SystemDynamics 2.1.2-master/package.mo): time 0.2953/0.2953, allocations: 28.82 MB / 319.4 MB, free: 5.641 MB / 254.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001883/0.001883, allocations: 64.41 kB / 443.8 MB, free: 36.73 MB / 366.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.08411/0.08601, allocations: 56.43 MB / 0.4885 GB, free: 8.852 MB / 366.1 MB Notification: Performance of NFInst.instantiate(SystemDynamics.IntroductoryExamples.Sugar_Cane): time 0.002609/0.08865, allocations: 2.119 MB / 0.4906 GB, free: 7.176 MB / 366.1 MB Notification: Performance of NFInst.instExpressions: time 0.0006373/0.08932, allocations: 328.5 kB / 0.4909 GB, free: 6.902 MB / 366.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002004/0.08953, allocations: 9.938 kB / 0.4909 GB, free: 6.898 MB / 366.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001886/0.08973, allocations: 69.45 kB / 0.491 GB, free: 6.832 MB / 366.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001183/0.08987, allocations: 38.03 kB / 0.491 GB, free: 6.797 MB / 366.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002603/0.09014, allocations: 169.1 kB / 0.4912 GB, free: 6.652 MB / 366.1 MB Notification: Performance of NFFlatten.flatten: time 0.0003407/0.09049, allocations: 406 kB / 0.4915 GB, free: 6.398 MB / 366.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0003772/0.09087, allocations: 337.8 kB / 0.4919 GB, free: 6.172 MB / 366.1 MB Notification: Performance of NFEvalConstants.evaluate: time 9.817e-05/0.09098, allocations: 151.3 kB / 0.492 GB, free: 6.066 MB / 366.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001244/0.09111, allocations: 185.8 kB / 0.4922 GB, free: 5.91 MB / 366.1 MB Notification: Performance of NFPackage.collectConstants: time 5.963e-05/0.09117, allocations: 41.91 kB / 0.4922 GB, free: 5.91 MB / 366.1 MB Notification: Performance of NFFlatten.collectFunctions: time 5.151e-05/0.09123, allocations: 41.78 kB / 0.4923 GB, free: 5.91 MB / 366.1 MB Notification: Performance of NFScalarize.scalarize: time 5.742e-05/0.09129, allocations: 106 kB / 0.4924 GB, free: 5.82 MB / 366.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001063/0.09141, allocations: 210 kB / 0.4926 GB, free: 5.652 MB / 366.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0003552/0.09177, allocations: 441.3 kB / 0.493 GB, free: 5.309 MB / 366.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.937e-06/0.09178, allocations: 0 / 0.493 GB, free: 5.309 MB / 366.1 MB Notification: Performance of FrontEnd: time 1.263e-06/0.09179, allocations: 4 kB / 0.493 GB, free: 5.305 MB / 366.1 MB Notification: Performance of Transformations before backend: time 8.486e-06/0.0918, allocations: 0 / 0.493 GB, free: 5.305 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: 131 * Number of variables: 131 Notification: Performance of Generate backend data structure: time 0.0007328/0.09254, allocations: 0.7224 MB / 0.4937 GB, free: 4.668 MB / 366.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.647e-05/0.09258, allocations: 13.38 kB / 0.4937 GB, free: 4.664 MB / 366.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001053/0.0927, allocations: 109.4 kB / 0.4938 GB, free: 4.566 MB / 366.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 7.406e-05/0.09278, allocations: 66 kB / 0.4939 GB, free: 4.531 MB / 366.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003462/0.09313, allocations: 341.6 kB / 0.4942 GB, free: 4.203 MB / 366.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.09e-05/0.09317, allocations: 44.75 kB / 0.4943 GB, free: 4.18 MB / 366.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 5.77e-05/0.09323, allocations: 56.12 kB / 0.4943 GB, free: 4.16 MB / 366.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0005811/0.09382, allocations: 499.1 kB / 0.4948 GB, free: 3.781 MB / 366.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.663e-05/0.09385, allocations: 11.88 kB / 0.4948 GB, free: 3.77 MB / 366.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.967e-05/0.09388, allocations: 24 kB / 0.4948 GB, free: 3.746 MB / 366.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 9.958e-06/0.09389, allocations: 12 kB / 0.4948 GB, free: 3.734 MB / 366.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0003462/0.09425, allocations: 269 kB / 0.4951 GB, free: 3.469 MB / 366.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001332/0.09559, allocations: 1.761 MB / 0.4968 GB, free: 1.629 MB / 366.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003759/0.09598, allocations: 214.8 kB / 0.497 GB, free: 1.41 MB / 366.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 8.586e-05/0.09607, allocations: 60.84 kB / 0.4971 GB, free: 1.348 MB / 366.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.863e-05/0.0961, allocations: 4 kB / 0.4971 GB, free: 1.344 MB / 366.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.75e-05/0.09612, allocations: 34.5 kB / 0.4971 GB, free: 1.301 MB / 366.1 MB Notification: Performance of pre-optimization done (n=19): time 1.402e-06/0.09613, allocations: 0 / 0.4971 GB, free: 1.301 MB / 366.1 MB Notification: Performance of matching and sorting (n=19): time 0.0003562/0.09649, allocations: 239.6 kB / 0.4973 GB, free: 1.062 MB / 366.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 2.299e-05/0.09652, allocations: 51.41 kB / 0.4974 GB, free: 1 MB / 366.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002412/0.09677, allocations: 341.6 kB / 0.4977 GB, free: 0.6602 MB / 366.1 MB Notification: Performance of collectPreVariables (initialization): time 1.376e-05/0.09679, allocations: 33.7 kB / 0.4977 GB, free: 0.6211 MB / 366.1 MB Notification: Performance of collectInitialEqns (initialization): time 9.504e-05/0.09689, allocations: 276 kB / 0.498 GB, free: 356 kB / 366.1 MB Notification: Performance of collectInitialBindings (initialization): time 3.486e-05/0.09693, allocations: 71.33 kB / 0.4981 GB, free: 284 kB / 366.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 6.021e-05/0.097, allocations: 49.7 kB / 0.4981 GB, free: 228 kB / 366.1 MB Notification: Performance of setup shared object (initialization): time 0.0001369/0.09714, allocations: 342.8 kB / 0.4984 GB, free: 15.88 MB / 382.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.000104/0.09725, allocations: 63.98 kB / 0.4985 GB, free: 15.82 MB / 382.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001602/0.09742, allocations: 132.1 kB / 0.4986 GB, free: 15.66 MB / 382.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002898/0.09771, allocations: 195.5 kB / 0.4988 GB, free: 15.44 MB / 382.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.195e-06/0.09772, allocations: 0 / 0.4988 GB, free: 15.44 MB / 382.1 MB Notification: Performance of matching and sorting (n=31) (initialization): time 0.0004005/0.09813, allocations: 261.1 kB / 0.4991 GB, free: 15.18 MB / 382.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.574e-05/0.09815, allocations: 4 kB / 0.4991 GB, free: 15.18 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.574e-06/0.09817, allocations: 4 kB / 0.4991 GB, free: 15.17 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.823e-05/0.09819, allocations: 7.938 kB / 0.4991 GB, free: 15.16 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001908/0.09838, allocations: 39.92 kB / 0.4991 GB, free: 15.12 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.472e-06/0.0984, allocations: 4 kB / 0.4991 GB, free: 15.12 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001181/0.09852, allocations: 39.67 kB / 0.4992 GB, free: 15.08 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.725e-05/0.09855, allocations: 8 kB / 0.4992 GB, free: 15.07 MB / 382.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 9 * Number of states: 0 () * Number of discrete variables: 4 (Water_Inside.Integrator1.local_reset,Water_Outside.Integrator1.local_reset,Sucrose_Outside.Integrator1.local_reset,Sucrose_Inside.Integrator1.local_reset) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (31): * Single equations (assignments): 31 * 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.0001746/0.09873, allocations: 158 kB / 0.4993 GB, free: 14.91 MB / 382.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 6.086e-05/0.09879, allocations: 39.75 kB / 0.4994 GB, free: 14.87 MB / 382.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 7.588e-05/0.09888, allocations: 35.33 kB / 0.4994 GB, free: 14.83 MB / 382.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.901e-06/0.09889, allocations: 7.875 kB / 0.4994 GB, free: 14.82 MB / 382.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.817e-06/0.0989, allocations: 0 / 0.4994 GB, free: 14.82 MB / 382.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.546e-06/0.09891, allocations: 4 kB / 0.4994 GB, free: 14.82 MB / 382.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0004727/0.09938, allocations: 405.3 kB / 0.4998 GB, free: 14.38 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.487e-06/0.0994, allocations: 3.984 kB / 0.4998 GB, free: 14.37 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001868/0.09959, allocations: 31.94 kB / 0.4998 GB, free: 14.34 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 4.418e-06/0.0996, allocations: 7.984 kB / 0.4998 GB, free: 14.33 MB / 382.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.719e-05/0.09963, allocations: 4 kB / 0.4998 GB, free: 14.33 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 5.871e-06/0.09964, allocations: 7.922 kB / 0.4998 GB, free: 14.32 MB / 382.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.855e-06/0.09964, allocations: 4 kB / 0.4998 GB, free: 14.32 MB / 382.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0004734/0.1001, allocations: 350.2 kB / 0.5002 GB, free: 13.96 MB / 382.1 MB Notification: Performance of postOpt removeConstants (simulation): time 9.727e-05/0.1002, allocations: 112.9 kB / 0.5003 GB, free: 13.83 MB / 382.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.189e-05/0.1003, allocations: 0 / 0.5003 GB, free: 13.83 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001091/0.1004, allocations: 11.88 kB / 0.5003 GB, free: 13.82 MB / 382.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 2.495e-05/0.1004, allocations: 15.98 kB / 0.5003 GB, free: 13.8 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.261e-05/0.1004, allocations: 8 kB / 0.5003 GB, free: 13.8 MB / 382.1 MB Notification: Performance of sorting global known variables: time 0.0002577/0.1007, allocations: 239.2 kB / 0.5005 GB, free: 13.57 MB / 382.1 MB Notification: Performance of sort global known variables: time 1.4e-07/0.1007, allocations: 0 / 0.5005 GB, free: 13.57 MB / 382.1 MB Notification: Performance of remove unused functions: time 0.000334/0.101, allocations: 75.69 kB / 0.5006 GB, free: 13.5 MB / 382.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * Number of states: 4 (Sucrose_Inside.Integrator1.y,Sucrose_Outside.Integrator1.y,Water_Outside.Integrator1.y,Water_Inside.Integrator1.y) * 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 (19): * Single equations (assignments): 19 * 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.0007928/0.1018, allocations: 0.8881 MB / 0.5015 GB, free: 12.58 MB / 382.1 MB Notification: Performance of simCode: created initialization part: time 0.0003168/0.1022, allocations: 163.8 kB / 0.5016 GB, free: 12.42 MB / 382.1 MB Notification: Performance of simCode: created event and clocks part: time 2.525e-06/0.1022, allocations: 3.938 kB / 0.5016 GB, free: 12.41 MB / 382.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0001125/0.1023, allocations: 74.5 kB / 0.5017 GB, free: 12.34 MB / 382.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004301/0.1027, allocations: 49.28 kB / 0.5018 GB, free: 12.29 MB / 382.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003874/0.1066, allocations: 3.192 MB / 0.5049 GB, free: 8.973 MB / 382.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004561/0.1071, allocations: 0.8145 MB / 0.5057 GB, free: 8.133 MB / 382.1 MB Notification: Performance of simCode: alias equations: time 0.0001014/0.1072, allocations: 34.95 kB / 0.5057 GB, free: 8.098 MB / 382.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001965/0.1074, allocations: 147.4 kB / 0.5059 GB, free: 7.953 MB / 382.1 MB Notification: Performance of SimCode: time 5.72e-07/0.1074, allocations: 3.938 kB / 0.5059 GB, free: 7.949 MB / 382.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.5939/0.7014, allocations: 5.788 MB / 0.5115 GB, free: 2.238 MB / 382.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 13.83/14.53, allocations: 18.25 kB / 0.5115 GB, free: 2.227 MB / 382.1 MB (rm -f SystemDynamics_SystemDynamics.IntroductoryExamples.Sugar_Cane.pipe ; mkfifo SystemDynamics_SystemDynamics.IntroductoryExamples.Sugar_Cane.pipe ; head -c 1048576 < SystemDynamics_SystemDynamics.IntroductoryExamples.Sugar_Cane.pipe >> ../files/SystemDynamics_SystemDynamics.IntroductoryExamples.Sugar_Cane.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator --tempDir=temp_SystemDynamics_SystemDynamics_IntroductoryExamples_Sugar_Cane_fmu --startTime=0 --stopTime=20 --timeout=50 --tolerance=1e-06 SystemDynamics_SystemDynamics_IntroductoryExamples_Sugar_Cane.fmu > SystemDynamics_SystemDynamics.IntroductoryExamples.Sugar_Cane.pipe 2>&1)