Running: ./testmodel.py --libraries=/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/converted-libraries/.openmodelica/libraries/ --ompython_omhome=/usr SystemDynamics_SystemDynamics.IntroductoryExamples.Sugar_Cane.conf.json loadFile("/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/converted-libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo", uses=false) loadFile("/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/converted-libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo", uses=false) loadFile("/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/converted-libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) loadFile("/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/converted-libraries/.openmodelica/libraries/SystemDynamics 2.1.1-master/package.mo", uses=false) Using package SystemDynamics with version 2.1.1 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/converted-libraries/.openmodelica/libraries/SystemDynamics 2.1.1-master/package.mo) Using package ModelicaServices with version 4.0.0 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/converted-libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo) Using package Modelica with version 4.0.0 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/converted-libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo) Using package Complex with version 4.0.0 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/converted-libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo) Running command: translateModel(SystemDynamics.IntroductoryExamples.Sugar_Cane,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="SystemDynamics_SystemDynamics.IntroductoryExamples.Sugar_Cane") translateModel(SystemDynamics.IntroductoryExamples.Sugar_Cane,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="SystemDynamics_SystemDynamics.IntroductoryExamples.Sugar_Cane") Notification: Performance of loadFile(/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/converted-libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.0009137/0.0009137, allocations: 177.9 kB / 15.43 MB, free: 5.762 MB / 13.93 MB Notification: Performance of loadFile(/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/converted-libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.26/1.26, allocations: 225.7 MB / 241.9 MB, free: 216 kB / 186.7 MB Notification: Performance of loadFile(/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/converted-libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.0007923/0.0007923, allocations: 90.84 kB / 293.1 MB, free: 12.85 MB / 234.7 MB Notification: Performance of loadFile(/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/converted-libraries/.openmodelica/libraries/SystemDynamics 2.1.1-master/package.mo): time 0.1549/0.1549, allocations: 28.83 MB / 373 MB, free: 12.76 MB / 314.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0002966/0.0002967, allocations: 10.69 kB / 441.2 MB, free: 69.54 MB / 330.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.07569/0.076, allocations: 57.49 MB / 498.7 MB, free: 11.93 MB / 330.7 MB Notification: Performance of NFInst.instantiate(SystemDynamics.IntroductoryExamples.Sugar_Cane): time 0.001561/0.07759, allocations: 1.629 MB / 0.4886 GB, free: 10.3 MB / 330.7 MB Notification: Performance of NFInst.instExpressions: time 0.0004422/0.07805, allocations: 306.8 kB / 0.4889 GB, free: 10 MB / 330.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001521/0.07821, allocations: 12 kB / 0.4889 GB, free: 9.988 MB / 330.7 MB Notification: Performance of NFTyping.typeComponents: time 0.000126/0.07835, allocations: 51.48 kB / 0.4889 GB, free: 9.938 MB / 330.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0001062/0.07846, allocations: 27.73 kB / 0.489 GB, free: 9.91 MB / 330.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002353/0.0787, allocations: 135.9 kB / 0.4891 GB, free: 9.777 MB / 330.7 MB Notification: Performance of NFFlatten.flatten: time 0.0002649/0.07898, allocations: 372.5 kB / 0.4895 GB, free: 9.41 MB / 330.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0003216/0.07931, allocations: 314 kB / 0.4898 GB, free: 9.094 MB / 330.7 MB Notification: Performance of NFEvalConstants.evaluate: time 5.439e-05/0.07937, allocations: 87.41 kB / 0.4898 GB, free: 9.008 MB / 330.7 MB Notification: Performance of NFSimplifyModel.simplify: time 8.542e-05/0.07946, allocations: 123 kB / 0.49 GB, free: 8.887 MB / 330.7 MB Notification: Performance of NFPackage.collectConstants: time 2.968e-05/0.0795, allocations: 8 kB / 0.49 GB, free: 8.879 MB / 330.7 MB Notification: Performance of NFFlatten.collectFunctions: time 2.041e-05/0.07952, allocations: 12 kB / 0.49 GB, free: 8.867 MB / 330.7 MB Notification: Performance of NFScalarize.scalarize: time 3.572e-05/0.07956, allocations: 55.64 kB / 0.49 GB, free: 8.812 MB / 330.7 MB Notification: Performance of NFVerifyModel.verify: time 7.607e-05/0.07965, allocations: 184.4 kB / 0.4902 GB, free: 8.625 MB / 330.7 MB Notification: Performance of NFConvertDAE.convert: time 0.000211/0.07986, allocations: 358.7 kB / 0.4905 GB, free: 8.273 MB / 330.7 MB Notification: Performance of FrontEnd - DAE generated: time 3.136e-06/0.07987, allocations: 0 / 0.4905 GB, free: 8.273 MB / 330.7 MB Notification: Performance of FrontEnd: time 1.142e-06/0.07988, allocations: 0 / 0.4905 GB, free: 8.273 MB / 330.7 MB Notification: Performance of Transformations before backend: time 5.38e-06/0.07989, allocations: 0 / 0.4905 GB, free: 8.273 MB / 330.7 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.0005554/0.08045, allocations: 0.6282 MB / 0.4912 GB, free: 7.594 MB / 330.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.044e-05/0.08049, allocations: 11.97 kB / 0.4912 GB, free: 7.582 MB / 330.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 6.028e-05/0.08056, allocations: 56.28 kB / 0.4912 GB, free: 7.527 MB / 330.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002929/0.08085, allocations: 332.1 kB / 0.4915 GB, free: 7.16 MB / 330.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.412e-05/0.08089, allocations: 41.69 kB / 0.4916 GB, free: 7.121 MB / 330.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 5.21e-05/0.08095, allocations: 52.38 kB / 0.4916 GB, free: 7.07 MB / 330.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0005285/0.08148, allocations: 488.7 kB / 0.4921 GB, free: 6.555 MB / 330.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.284e-05/0.0815, allocations: 192 / 0.4921 GB, free: 6.555 MB / 330.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.778e-05/0.08153, allocations: 23.94 kB / 0.4921 GB, free: 6.531 MB / 330.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 9.588e-06/0.08155, allocations: 20 kB / 0.4921 GB, free: 6.512 MB / 330.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0003354/0.08189, allocations: 251.8 kB / 0.4924 GB, free: 6.27 MB / 330.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.00128/0.08318, allocations: 1.747 MB / 0.4941 GB, free: 4.438 MB / 330.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.00037/0.08356, allocations: 210.8 kB / 0.4943 GB, free: 4.223 MB / 330.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 8.298e-05/0.08365, allocations: 64.84 kB / 0.4944 GB, free: 4.156 MB / 330.7 MB Notification: Performance of preOpt evalFunc (simulation): time 1.528e-05/0.08368, allocations: 0 / 0.4944 GB, free: 4.156 MB / 330.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.176e-05/0.08369, allocations: 34.5 kB / 0.4944 GB, free: 4.113 MB / 330.7 MB Notification: Performance of pre-optimization done (n=19): time 1.012e-06/0.0837, allocations: 0 / 0.4944 GB, free: 4.113 MB / 330.7 MB Notification: Performance of matching and sorting (n=19): time 0.000337/0.08404, allocations: 229.1 kB / 0.4946 GB, free: 3.883 MB / 330.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 2.22e-05/0.08407, allocations: 55.41 kB / 0.4947 GB, free: 3.816 MB / 330.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002417/0.08432, allocations: 341.7 kB / 0.495 GB, free: 3.469 MB / 330.7 MB Notification: Performance of collectPreVariables (initialization): time 1.16e-05/0.08434, allocations: 29.7 kB / 0.495 GB, free: 3.434 MB / 330.7 MB Notification: Performance of collectInitialEqns (initialization): time 9.616e-05/0.08444, allocations: 259.6 kB / 0.4953 GB, free: 3.176 MB / 330.7 MB Notification: Performance of collectInitialBindings (initialization): time 3.625e-05/0.08448, allocations: 71 kB / 0.4953 GB, free: 3.105 MB / 330.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 8.967e-06/0.0845, allocations: 4 kB / 0.4953 GB, free: 3.102 MB / 330.7 MB Notification: Performance of setup shared object (initialization): time 5.445e-05/0.08456, allocations: 350.7 kB / 0.4957 GB, free: 2.75 MB / 330.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 9.711e-05/0.08466, allocations: 55.97 kB / 0.4957 GB, free: 2.695 MB / 330.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001044/0.08477, allocations: 131.6 kB / 0.4958 GB, free: 2.539 MB / 330.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001948/0.08497, allocations: 194.4 kB / 0.496 GB, free: 2.324 MB / 330.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.014e-06/0.08498, allocations: 0 / 0.496 GB, free: 2.324 MB / 330.7 MB Notification: Performance of matching and sorting (n=31) (initialization): time 0.0002788/0.08527, allocations: 253 kB / 0.4963 GB, free: 2.07 MB / 330.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.24e-05/0.08529, allocations: 4 kB / 0.4963 GB, free: 2.066 MB / 330.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.561e-06/0.0853, allocations: 4 kB / 0.4963 GB, free: 2.062 MB / 330.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.311e-05/0.08532, allocations: 4 kB / 0.4963 GB, free: 2.059 MB / 330.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001679/0.08549, allocations: 47.91 kB / 0.4963 GB, free: 2.012 MB / 330.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.284e-06/0.0855, allocations: 4 kB / 0.4963 GB, free: 2.008 MB / 330.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 9.569e-05/0.0856, allocations: 35.53 kB / 0.4964 GB, free: 1.973 MB / 330.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.378e-05/0.08562, allocations: 12 kB / 0.4964 GB, free: 1.961 MB / 330.7 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.0001082/0.08574, allocations: 165.4 kB / 0.4965 GB, free: 1.793 MB / 330.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.04e-05/0.08578, allocations: 31.62 kB / 0.4966 GB, free: 1.762 MB / 330.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 4.871e-05/0.08584, allocations: 39.33 kB / 0.4966 GB, free: 1.727 MB / 330.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.545e-06/0.08585, allocations: 4 kB / 0.4966 GB, free: 1.723 MB / 330.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.847e-06/0.08585, allocations: 0 / 0.4966 GB, free: 1.723 MB / 330.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.038e-06/0.08586, allocations: 7.922 kB / 0.4966 GB, free: 1.715 MB / 330.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002905/0.08616, allocations: 401.2 kB / 0.497 GB, free: 1.273 MB / 330.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.322e-06/0.08617, allocations: 0 / 0.497 GB, free: 1.273 MB / 330.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001596/0.08633, allocations: 27.94 kB / 0.497 GB, free: 1.246 MB / 330.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.783e-06/0.08634, allocations: 0 / 0.497 GB, free: 1.246 MB / 330.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.533e-05/0.08636, allocations: 11.98 kB / 0.497 GB, free: 1.234 MB / 330.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.513e-06/0.08637, allocations: 4 kB / 0.497 GB, free: 1.23 MB / 330.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 9.72e-07/0.08637, allocations: 0 / 0.497 GB, free: 1.23 MB / 330.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003118/0.08669, allocations: 347 kB / 0.4974 GB, free: 0.875 MB / 330.7 MB Notification: Performance of postOpt removeConstants (simulation): time 4.185e-05/0.08674, allocations: 112.8 kB / 0.4975 GB, free: 0.7461 MB / 330.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.037e-05/0.08678, allocations: 7.922 kB / 0.4975 GB, free: 0.7383 MB / 330.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 9.874e-05/0.08688, allocations: 4 kB / 0.4975 GB, free: 0.7344 MB / 330.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 2.233e-05/0.08691, allocations: 11.98 kB / 0.4975 GB, free: 0.7227 MB / 330.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.445e-06/0.08693, allocations: 4 kB / 0.4975 GB, free: 0.7188 MB / 330.7 MB Notification: Performance of sorting global known variables: time 0.0001588/0.08709, allocations: 243.2 kB / 0.4977 GB, free: 496 kB / 330.7 MB Notification: Performance of sort global known variables: time 1.41e-07/0.0871, allocations: 0 / 0.4977 GB, free: 496 kB / 330.7 MB Notification: Performance of remove unused functions: time 0.0002628/0.08736, allocations: 75.56 kB / 0.4978 GB, free: 420 kB / 330.7 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 6.537e-05/0.08744, allocations: 107.7 kB / 0.4979 GB, free: 304 kB / 330.7 MB Notification: Performance of simCode: created initialization part: time 0.0002244/0.08767, allocations: 158.4 kB / 0.4981 GB, free: 148 kB / 330.7 MB Notification: Performance of simCode: created event and clocks part: time 1.562e-06/0.08768, allocations: 0.5 kB / 0.4981 GB, free: 148 kB / 330.7 MB Notification: Performance of simCode: created simulation system equations: time 7.856e-05/0.08776, allocations: 75.92 kB / 0.4981 GB, free: 72 kB / 330.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003686/0.08813, allocations: 50.47 kB / 0.4982 GB, free: 24 kB / 330.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001022/0.08917, allocations: 0.8528 MB / 0.499 GB, free: 15.14 MB / 346.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003186/0.0895, allocations: 0.8108 MB / 0.4998 GB, free: 14.3 MB / 346.7 MB Notification: Performance of simCode: alias equations: time 8.932e-05/0.0896, allocations: 34.95 kB / 0.4998 GB, free: 14.26 MB / 346.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 5.211e-05/0.08966, allocations: 27.44 kB / 0.4999 GB, free: 14.23 MB / 346.7 MB Notification: Performance of SimCode: time 2.41e-07/0.08966, allocations: 0 / 0.4999 GB, free: 14.23 MB / 346.7 MB Notification: Performance of Templates: time 0.004714/0.09438, allocations: 1.898 MB / 0.5017 GB, free: 12.34 MB / 346.7 MB make -j1 -f SystemDynamics_SystemDynamics.IntroductoryExamples.Sugar_Cane.makefile (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 & ./SystemDynamics_SystemDynamics.IntroductoryExamples.Sugar_Cane -abortSlowSimulation -alarm=480 -lv LOG_STATS > SystemDynamics_SystemDynamics.IntroductoryExamples.Sugar_Cane.pipe 2>&1)