Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr IDEAS_IDEAS.Fluid.Sources.Examples.TraceSubstancesFlowSource.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/IDEAS 3.0.0/package.mo", uses=false) Using package IDEAS with version 3.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/IDEAS 3.0.0/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: translateModel(IDEAS.Fluid.Sources.Examples.TraceSubstancesFlowSource,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="IDEAS_IDEAS.Fluid.Sources.Examples.TraceSubstancesFlowSource") translateModel(IDEAS.Fluid.Sources.Examples.TraceSubstancesFlowSource,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="IDEAS_IDEAS.Fluid.Sources.Examples.TraceSubstancesFlowSource") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.00721/0.00721, allocations: 95.42 kB / 15.73 MB, free: 6.039 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.001689/0.001689, allocations: 205.2 kB / 16.68 MB, free: 5.969 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.351/1.351, allocations: 222.9 MB / 240.4 MB, free: 4.324 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/IDEAS 3.0.0/package.mo): time 0.74/0.74, allocations: 132.2 MB / 422.7 MB, free: 1.695 MB / 350.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001123/0.001123, allocations: 62.92 kB / 0.5814 GB, free: 0.8438 MB / 430.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1972/0.1983, allocations: 80.21 MB / 0.6597 GB, free: 13.5 MB / 0.4981 GB Notification: Performance of NFInst.instantiate(IDEAS.Fluid.Sources.Examples.TraceSubstancesFlowSource): time 0.7735/0.9719, allocations: 305.1 MB / 0.9576 GB, free: 15.11 MB / 0.6856 GB Notification: Performance of NFInst.instExpressions: time 0.04177/1.014, allocations: 25.79 MB / 0.9828 GB, free: 5.25 MB / 0.7012 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.005513/1.019, allocations: 127.2 kB / 0.9829 GB, free: 5.125 MB / 0.7012 GB Notification: Performance of NFTyping.typeComponents: time 0.006021/1.025, allocations: 1.794 MB / 0.9847 GB, free: 3.32 MB / 0.7012 GB Notification: Performance of NFTyping.typeBindings: time 0.0188/1.044, allocations: 5.951 MB / 0.9905 GB, free: 13.34 MB / 0.7169 GB Notification: Performance of NFTyping.typeClassSections: time 0.008854/1.053, allocations: 2.632 MB / 0.9931 GB, free: 10.73 MB / 0.7169 GB Notification: Performance of NFFlatten.flatten: time 0.01646/1.07, allocations: 8.903 MB / 1.002 GB, free: 1.812 MB / 0.7169 GB Notification: Performance of NFFlatten.resolveConnections: time 0.007164/1.077, allocations: 3.63 MB / 1.005 GB, free: 14.1 MB / 0.7325 GB Notification: Performance of NFEvalConstants.evaluate: time 0.01185/1.089, allocations: 4.153 MB / 1.009 GB, free: 9.984 MB / 0.7325 GB Notification: Performance of NFSimplifyModel.simplify: time 0.006106/1.095, allocations: 2.953 MB / 1.012 GB, free: 7.035 MB / 0.7325 GB Notification: Performance of NFPackage.collectConstants: time 0.001738/1.097, allocations: 360 kB / 1.013 GB, free: 6.684 MB / 0.7325 GB Notification: Performance of NFFlatten.collectFunctions: time 0.01105/1.108, allocations: 4.603 MB / 1.017 GB, free: 2.07 MB / 0.7325 GB Notification: Performance of NFScalarize.scalarize: time 0.003243/1.111, allocations: 1.64 MB / 1.019 GB, free: 436 kB / 0.7325 GB Notification: Performance of NFVerifyModel.verify: time 0.00598/1.117, allocations: 2.131 MB / 1.021 GB, free: 14.29 MB / 0.7481 GB Notification: Performance of NFConvertDAE.convert: time 0.02045/1.137, allocations: 6.794 MB / 1.027 GB, free: 7.469 MB / 0.7481 GB Notification: Performance of FrontEnd - DAE generated: time 1.012e-05/1.137, allocations: 0 / 1.027 GB, free: 7.469 MB / 0.7481 GB Notification: Performance of FrontEnd: time 1.593e-06/1.137, allocations: 0 / 1.027 GB, free: 7.469 MB / 0.7481 GB Notification: Performance of Transformations before backend: time 0.0003892/1.138, allocations: 0 / 1.027 GB, free: 7.469 MB / 0.7481 GB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 693 * Number of variables: 693 Notification: Performance of Generate backend data structure: time 0.01389/1.152, allocations: 4.295 MB / 1.032 GB, free: 3.098 MB / 0.7481 GB Notification: Performance of prepare preOptimizeDAE: time 4.932e-05/1.152, allocations: 12.03 kB / 1.032 GB, free: 3.086 MB / 0.7481 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.006568/1.158, allocations: 0.9537 MB / 1.033 GB, free: 2.129 MB / 0.7481 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.004858/1.163, allocations: 2.415 MB / 1.035 GB, free: 15.64 MB / 0.7637 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002465/1.164, allocations: 285.2 kB / 1.035 GB, free: 15.35 MB / 0.7637 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0004784/1.164, allocations: 292 kB / 1.035 GB, free: 15.06 MB / 0.7637 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.005554/1.17, allocations: 3.352 MB / 1.039 GB, free: 11.62 MB / 0.7637 GB Notification: Performance of preOpt findStateOrder (simulation): time 5.543e-05/1.17, allocations: 3.938 kB / 1.039 GB, free: 11.62 MB / 0.7637 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0002519/1.17, allocations: 120 kB / 1.039 GB, free: 11.5 MB / 0.7637 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001075/1.17, allocations: 109.3 kB / 1.039 GB, free: 11.39 MB / 0.7637 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.004345/1.174, allocations: 2.785 MB / 1.042 GB, free: 8.598 MB / 0.7637 GB Warning: The model contains alias variables with redundant start and/or conflicting nominal values. It is recommended to resolve the conflicts, because otherwise the system could be hard to solve. To print the conflicting alias sets and the chosen candidates please use -d=aliasConflicts. Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.01604/1.19, allocations: 13.27 MB / 1.055 GB, free: 10.15 MB / 0.7794 GB Notification: Performance of preOpt comSubExp (simulation): time 0.002538/1.193, allocations: 1.824 MB / 1.056 GB, free: 8.32 MB / 0.7794 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.001512/1.195, allocations: 1.106 MB / 1.057 GB, free: 7.215 MB / 0.7794 GB Notification: Performance of preOpt evalFunc (simulation): time 0.000472/1.195, allocations: 325.2 kB / 1.058 GB, free: 6.844 MB / 0.7794 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 6.004e-05/1.195, allocations: 56.56 kB / 1.058 GB, free: 6.777 MB / 0.7794 GB Notification: Performance of pre-optimization done (n=182): time 3.467e-06/1.195, allocations: 0 / 1.058 GB, free: 6.777 MB / 0.7794 GB Notification: Performance of matching and sorting (n=182): time 0.00506/1.2, allocations: 2.736 MB / 1.061 GB, free: 4.039 MB / 0.7794 GB Notification: Performance of inlineWhenForInitialization (initialization): time 7.099e-05/1.2, allocations: 73.41 kB / 1.061 GB, free: 3.957 MB / 0.7794 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.003022/1.203, allocations: 1.994 MB / 1.063 GB, free: 1.945 MB / 0.7794 GB Notification: Performance of collectPreVariables (initialization): time 0.0002564/1.204, allocations: 73.7 kB / 1.063 GB, free: 1.867 MB / 0.7794 GB Notification: Performance of collectInitialEqns (initialization): time 0.001012/1.205, allocations: 1.425 MB / 1.064 GB, free: 440 kB / 0.7794 GB Notification: Performance of collectInitialBindings (initialization): time 0.0006718/1.205, allocations: 0.6818 MB / 1.065 GB, free: 15.74 MB / 0.795 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0005644/1.206, allocations: 391.4 kB / 1.065 GB, free: 15.35 MB / 0.795 GB Notification: Performance of setup shared object (initialization): time 9.8e-05/1.206, allocations: 308.9 kB / 1.065 GB, free: 15.05 MB / 0.795 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001251/1.207, allocations: 0.8052 MB / 1.066 GB, free: 14.23 MB / 0.795 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001714/1.209, allocations: 1.431 MB / 1.068 GB, free: 12.53 MB / 0.795 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.003024/1.212, allocations: 2.252 MB / 1.07 GB, free: 10.09 MB / 0.795 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.055e-05/1.212, allocations: 4 kB / 1.07 GB, free: 10.09 MB / 0.795 GB Notification: Performance of matching and sorting (n=257) (initialization): time 0.004334/1.216, allocations: 2.503 MB / 1.072 GB, free: 7.578 MB / 0.795 GB Notification: Performance of prepare postOptimizeDAE: time 3.273e-05/1.216, allocations: 10.03 kB / 1.072 GB, free: 7.57 MB / 0.795 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.323e-05/1.216, allocations: 20.16 kB / 1.072 GB, free: 7.551 MB / 0.795 GB Notification: Performance of postOpt tearingSystem (initialization): time 4.049e-05/1.216, allocations: 20 kB / 1.072 GB, free: 7.531 MB / 0.795 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.002506/1.219, allocations: 0.55 MB / 1.073 GB, free: 6.98 MB / 0.795 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.00225/1.221, allocations: 4.161 MB / 1.077 GB, free: 2.656 MB / 0.795 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002927/1.224, allocations: 226.4 kB / 1.077 GB, free: 2.434 MB / 0.795 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.000289/1.225, allocations: 87.98 kB / 1.077 GB, free: 2.348 MB / 0.795 GB Notification: Performance of preBalanceInitialSystem (initialization_lambda0): time 0.002817/1.227, allocations: 1.468 MB / 1.079 GB, free: 0.8711 MB / 0.795 GB Notification: Performance of partitionIndependentBlocks (initialization_lambda0): time 0.001885/1.229, allocations: 1.424 MB / 1.08 GB, free: 15.18 MB / 0.8106 GB Notification: Performance of analyzeInitialSystem (initialization_lambda0): time 0.003841/1.233, allocations: 2.233 MB / 1.082 GB, free: 12.77 MB / 0.8106 GB Notification: Performance of solveInitialSystemEqSystem (initialization_lambda0): time 2.295e-05/1.233, allocations: 4 kB / 1.082 GB, free: 12.77 MB / 0.8106 GB Notification: Performance of matching and sorting (n=257) (initialization_lambda0): time 0.005316/1.238, allocations: 2.48 MB / 1.085 GB, free: 10.28 MB / 0.8106 GB Notification: Performance of prepare postOptimizeDAE: time 2.325e-05/1.239, allocations: 16.22 kB / 1.085 GB, free: 10.27 MB / 0.8106 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.403e-05/1.239, allocations: 15.98 kB / 1.085 GB, free: 10.25 MB / 0.8106 GB Notification: Performance of postOpt tearingSystem (initialization): time 2.727e-05/1.239, allocations: 24 kB / 1.085 GB, free: 10.23 MB / 0.8106 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001732/1.24, allocations: 471.3 kB / 1.085 GB, free: 9.766 MB / 0.8106 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 4.215e-05/1.24, allocations: 27.94 kB / 1.085 GB, free: 9.738 MB / 0.8106 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.00261/1.243, allocations: 198.6 kB / 1.085 GB, free: 9.547 MB / 0.8106 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001858/1.243, allocations: 87.98 kB / 1.085 GB, free: 9.461 MB / 0.8106 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 59 * 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 (257): * Single equations (assignments): 250 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 7 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Equation system details (not torn): * Constant Jacobian (size): 0 systems * Linear Jacobian (size,density): 0 systems * Non-linear Jacobian (size): 7 systems {1, 1, 1, 1, 1, 1, 1} * Without analytic Jacobian (size): 0 systems Notification: Performance of prepare postOptimizeDAE: time 0.0005102/1.244, allocations: 315.6 kB / 1.086 GB, free: 9.145 MB / 0.8106 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0007363/1.244, allocations: 286.2 kB / 1.086 GB, free: 8.863 MB / 0.8106 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.003539/1.248, allocations: 2.103 MB / 1.088 GB, free: 6.742 MB / 0.8106 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.425e-05/1.248, allocations: 20 kB / 1.088 GB, free: 6.723 MB / 0.8106 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.624e-06/1.248, allocations: 0 / 1.088 GB, free: 6.723 MB / 0.8106 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.002501/1.251, allocations: 1.875 MB / 1.09 GB, free: 4.801 MB / 0.8106 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.008306/1.259, allocations: 5.162 MB / 1.095 GB, free: 15.53 MB / 0.8262 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.079e-05/1.259, allocations: 8.062 kB / 1.095 GB, free: 15.52 MB / 0.8262 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.002207/1.261, allocations: 0.4993 MB / 1.095 GB, free: 15.02 MB / 0.8262 GB Notification: Performance of postOpt tearingSystem (simulation): time 2.43e-05/1.261, allocations: 8 kB / 1.095 GB, free: 15.02 MB / 0.8262 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001341/1.261, allocations: 59.91 kB / 1.095 GB, free: 14.96 MB / 0.8262 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001875/1.263, allocations: 4.122 MB / 1.099 GB, free: 10.67 MB / 0.8262 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.181e-06/1.263, allocations: 7.938 kB / 1.099 GB, free: 10.66 MB / 0.8262 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.004811/1.268, allocations: 3.372 MB / 1.103 GB, free: 7.238 MB / 0.8262 GB Notification: Performance of postOpt removeConstants (simulation): time 0.001417/1.269, allocations: 0.581 MB / 1.103 GB, free: 6.637 MB / 0.8262 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.000584/1.27, allocations: 44 kB / 1.103 GB, free: 6.594 MB / 0.8262 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.002036/1.272, allocations: 82.73 kB / 1.103 GB, free: 6.516 MB / 0.8262 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002208/1.272, allocations: 121.7 kB / 1.104 GB, free: 6.398 MB / 0.8262 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.000173/1.273, allocations: 75.95 kB / 1.104 GB, free: 6.324 MB / 0.8262 GB Notification: Performance of sorting global known variables: time 0.002568/1.275, allocations: 1.33 MB / 1.105 GB, free: 4.984 MB / 0.8262 GB Notification: Performance of sort global known variables: time 1.71e-07/1.275, allocations: 0 / 1.105 GB, free: 4.984 MB / 0.8262 GB Notification: Performance of remove unused functions: time 0.006618/1.282, allocations: 1.731 MB / 1.107 GB, free: 3.25 MB / 0.8262 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 13 * Number of states: 20 (vol.dynBal.U,vol.dynBal.m,vol.dynBal.mXi[1],vol.dynBal.mC[1],vol1.dynBal.U,vol1.dynBal.m,vol1.dynBal.mXi[1],vol1.dynBal.mC[1],vol2.dynBal.U,vol2.dynBal.m,vol2.dynBal.mXi[1],vol2.dynBal.mC[1],vol3.dynBal.U,vol3.dynBal.m,vol3.dynBal.mXi[1],vol3.dynBal.mC[1],vol4.dynBal.U,vol4.dynBal.m,vol4.dynBal.mXi[1],vol4.dynBal.mC[1]) * 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 (182): * Single equations (assignments): 175 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 7 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Equation system details (not torn): * Constant Jacobian (size): 0 systems * Linear Jacobian (size,density): 0 systems * Non-linear Jacobian (size): 7 systems {1, 1, 1, 1, 1, 1, 1} * Without analytic Jacobian (size): 0 systems Notification: Performance of Backend phase and start with SimCode phase: time 0.0008973/1.283, allocations: 352 kB / 1.107 GB, free: 2.91 MB / 0.8262 GB Notification: Performance of simCode: created initialization part: time 0.006674/1.289, allocations: 3.314 MB / 1.11 GB, free: 15.6 MB / 0.8419 GB Notification: Performance of simCode: created event and clocks part: time 1.134e-05/1.289, allocations: 4 kB / 1.11 GB, free: 15.6 MB / 0.8419 GB Notification: Performance of simCode: created simulation system equations: time 0.001831/1.291, allocations: 1.02 MB / 1.111 GB, free: 14.58 MB / 0.8419 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.007806/1.299, allocations: 1.543 MB / 1.113 GB, free: 13.09 MB / 0.8419 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01117/1.31, allocations: 6.591 MB / 1.119 GB, free: 6.441 MB / 0.8419 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.002494/1.313, allocations: 2.193 MB / 1.121 GB, free: 4.219 MB / 0.8419 GB Notification: Performance of simCode: alias equations: time 0.003894/1.317, allocations: 1.092 MB / 1.122 GB, free: 3.121 MB / 0.8419 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.000866/1.318, allocations: 215.4 kB / 1.123 GB, free: 2.91 MB / 0.8419 GB Notification: Performance of SimCode: time 1.112e-06/1.318, allocations: 0 / 1.123 GB, free: 2.91 MB / 0.8419 GB Notification: Performance of Templates: time 0.4171/1.735, allocations: 54.9 MB / 1.176 GB, free: 343.8 MB / 0.8575 GB make -j1 -f IDEAS_IDEAS.Fluid.Sources.Examples.TraceSubstancesFlowSource.makefile (rm -f IDEAS_IDEAS.Fluid.Sources.Examples.TraceSubstancesFlowSource.pipe ; mkfifo IDEAS_IDEAS.Fluid.Sources.Examples.TraceSubstancesFlowSource.pipe ; head -c 1048576 < IDEAS_IDEAS.Fluid.Sources.Examples.TraceSubstancesFlowSource.pipe >> ../files/IDEAS_IDEAS.Fluid.Sources.Examples.TraceSubstancesFlowSource.sim & ./IDEAS_IDEAS.Fluid.Sources.Examples.TraceSubstancesFlowSource -abortSlowSimulation -alarm=480 -lv LOG_STATS > IDEAS_IDEAS.Fluid.Sources.Examples.TraceSubstancesFlowSource.pipe 2>&1)