Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr ThermoSysPro_ThermoSysPro.Examples.SimpleExamples.TestVolumes2.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ThermoSysPro 4.0.0-master/package.mo", uses=false) Using package ThermoSysPro with version 4.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ThermoSysPro 4.0.0-master/package.mo) Running command: "" <> buildModelFMU(ThermoSysPro.Examples.SimpleExamples.TestVolumes2,fileNamePrefix="ThermoSysPro_ThermoSysPro_Examples_SimpleExamples_TestVolumes2",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(ThermoSysPro.Examples.SimpleExamples.TestVolumes2,fileNamePrefix="ThermoSysPro_ThermoSysPro_Examples_SimpleExamples_TestVolumes2",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ThermoSysPro 4.0.0-master/package.mo): time 0.7424/0.7424, allocations: 150.8 MB / 166.1 MB, free: 15.43 MB / 142.1 MB Notification: Performance of FrontEnd - loaded program: time 1.557e-05/1.561e-05, allocations: 4 kB / 204.9 MB, free: 9.973 MB / 174.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1356/0.1356, allocations: 31.98 MB / 236.8 MB, free: 5.18 MB / 190.1 MB Notification: Automatically loaded package Complex 4.0.0 due to uses annotation. Notification: Automatically loaded package ModelicaServices 4.0.0 due to uses annotation. Notification: Automatically loaded package Modelica 4.0.0 due to usage. Notification: Performance of NFInst.instantiate(ThermoSysPro.Examples.SimpleExamples.TestVolumes2): time 1.394/1.53, allocations: 299.4 MB / 0.5236 GB, free: 8.488 MB / 414.1 MB Notification: Performance of NFInst.instExpressions: time 0.4154/1.945, allocations: 186.9 MB / 0.7062 GB, free: 3.871 MB / 0.5762 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.0008285/1.946, allocations: 11.06 kB / 0.7062 GB, free: 3.871 MB / 0.5762 GB Notification: Performance of NFTyping.typeComponents: time 0.0007129/1.947, allocations: 274.2 kB / 0.7065 GB, free: 3.871 MB / 0.5762 GB Notification: Performance of NFTyping.typeBindings: time 0.001488/1.948, allocations: 0.5232 MB / 0.707 GB, free: 3.871 MB / 0.5762 GB Notification: Performance of NFTyping.typeClassSections: time 0.02173/1.97, allocations: 9.333 MB / 0.7161 GB, free: 3.754 MB / 0.5762 GB Notification: Performance of NFFlatten.flatten: time 0.002112/1.972, allocations: 1.984 MB / 0.718 GB, free: 3.75 MB / 0.5762 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0008542/1.973, allocations: 0.6723 MB / 0.7187 GB, free: 3.625 MB / 0.5762 GB Notification: Performance of NFEvalConstants.evaluate: time 0.001034/1.974, allocations: 0.6672 MB / 0.7193 GB, free: 3.625 MB / 0.5762 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0009065/1.975, allocations: 0.6725 MB / 0.72 GB, free: 3.625 MB / 0.5762 GB Notification: Performance of NFPackage.collectConstants: time 0.0001849/1.975, allocations: 53.64 kB / 0.72 GB, free: 3.625 MB / 0.5762 GB Notification: Performance of NFFlatten.collectFunctions: time 0.02771/2.003, allocations: 20.19 MB / 0.7397 GB, free: 2.633 MB / 0.5762 GB Notification: Performance of NFScalarize.scalarize: time 0.0002972/2.003, allocations: 238.1 kB / 0.74 GB, free: 2.59 MB / 0.5762 GB Notification: Performance of NFVerifyModel.verify: time 0.0009603/2.004, allocations: 0.7627 MB / 0.7407 GB, free: 2.516 MB / 0.5762 GB Notification: Performance of NFConvertDAE.convert: time 0.01764/2.022, allocations: 11.06 MB / 0.7515 GB, free: 14.19 MB / 0.5919 GB Notification: Performance of FrontEnd - DAE generated: time 3.717e-06/2.022, allocations: 2.938 kB / 0.7515 GB, free: 14.19 MB / 0.5919 GB Notification: Performance of FrontEnd: time 1.313e-06/2.022, allocations: 0 / 0.7515 GB, free: 14.19 MB / 0.5919 GB Notification: Performance of Transformations before backend: time 6.282e-05/2.022, allocations: 0 / 0.7515 GB, free: 14.19 MB / 0.5919 GB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 429 * Number of variables: 429 Notification: Performance of Generate backend data structure: time 0.006409/2.029, allocations: 2.74 MB / 0.7542 GB, free: 12.46 MB / 0.5919 GB Notification: Performance of prepare preOptimizeDAE: time 3.482e-05/2.029, allocations: 8.219 kB / 0.7542 GB, free: 12.46 MB / 0.5919 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001936/2.029, allocations: 221.2 kB / 0.7544 GB, free: 12.37 MB / 0.5919 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002029/2.029, allocations: 195.6 kB / 0.7546 GB, free: 12.27 MB / 0.5919 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0006976/2.03, allocations: 0.6646 MB / 0.7553 GB, free: 11.84 MB / 0.5919 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 5.249e-05/2.03, allocations: 92.2 kB / 0.7553 GB, free: 11.84 MB / 0.5919 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001114/2.03, allocations: 119.8 kB / 0.7555 GB, free: 11.83 MB / 0.5919 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.00204/2.032, allocations: 1.668 MB / 0.7571 GB, free: 11.17 MB / 0.5919 GB Notification: Performance of preOpt findStateOrder (simulation): time 2.6e-05/2.032, allocations: 12.02 kB / 0.7571 GB, free: 11.17 MB / 0.5919 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 7.59e-05/2.032, allocations: 48.28 kB / 0.7571 GB, free: 11.17 MB / 0.5919 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.102e-05/2.032, allocations: 68.2 kB / 0.7572 GB, free: 11.16 MB / 0.5919 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001836/2.034, allocations: 1.173 MB / 0.7584 GB, free: 10.99 MB / 0.5919 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.06949/2.103, allocations: 42.18 MB / 0.7995 GB, free: 4.395 MB / 0.6231 GB Notification: Performance of preOpt comSubExp (simulation): time 0.001452/2.105, allocations: 0.8902 MB / 0.8004 GB, free: 3.863 MB / 0.6231 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0008817/2.106, allocations: 0.623 MB / 0.801 GB, free: 3.508 MB / 0.6231 GB Notification: Performance of preOpt evalFunc (simulation): time 0.2737/2.38, allocations: 151.8 MB / 0.9492 GB, free: 14.02 MB / 0.795 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.438e-05/2.38, allocations: 38.91 kB / 0.9493 GB, free: 13.98 MB / 0.795 GB Notification: Performance of pre-optimization done (n=197): time 2.495e-06/2.38, allocations: 0 / 0.9493 GB, free: 13.98 MB / 0.795 GB Notification: Performance of matching and sorting (n=197): time 0.01592/2.396, allocations: 4.399 MB / 0.9536 GB, free: 10.25 MB / 0.795 GB Notification: Performance of inlineWhenForInitialization (initialization): time 5.486e-05/2.396, allocations: 114.4 kB / 0.9537 GB, free: 10.11 MB / 0.795 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0009777/2.397, allocations: 0.8488 MB / 0.9545 GB, free: 9.332 MB / 0.795 GB Notification: Performance of collectPreVariables (initialization): time 5.19e-05/2.397, allocations: 37.7 kB / 0.9546 GB, free: 9.289 MB / 0.795 GB Notification: Performance of collectInitialEqns (initialization): time 0.0003499/2.397, allocations: 0.5728 MB / 0.9551 GB, free: 8.715 MB / 0.795 GB Notification: Performance of collectInitialBindings (initialization): time 0.0004033/2.397, allocations: 0.6281 MB / 0.9557 GB, free: 8.09 MB / 0.795 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001545/2.398, allocations: 153.6 kB / 0.9559 GB, free: 7.934 MB / 0.795 GB Notification: Performance of setup shared object (initialization): time 8.294e-05/2.398, allocations: 309.1 kB / 0.9562 GB, free: 7.629 MB / 0.795 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.000929/2.399, allocations: 490.8 kB / 0.9566 GB, free: 7.145 MB / 0.795 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001099/2.4, allocations: 0.8272 MB / 0.9574 GB, free: 6.195 MB / 0.795 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.002144/2.402, allocations: 1.438 MB / 0.9588 GB, free: 4.676 MB / 0.795 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.669e-06/2.402, allocations: 0 / 0.9588 GB, free: 4.676 MB / 0.795 GB Notification: Performance of matching and sorting (n=245) (initialization): time 0.003045/2.405, allocations: 1.937 MB / 0.9607 GB, free: 2.785 MB / 0.795 GB Notification: Performance of prepare postOptimizeDAE: time 1.884e-05/2.405, allocations: 9.094 kB / 0.9607 GB, free: 2.777 MB / 0.795 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.471e-05/2.405, allocations: 9.859 kB / 0.9608 GB, free: 2.77 MB / 0.795 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.006964/2.412, allocations: 2.578 MB / 0.9633 GB, free: 196 kB / 0.795 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004035/2.412, allocations: 120.6 kB / 0.9634 GB, free: 84 kB / 0.795 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002755/2.415, allocations: 1.859 MB / 0.9652 GB, free: 14.2 MB / 0.8106 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0008369/2.416, allocations: 202.1 kB / 0.9654 GB, free: 14 MB / 0.8106 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.942e-05/2.416, allocations: 51.98 kB / 0.9654 GB, free: 13.95 MB / 0.8106 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 40 * Number of states: 0 () * Number of discrete variables: 30 (volumeA.Cs2.b,volumeA.Cs1.b,volumeA.Ce2.a,volumeA.Ce1.a,volumeC.Ce3.a,volumeC.Cs.b,volumeC.Ce2.a,volumeC.Ce1.a,sinkP1.C.a,lumpedStraightPipe2.C2.b,lumpedStraightPipe2.C1.a,sinkP.C.a,controlValve4.C2.b,controlValve4.C1.a,controlValve3.C2.b,controlValve3.C1.a,controlValve2.C2.b,controlValve2.C1.a,controlValve1.C2.b,controlValve1.C1.a,controlValve.C2.b,controlValve.C1.a,lumpedStraightPipe1.C2.b,lumpedStraightPipe1.C1.a,lumpedStraightPipe.C2.b,lumpedStraightPipe.C1.a,sourceP1.C.b,sourceP.C.b,volumeA.Ce1.b,volumeC.Ce1.b) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (69): * Single equations (assignments): 64 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 4 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 0 systems * Non-linear torn systems (#iteration vars, #inner vars): 1 system {(18,33)} Notification: Performance of prepare postOptimizeDAE: time 0.0003906/2.416, allocations: 293.9 kB / 0.9657 GB, free: 13.67 MB / 0.8106 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001567/2.417, allocations: 130.2 kB / 0.9658 GB, free: 13.54 MB / 0.8106 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.006205/2.423, allocations: 5.726 MB / 0.9714 GB, free: 7.637 MB / 0.8106 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.002991/2.426, allocations: 2.042 MB / 0.9734 GB, free: 5.555 MB / 0.8106 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 9.357e-06/2.426, allocations: 4 kB / 0.9734 GB, free: 5.551 MB / 0.8106 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.384e-05/2.426, allocations: 7.969 kB / 0.9734 GB, free: 5.543 MB / 0.8106 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.00661/2.432, allocations: 4.762 MB / 0.9781 GB, free: 0.7695 MB / 0.8106 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.152e-06/2.433, allocations: 0 / 0.9781 GB, free: 0.7695 MB / 0.8106 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0007261/2.433, allocations: 239.5 kB / 0.9783 GB, free: 0.5469 MB / 0.8106 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.1528/2.586, allocations: 2.006 MB / 0.9803 GB, free: 458.5 MB / 0.8106 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0002001/2.586, allocations: 32.41 kB / 0.9803 GB, free: 458.5 MB / 0.8106 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.002393/2.589, allocations: 1.862 MB / 0.9821 GB, free: 458 MB / 0.8106 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.924e-06/2.589, allocations: 0 / 0.9821 GB, free: 458 MB / 0.8106 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.004568/2.593, allocations: 3.136 MB / 0.9852 GB, free: 457.7 MB / 0.8106 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0005497/2.594, allocations: 407.8 kB / 0.9856 GB, free: 457.6 MB / 0.8106 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001787/2.594, allocations: 30.55 kB / 0.9856 GB, free: 457.6 MB / 0.8106 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0007382/2.595, allocations: 98.52 kB / 0.9857 GB, free: 457.6 MB / 0.8106 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001647/2.595, allocations: 110.6 kB / 0.9858 GB, free: 457.6 MB / 0.8106 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.778e-05/2.595, allocations: 44.97 kB / 0.9859 GB, free: 457.6 MB / 0.8106 GB Notification: Performance of sorting global known variables: time 0.0007951/2.596, allocations: 0.6895 MB / 0.9865 GB, free: 457.5 MB / 0.8106 GB Notification: Performance of sort global known variables: time 2.1e-07/2.596, allocations: 0 / 0.9865 GB, free: 457.5 MB / 0.8106 GB Notification: Performance of remove unused functions: time 0.003703/2.6, allocations: 1.825 MB / 0.9883 GB, free: 457.4 MB / 0.8106 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * Number of states: 2 (volumeC.h,volumeA.h) * 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 (123): * Single equations (assignments): 120 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 2 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 0 systems * Non-linear torn systems (#iteration vars, #inner vars): 1 system {(15,38)} Notification: Performance of Backend phase and start with SimCode phase: time 0.009552/2.609, allocations: 5.958 MB / 0.9941 GB, free: 456.5 MB / 0.8106 GB Notification: Performance of simCode: created initialization part: time 0.003408/2.613, allocations: 2.238 MB / 0.9963 GB, free: 455.9 MB / 0.8106 GB Notification: Performance of simCode: created event and clocks part: time 2.164e-06/2.613, allocations: 2.078 kB / 0.9963 GB, free: 455.9 MB / 0.8106 GB Notification: Performance of simCode: created simulation system equations: time 0.001909/2.614, allocations: 1.068 MB / 0.9974 GB, free: 455.9 MB / 0.8106 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002948/2.617, allocations: 0.6703 MB / 0.998 GB, free: 455.9 MB / 0.8106 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01526/2.633, allocations: 13.34 MB / 1.011 GB, free: 450.9 MB / 0.8106 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005944/2.633, allocations: 1.403 MB / 1.012 GB, free: 450.1 MB / 0.8106 GB Notification: Performance of simCode: alias equations: time 0.0005723/2.634, allocations: 146 kB / 1.013 GB, free: 450.1 MB / 0.8106 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0005708/2.634, allocations: 0.7505 MB / 1.013 GB, free: 449.9 MB / 0.8106 GB Notification: Performance of SimCode: time 3.9e-07/2.634, allocations: 3.562 kB / 1.013 GB, free: 449.9 MB / 0.8106 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 4.221/6.856, allocations: 88.92 MB / 1.1 GB, free: 372 MB / 0.8106 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.000171/6.856, allocations: 274.5 kB / 1.1 GB, free: 371.7 MB / 0.8106 GB Notification: Performance of buildModelFMU: Generate platform static: time 5.502/12.36, allocations: 3.938 kB / 1.1 GB, free: 371.7 MB / 0.8106 GB (rm -f ThermoSysPro_ThermoSysPro.Examples.SimpleExamples.TestVolumes2.pipe ; mkfifo ThermoSysPro_ThermoSysPro.Examples.SimpleExamples.TestVolumes2.pipe ; head -c 1048576 < ThermoSysPro_ThermoSysPro.Examples.SimpleExamples.TestVolumes2.pipe >> ../files/ThermoSysPro_ThermoSysPro.Examples.SimpleExamples.TestVolumes2.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator --tempDir=temp_ThermoSysPro_ThermoSysPro_Examples_SimpleExamples_TestVolumes2_fmu --startTime=0 --stopTime=10 --timeout=50 --tolerance=1e-06 ThermoSysPro_ThermoSysPro_Examples_SimpleExamples_TestVolumes2.fmu > ThermoSysPro_ThermoSysPro.Examples.SimpleExamples.TestVolumes2.pipe 2>&1)