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: "" <> buildModelFMU(IDEAS.Fluid.Sources.Examples.TraceSubstancesFlowSource,fileNamePrefix="IDEAS_IDEAS_Fluid_Sources_Examples_TraceSubstancesFlowSource",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(IDEAS.Fluid.Sources.Examples.TraceSubstancesFlowSource,fileNamePrefix="IDEAS_IDEAS_Fluid_Sources_Examples_TraceSubstancesFlowSource",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.0008/0.0008001, allocations: 89.97 kB / 15.36 MB, free: 0.7383 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.004863/0.004864, allocations: 174.1 kB / 16.26 MB, free: 6.273 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.33/1.33, allocations: 223.2 MB / 240.3 MB, free: 5.355 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/IDEAS 3.0.0/package.mo): time 0.7726/0.7726, allocations: 132.3 MB / 423.8 MB, free: 1.961 MB / 350.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0003408/0.0003411, allocations: 8 kB / 0.5041 GB, free: 3.773 MB / 366.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3652/0.3655, allocations: 81.57 MB / 0.5837 GB, free: 4.027 MB / 430.1 MB Notification: Performance of NFInst.instantiate(IDEAS.Fluid.Sources.Examples.TraceSubstancesFlowSource): time 0.594/0.9596, allocations: 298.7 MB / 0.8755 GB, free: 1.898 MB / 0.6387 GB Notification: Performance of NFInst.instExpressions: time 0.02644/0.9861, allocations: 25.7 MB / 0.9006 GB, free: 1.367 MB / 0.6387 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.003326/0.9895, allocations: 106 kB / 0.9007 GB, free: 1.367 MB / 0.6387 GB Notification: Performance of NFTyping.typeComponents: time 0.003432/0.9929, allocations: 1.536 MB / 0.9022 GB, free: 1.344 MB / 0.6387 GB Notification: Performance of NFTyping.typeBindings: time 0.01252/1.005, allocations: 5.618 MB / 0.9077 GB, free: 1.043 MB / 0.6387 GB Notification: Performance of NFTyping.typeClassSections: time 0.005809/1.011, allocations: 2.368 MB / 0.91 GB, free: 0.9766 MB / 0.6387 GB Notification: Performance of NFFlatten.flatten: time 0.0134/1.025, allocations: 12.51 MB / 0.9222 GB, free: 15.63 MB / 0.6544 GB Notification: Performance of NFFlatten.resolveConnections: time 0.003773/1.028, allocations: 2.986 MB / 0.9251 GB, free: 14.56 MB / 0.6544 GB Notification: Performance of NFEvalConstants.evaluate: time 0.008971/1.037, allocations: 3.574 MB / 0.9286 GB, free: 14.01 MB / 0.6544 GB Notification: Performance of NFSimplifyModel.simplify: time 0.004891/1.042, allocations: 2.931 MB / 0.9315 GB, free: 13.49 MB / 0.6544 GB Notification: Performance of NFPackage.collectConstants: time 0.0003784/1.043, allocations: 153.9 kB / 0.9316 GB, free: 13.49 MB / 0.6544 GB Notification: Performance of NFFlatten.collectFunctions: time 0.00871/1.051, allocations: 5.275 MB / 0.9368 GB, free: 12.38 MB / 0.6544 GB Notification: Performance of NFScalarize.scalarize: time 0.001403/1.053, allocations: 1.416 MB / 0.9381 GB, free: 11.93 MB / 0.6544 GB Notification: Performance of NFVerifyModel.verify: time 0.002658/1.056, allocations: 1.884 MB / 0.94 GB, free: 10.21 MB / 0.6544 GB Notification: Performance of NFConvertDAE.convert: time 0.01108/1.067, allocations: 6.757 MB / 0.9466 GB, free: 3.891 MB / 0.6544 GB Notification: Performance of FrontEnd - DAE generated: time 3.666e-06/1.067, allocations: 0 / 0.9466 GB, free: 3.891 MB / 0.6544 GB Notification: Performance of FrontEnd: time 1.753e-06/1.067, allocations: 4 kB / 0.9466 GB, free: 3.887 MB / 0.6544 GB Notification: Performance of Transformations before backend: time 9.521e-05/1.067, allocations: 0 / 0.9466 GB, free: 3.887 MB / 0.6544 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.005305/1.072, allocations: 3.43 MB / 0.9499 GB, free: 448 kB / 0.6544 GB Notification: Performance of prepare preOptimizeDAE: time 3.758e-05/1.072, allocations: 8.031 kB / 0.9499 GB, free: 440 kB / 0.6544 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0004624/1.073, allocations: 394.7 kB / 0.9503 GB, free: 40 kB / 0.6544 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.005054/1.078, allocations: 0.9424 MB / 0.9512 GB, free: 15.1 MB / 0.67 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.003387/1.081, allocations: 2.262 MB / 0.9535 GB, free: 12.88 MB / 0.67 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002148/1.081, allocations: 280.3 kB / 0.9537 GB, free: 12.6 MB / 0.67 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0003698/1.082, allocations: 288 kB / 0.954 GB, free: 12.32 MB / 0.67 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.004885/1.087, allocations: 3.359 MB / 0.9573 GB, free: 8.879 MB / 0.67 GB Notification: Performance of preOpt findStateOrder (simulation): time 5.094e-05/1.087, allocations: 7.281 kB / 0.9573 GB, free: 8.875 MB / 0.67 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0002315/1.087, allocations: 114.1 kB / 0.9574 GB, free: 8.766 MB / 0.67 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 9.685e-05/1.087, allocations: 113.3 kB / 0.9575 GB, free: 8.652 MB / 0.67 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.003982/1.091, allocations: 2.795 MB / 0.9602 GB, free: 5.855 MB / 0.67 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.01347/1.104, allocations: 13.22 MB / 0.9731 GB, free: 7.715 MB / 0.6856 GB Notification: Performance of preOpt comSubExp (simulation): time 0.002301/1.107, allocations: 1.831 MB / 0.9749 GB, free: 5.902 MB / 0.6856 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.001365/1.108, allocations: 1.102 MB / 0.976 GB, free: 4.797 MB / 0.6856 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0004083/1.109, allocations: 327.9 kB / 0.9763 GB, free: 4.426 MB / 0.6856 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.119e-05/1.109, allocations: 60.55 kB / 0.9764 GB, free: 4.359 MB / 0.6856 GB Notification: Performance of pre-optimization done (n=182): time 4.068e-06/1.109, allocations: 0 / 0.9764 GB, free: 4.359 MB / 0.6856 GB Notification: Performance of matching and sorting (n=182): time 0.004424/1.113, allocations: 2.73 MB / 0.979 GB, free: 1.625 MB / 0.6856 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.462e-05/1.113, allocations: 69.41 kB / 0.9791 GB, free: 1.543 MB / 0.6856 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.002289/1.115, allocations: 2.001 MB / 0.9811 GB, free: 15.52 MB / 0.7012 GB Notification: Performance of collectPreVariables (initialization): time 0.000174/1.116, allocations: 69.7 kB / 0.9811 GB, free: 15.45 MB / 0.7012 GB Notification: Performance of collectInitialEqns (initialization): time 0.0009283/1.117, allocations: 1.412 MB / 0.9825 GB, free: 14.03 MB / 0.7012 GB Notification: Performance of collectInitialBindings (initialization): time 0.0005309/1.117, allocations: 0.6396 MB / 0.9831 GB, free: 13.39 MB / 0.7012 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001998/1.117, allocations: 173.6 kB / 0.9833 GB, free: 13.21 MB / 0.7012 GB Notification: Performance of setup shared object (initialization): time 8.562e-05/1.117, allocations: 301.1 kB / 0.9836 GB, free: 12.92 MB / 0.7012 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.00113/1.119, allocations: 0.7965 MB / 0.9844 GB, free: 12.12 MB / 0.7012 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001553/1.12, allocations: 1.435 MB / 0.9858 GB, free: 10.43 MB / 0.7012 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.002734/1.123, allocations: 2.262 MB / 0.988 GB, free: 8.035 MB / 0.7012 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 8.395e-06/1.123, allocations: 4 kB / 0.988 GB, free: 8.031 MB / 0.7012 GB Notification: Performance of matching and sorting (n=257) (initialization): time 0.003623/1.126, allocations: 2.486 MB / 0.9904 GB, free: 5.613 MB / 0.7012 GB Notification: Performance of prepare postOptimizeDAE: time 0.0002783/1.127, allocations: 0.491 MB / 0.9909 GB, free: 4.941 MB / 0.7012 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.699e-05/1.127, allocations: 12 kB / 0.9909 GB, free: 4.93 MB / 0.7012 GB Notification: Performance of postOpt tearingSystem (initialization): time 3.955e-05/1.127, allocations: 24 kB / 0.9909 GB, free: 4.906 MB / 0.7012 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.002276/1.129, allocations: 0.5585 MB / 0.9915 GB, free: 4.379 MB / 0.7012 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.00196/1.131, allocations: 4.155 MB / 0.9955 GB, free: 80 kB / 0.7012 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002821/1.134, allocations: 371.4 kB / 0.9959 GB, free: 15.71 MB / 0.7169 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001636/1.134, allocations: 87.98 kB / 0.996 GB, free: 15.63 MB / 0.7169 GB Notification: Performance of prepare postOptimizeDAE: time 8.015e-06/1.134, allocations: 4 kB / 0.996 GB, free: 15.62 MB / 0.7169 GB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.00316/1.137, allocations: 2.218 MB / 0.9981 GB, free: 13.49 MB / 0.7169 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.953e-05/1.137, allocations: 12 kB / 0.9981 GB, free: 13.48 MB / 0.7169 GB Notification: Performance of postOpt tearingSystem (initialization): time 2.141e-05/1.137, allocations: 24 kB / 0.9982 GB, free: 13.45 MB / 0.7169 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001572/1.139, allocations: 471.4 kB / 0.9986 GB, free: 13.02 MB / 0.7169 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 3.636e-05/1.139, allocations: 33.7 kB / 0.9986 GB, free: 13 MB / 0.7169 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002819/1.142, allocations: 346.5 kB / 0.999 GB, free: 12.66 MB / 0.7169 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001457/1.142, allocations: 83.98 kB / 0.9991 GB, free: 12.58 MB / 0.7169 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.001388/1.143, allocations: 0.8591 MB / 0.9999 GB, free: 11.73 MB / 0.7169 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0005806/1.144, allocations: 273.3 kB / 1 GB, free: 11.46 MB / 0.7169 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.003346/1.147, allocations: 2.105 MB / 1.002 GB, free: 9.348 MB / 0.7169 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.432e-05/1.147, allocations: 16 kB / 1.002 GB, free: 9.332 MB / 0.7169 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 9.228e-06/1.147, allocations: 4 kB / 1.002 GB, free: 9.328 MB / 0.7169 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.002456/1.15, allocations: 1.893 MB / 1.004 GB, free: 7.391 MB / 0.7169 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.008175/1.158, allocations: 5.161 MB / 1.009 GB, free: 2.195 MB / 0.7169 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 9.508e-06/1.158, allocations: 4 kB / 1.009 GB, free: 2.191 MB / 0.7169 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.002194/1.16, allocations: 0.5013 MB / 1.01 GB, free: 1.711 MB / 0.7169 GB Notification: Performance of postOpt tearingSystem (simulation): time 2.673e-05/1.16, allocations: 12 kB / 1.01 GB, free: 1.699 MB / 0.7169 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001313/1.16, allocations: 59.95 kB / 1.01 GB, free: 1.641 MB / 0.7169 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001851/1.162, allocations: 4.13 MB / 1.014 GB, free: 13.36 MB / 0.7325 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.003e-06/1.162, allocations: 10.59 kB / 1.014 GB, free: 13.35 MB / 0.7325 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.004609/1.167, allocations: 3.37 MB / 1.017 GB, free: 9.926 MB / 0.7325 GB Notification: Performance of postOpt removeConstants (simulation): time 0.001273/1.168, allocations: 0.5677 MB / 1.018 GB, free: 9.336 MB / 0.7325 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0004523/1.169, allocations: 47.98 kB / 1.018 GB, free: 9.289 MB / 0.7325 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.002338/1.171, allocations: 246.7 kB / 1.018 GB, free: 9.051 MB / 0.7325 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001975/1.171, allocations: 115.9 kB / 1.018 GB, free: 8.941 MB / 0.7325 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.000157/1.171, allocations: 71.97 kB / 1.018 GB, free: 8.871 MB / 0.7325 GB Notification: Performance of sorting global known variables: time 0.002106/1.173, allocations: 1.336 MB / 1.019 GB, free: 7.527 MB / 0.7325 GB Notification: Performance of sort global known variables: time 1.61e-07/1.173, allocations: 0 / 1.019 GB, free: 7.527 MB / 0.7325 GB Notification: Performance of remove unused functions: time 0.004082/1.178, allocations: 1.714 MB / 1.021 GB, free: 5.809 MB / 0.7325 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.005397/1.183, allocations: 4.168 MB / 1.025 GB, free: 1.617 MB / 0.7325 GB Notification: Performance of simCode: created initialization part: time 0.006018/1.189, allocations: 3.318 MB / 1.028 GB, free: 14.42 MB / 0.7481 GB Notification: Performance of simCode: created event and clocks part: time 7.835e-06/1.189, allocations: 4 kB / 1.028 GB, free: 14.42 MB / 0.7481 GB Notification: Performance of simCode: created simulation system equations: time 0.001696/1.191, allocations: 1.026 MB / 1.029 GB, free: 13.43 MB / 0.7481 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.009716/1.2, allocations: 1.598 MB / 1.031 GB, free: 11.87 MB / 0.7481 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.03863/1.239, allocations: 24.69 MB / 1.055 GB, free: 1.352 MB / 0.7637 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.002281/1.241, allocations: 2.188 MB / 1.057 GB, free: 15.13 MB / 0.7794 GB Notification: Performance of simCode: alias equations: time 0.003839/1.245, allocations: 1.096 MB / 1.058 GB, free: 14.03 MB / 0.7794 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001852/1.247, allocations: 1.261 MB / 1.059 GB, free: 12.77 MB / 0.7794 GB Notification: Performance of SimCode: time 1.513e-06/1.247, allocations: 0 / 1.059 GB, free: 12.77 MB / 0.7794 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.9168/2.164, allocations: 73.82 MB / 1.132 GB, free: 368.9 MB / 0.8106 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001557/2.164, allocations: 272.1 kB / 1.132 GB, free: 368.5 MB / 0.8106 GB Notification: Performance of buildModelFMU: Generate platform static: time 3.985/6.149, allocations: 4.672 kB / 1.132 GB, free: 368.5 MB / 0.8106 GB (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 & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator --tempDir=temp_IDEAS_IDEAS_Fluid_Sources_Examples_TraceSubstancesFlowSource_fmu --startTime=0 --stopTime=600 --timeout=50 --tolerance=1e-06 IDEAS_IDEAS_Fluid_Sources_Examples_TraceSubstancesFlowSource.fmu > IDEAS_IDEAS.Fluid.Sources.Examples.TraceSubstancesFlowSource.pipe 2>&1)