Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr ThermoSysPro_ThermoSysPro.Examples.SimpleExamples.TestVolumeATh.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.TestVolumeATh,fileNamePrefix="ThermoSysPro_ThermoSysPro_Examples_SimpleExamples_TestVolumeATh",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(ThermoSysPro.Examples.SimpleExamples.TestVolumeATh,fileNamePrefix="ThermoSysPro_ThermoSysPro_Examples_SimpleExamples_TestVolumeATh",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.7171/0.7171, allocations: 150.8 MB / 166.1 MB, free: 15.43 MB / 142.1 MB Notification: Performance of FrontEnd - loaded program: time 1.52e-05/1.522e-05, allocations: 4 kB / 204.9 MB, free: 9.973 MB / 174.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1205/0.1205, allocations: 31.99 MB / 236.8 MB, free: 5.395 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.TestVolumeATh): time 1.354/1.475, allocations: 296.3 MB / 0.5206 GB, free: 11.66 MB / 414.1 MB Notification: Performance of NFInst.instExpressions: time 0.1679/1.643, allocations: 186 MB / 0.7023 GB, free: 1.266 MB / 0.5762 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.0003245/1.643, allocations: 4 kB / 0.7023 GB, free: 1.262 MB / 0.5762 GB Notification: Performance of NFTyping.typeComponents: time 0.0004505/1.644, allocations: 175 kB / 0.7024 GB, free: 1.09 MB / 0.5762 GB Notification: Performance of NFTyping.typeBindings: time 0.0005447/1.644, allocations: 250.3 kB / 0.7027 GB, free: 0.8438 MB / 0.5762 GB Notification: Performance of NFTyping.typeClassSections: time 0.2562/1.9, allocations: 9.007 MB / 0.7115 GB, free: 4.5 MB / 0.5762 GB Notification: Performance of NFFlatten.flatten: time 0.0009244/1.901, allocations: 0.8911 MB / 0.7123 GB, free: 4.5 MB / 0.5762 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0003051/1.902, allocations: 319.5 kB / 0.7126 GB, free: 4.445 MB / 0.5762 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0002805/1.902, allocations: 311.2 kB / 0.7129 GB, free: 4.445 MB / 0.5762 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0002601/1.902, allocations: 314.9 kB / 0.7132 GB, free: 4.445 MB / 0.5762 GB Notification: Performance of NFPackage.collectConstants: time 4.03e-05/1.902, allocations: 23.22 kB / 0.7133 GB, free: 4.445 MB / 0.5762 GB Notification: Performance of NFFlatten.collectFunctions: time 0.02258/1.925, allocations: 17.39 MB / 0.7302 GB, free: 4.348 MB / 0.5762 GB Notification: Performance of NFScalarize.scalarize: time 0.0001537/1.925, allocations: 122.2 kB / 0.7304 GB, free: 4.348 MB / 0.5762 GB Notification: Performance of NFVerifyModel.verify: time 0.0003881/1.925, allocations: 368 kB / 0.7307 GB, free: 4.316 MB / 0.5762 GB Notification: Performance of NFConvertDAE.convert: time 0.01361/1.939, allocations: 9.3 MB / 0.7398 GB, free: 1.887 MB / 0.5762 GB Notification: Performance of FrontEnd - DAE generated: time 4.218e-06/1.939, allocations: 10.25 kB / 0.7398 GB, free: 1.887 MB / 0.5762 GB Notification: Performance of FrontEnd: time 1.463e-06/1.939, allocations: 0 / 0.7398 GB, free: 1.887 MB / 0.5762 GB Notification: Performance of Transformations before backend: time 8.025e-06/1.939, allocations: 0 / 0.7398 GB, free: 1.887 MB / 0.5762 GB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 196 * Number of variables: 196 Notification: Performance of Generate backend data structure: time 0.003943/1.943, allocations: 1.902 MB / 0.7417 GB, free: 0.625 MB / 0.5762 GB Notification: Performance of prepare preOptimizeDAE: time 3.81e-05/1.943, allocations: 14.52 kB / 0.7417 GB, free: 0.625 MB / 0.5762 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 8.54e-05/1.943, allocations: 111.4 kB / 0.7418 GB, free: 0.5703 MB / 0.5762 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 8.84e-05/1.943, allocations: 84.97 kB / 0.7419 GB, free: 0.5273 MB / 0.5762 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003239/1.944, allocations: 418.5 kB / 0.7423 GB, free: 224 kB / 0.5762 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.73e-05/1.944, allocations: 42.88 kB / 0.7423 GB, free: 224 kB / 0.5762 GB Notification: Performance of preOpt expandDerOperator (simulation): time 5.797e-05/1.944, allocations: 58.62 kB / 0.7424 GB, free: 220 kB / 0.5762 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0008784/1.945, allocations: 0.758 MB / 0.7431 GB, free: 15.91 MB / 0.5919 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.512e-05/1.945, allocations: 2.906 kB / 0.7431 GB, free: 15.91 MB / 0.5919 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.85e-05/1.945, allocations: 30.48 kB / 0.7431 GB, free: 15.9 MB / 0.5919 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.195e-05/1.945, allocations: 33.16 kB / 0.7432 GB, free: 15.89 MB / 0.5919 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0006702/1.945, allocations: 493.5 kB / 0.7436 GB, free: 15.84 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.002861/1.948, allocations: 4.538 MB / 0.7481 GB, free: 11.82 MB / 0.5919 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0005391/1.949, allocations: 332.5 kB / 0.7484 GB, free: 11.76 MB / 0.5919 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002949/1.949, allocations: 226.7 kB / 0.7486 GB, free: 11.74 MB / 0.5919 GB Notification: Performance of preOpt evalFunc (simulation): time 0.2779/2.227, allocations: 151.8 MB / 0.8968 GB, free: 0.5469 MB / 0.7325 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.149e-05/2.227, allocations: 38.67 kB / 0.8969 GB, free: 0.5039 MB / 0.7325 GB Notification: Performance of pre-optimization done (n=81): time 1.914e-06/2.227, allocations: 0 / 0.8969 GB, free: 0.5039 MB / 0.7325 GB Notification: Performance of matching and sorting (n=81): time 0.002844/2.23, allocations: 1.158 MB / 0.898 GB, free: 15.54 MB / 0.7481 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.663e-05/2.23, allocations: 81.09 kB / 0.8981 GB, free: 15.45 MB / 0.7481 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0004957/2.231, allocations: 0.5051 MB / 0.8986 GB, free: 15.04 MB / 0.7481 GB Notification: Performance of collectPreVariables (initialization): time 2.596e-05/2.231, allocations: 29.45 kB / 0.8986 GB, free: 15.01 MB / 0.7481 GB Notification: Performance of collectInitialEqns (initialization): time 0.0001731/2.231, allocations: 320.1 kB / 0.8989 GB, free: 14.78 MB / 0.7481 GB Notification: Performance of collectInitialBindings (initialization): time 0.0001494/2.231, allocations: 273 kB / 0.8992 GB, free: 14.55 MB / 0.7481 GB Notification: Performance of simplifyInitialFunctions (initialization): time 6.783e-05/2.231, allocations: 69.77 kB / 0.8992 GB, free: 14.5 MB / 0.7481 GB Notification: Performance of setup shared object (initialization): time 0.0001319/2.231, allocations: 376.6 kB / 0.8996 GB, free: 14.14 MB / 0.7481 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002939/2.231, allocations: 171.7 kB / 0.8997 GB, free: 14.04 MB / 0.7481 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003848/2.232, allocations: 346.2 kB / 0.9001 GB, free: 13.72 MB / 0.7481 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0007369/2.233, allocations: 0.5717 MB / 0.9006 GB, free: 13.28 MB / 0.7481 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.965e-06/2.233, allocations: 0 / 0.9006 GB, free: 13.28 MB / 0.7481 GB Notification: Performance of matching and sorting (n=103) (initialization): time 0.001265/2.234, allocations: 0.7965 MB / 0.9014 GB, free: 12.73 MB / 0.7481 GB Notification: Performance of prepare postOptimizeDAE: time 2.537e-05/2.234, allocations: 9.781 kB / 0.9014 GB, free: 12.73 MB / 0.7481 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.087e-05/2.234, allocations: 8 kB / 0.9014 GB, free: 12.72 MB / 0.7481 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.002232/2.236, allocations: 0.7589 MB / 0.9022 GB, free: 12.01 MB / 0.7481 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000149/2.236, allocations: 49.34 kB / 0.9022 GB, free: 11.97 MB / 0.7481 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001321/2.238, allocations: 1.529 MB / 0.9037 GB, free: 10.59 MB / 0.7481 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003397/2.238, allocations: 74.83 kB / 0.9038 GB, free: 10.52 MB / 0.7481 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.178e-05/2.238, allocations: 27.67 kB / 0.9038 GB, free: 10.5 MB / 0.7481 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 22 * Number of states: 0 () * Number of discrete variables: 14 (lumpedStraightPipe1.C2.b,lumpedStraightPipe1.C1.a,sourceP2.C.b,sourceQ.C.b,controlValve2.C2.b,controlValve2.C1.a,controlValve1.C2.b,controlValve1.C1.a,sink.C.a,volumeATh.Cs2.b,volumeATh.Cs1.b,volumeATh.Ce2.a,volumeATh.Ce1.a,volumeATh.Cs2.a) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (31): * Single equations (assignments): 27 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 2 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 2 * 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): 2 systems {(1,4), (5,10)} Notification: Performance of prepare postOptimizeDAE: time 0.0002132/2.238, allocations: 209.5 kB / 0.904 GB, free: 10.33 MB / 0.7481 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 8.259e-05/2.238, allocations: 63.09 kB / 0.9041 GB, free: 10.27 MB / 0.7481 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001528/2.24, allocations: 1.215 MB / 0.9053 GB, free: 9.48 MB / 0.7481 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.001133/2.241, allocations: 0.8849 MB / 0.9061 GB, free: 8.863 MB / 0.7481 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.43e-06/2.241, allocations: 1.859 kB / 0.9061 GB, free: 8.863 MB / 0.7481 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.215e-06/2.241, allocations: 3.984 kB / 0.9061 GB, free: 8.859 MB / 0.7481 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002969/2.244, allocations: 2.562 MB / 0.9086 GB, free: 6.898 MB / 0.7481 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.053e-06/2.244, allocations: 4 kB / 0.9086 GB, free: 6.895 MB / 0.7481 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0004439/2.244, allocations: 136.3 kB / 0.9088 GB, free: 6.773 MB / 0.7481 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.001386/2.246, allocations: 0.5698 MB / 0.9093 GB, free: 6.254 MB / 0.7481 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.245e-05/2.246, allocations: 25.84 kB / 0.9093 GB, free: 6.242 MB / 0.7481 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001074/2.247, allocations: 1.476 MB / 0.9108 GB, free: 4.887 MB / 0.7481 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.08e-06/2.247, allocations: 14.97 kB / 0.9108 GB, free: 4.875 MB / 0.7481 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001789/2.249, allocations: 1.546 MB / 0.9123 GB, free: 3.691 MB / 0.7481 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0002297/2.249, allocations: 240.8 kB / 0.9125 GB, free: 3.469 MB / 0.7481 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 6.521e-05/2.249, allocations: 19.06 kB / 0.9126 GB, free: 3.461 MB / 0.7481 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003268/2.249, allocations: 47.14 kB / 0.9126 GB, free: 3.426 MB / 0.7481 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 9.361e-05/2.25, allocations: 71.91 kB / 0.9127 GB, free: 3.375 MB / 0.7481 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.19e-05/2.25, allocations: 27.81 kB / 0.9127 GB, free: 3.352 MB / 0.7481 GB Notification: Performance of sorting global known variables: time 0.0003988/2.25, allocations: 429.8 kB / 0.9131 GB, free: 3.035 MB / 0.7481 GB Notification: Performance of sort global known variables: time 1.5e-07/2.25, allocations: 4 kB / 0.9131 GB, free: 3.031 MB / 0.7481 GB Notification: Performance of remove unused functions: time 0.003451/2.253, allocations: 1.494 MB / 0.9146 GB, free: 1.637 MB / 0.7481 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 21 * Number of states: 1 (volumeATh.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 (72): * Single equations (assignments): 69 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 1 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 2 * 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): 2 systems {(1,4), (4,9)} Notification: Performance of Backend phase and start with SimCode phase: time 0.00732/2.261, allocations: 4.168 MB / 0.9186 GB, free: 14.14 MB / 0.7637 GB Notification: Performance of simCode: created initialization part: time 0.001637/2.262, allocations: 0.9787 MB / 0.9196 GB, free: 13.37 MB / 0.7637 GB Notification: Performance of simCode: created event and clocks part: time 5.49e-06/2.262, allocations: 4 kB / 0.9196 GB, free: 13.37 MB / 0.7637 GB Notification: Performance of simCode: created simulation system equations: time 0.0008304/2.263, allocations: 482.4 kB / 0.9201 GB, free: 13.05 MB / 0.7637 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001843/2.265, allocations: 315.3 kB / 0.9204 GB, free: 12.8 MB / 0.7637 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.009006/2.274, allocations: 7.486 MB / 0.9277 GB, free: 6.207 MB / 0.7637 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005235/2.275, allocations: 1.037 MB / 0.9287 GB, free: 5.145 MB / 0.7637 GB Notification: Performance of simCode: alias equations: time 0.0002793/2.275, allocations: 84.75 kB / 0.9288 GB, free: 5.059 MB / 0.7637 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003566/2.275, allocations: 366.3 kB / 0.9291 GB, free: 4.805 MB / 0.7637 GB Notification: Performance of SimCode: time 4.91e-07/2.275, allocations: 0 / 0.9291 GB, free: 4.805 MB / 0.7637 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.4068/2.682, allocations: 63.24 MB / 0.9909 GB, free: 456.4 MB / 0.8106 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001386/2.682, allocations: 270.9 kB / 0.9911 GB, free: 456.1 MB / 0.8106 GB Notification: Performance of buildModelFMU: Generate platform static: time 4.536/7.218, allocations: 1.812 kB / 0.9911 GB, free: 456.1 MB / 0.8106 GB (rm -f ThermoSysPro_ThermoSysPro.Examples.SimpleExamples.TestVolumeATh.pipe ; mkfifo ThermoSysPro_ThermoSysPro.Examples.SimpleExamples.TestVolumeATh.pipe ; head -c 1048576 < ThermoSysPro_ThermoSysPro.Examples.SimpleExamples.TestVolumeATh.pipe >> ../files/ThermoSysPro_ThermoSysPro.Examples.SimpleExamples.TestVolumeATh.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator --tempDir=temp_ThermoSysPro_ThermoSysPro_Examples_SimpleExamples_TestVolumeATh_fmu --startTime=0 --stopTime=10 --timeout=50 --tolerance=1e-06 ThermoSysPro_ThermoSysPro_Examples_SimpleExamples_TestVolumeATh.fmu > ThermoSysPro_ThermoSysPro.Examples.SimpleExamples.TestVolumeATh.pipe 2>&1)