Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr ThermoSysPro_ThermoSysPro.Examples.SimpleExamples.TestSingularPressureLoss.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.TestSingularPressureLoss,fileNamePrefix="ThermoSysPro_ThermoSysPro_Examples_SimpleExamples_TestSingularPressureLoss",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(ThermoSysPro.Examples.SimpleExamples.TestSingularPressureLoss,fileNamePrefix="ThermoSysPro_ThermoSysPro_Examples_SimpleExamples_TestSingularPressureLoss",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.7644/0.7644, allocations: 150.8 MB / 166.1 MB, free: 15.41 MB / 142.1 MB Notification: Performance of FrontEnd - loaded program: time 1.601e-05/1.603e-05, allocations: 4 kB / 204.9 MB, free: 9.953 MB / 174.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1341/0.1342, allocations: 31.98 MB / 236.8 MB, free: 5.387 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.TestSingularPressureLoss): time 1.553/1.687, allocations: 294.5 MB / 0.5189 GB, free: 13.23 MB / 414.1 MB Notification: Performance of NFInst.instExpressions: time 0.04063/1.728, allocations: 36.99 MB / 0.555 GB, free: 8.383 MB / 446.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001713/1.728, allocations: 0 / 0.555 GB, free: 8.383 MB / 446.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0002812/1.729, allocations: 79.61 kB / 0.5551 GB, free: 8.305 MB / 446.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001646/1.729, allocations: 79.36 kB / 0.5552 GB, free: 8.227 MB / 446.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.01919/1.748, allocations: 7.306 MB / 0.5623 GB, free: 0.918 MB / 446.1 MB Notification: Performance of NFFlatten.flatten: time 0.0004932/1.748, allocations: 306.5 kB / 0.5626 GB, free: 0.6172 MB / 446.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001864/1.749, allocations: 102.2 kB / 0.5627 GB, free: 0.5195 MB / 446.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001814/1.749, allocations: 107.4 kB / 0.5628 GB, free: 424 kB / 446.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001224/1.749, allocations: 87.52 kB / 0.5629 GB, free: 336 kB / 446.1 MB Notification: Performance of NFPackage.collectConstants: time 1.814e-05/1.749, allocations: 8 kB / 0.5629 GB, free: 328 kB / 446.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.02824/1.777, allocations: 17.81 MB / 0.5803 GB, free: 14.49 MB / 478.1 MB Notification: Performance of NFScalarize.scalarize: time 7.535e-05/1.777, allocations: 31.8 kB / 0.5803 GB, free: 14.46 MB / 478.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001806/1.777, allocations: 137.1 kB / 0.5805 GB, free: 14.32 MB / 478.1 MB Notification: Performance of NFConvertDAE.convert: time 0.01661/1.794, allocations: 8.335 MB / 0.5886 GB, free: 5.961 MB / 478.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.857e-06/1.794, allocations: 0 / 0.5886 GB, free: 5.961 MB / 478.1 MB Notification: Performance of FrontEnd: time 3.096e-06/1.794, allocations: 7.922 kB / 0.5886 GB, free: 5.953 MB / 478.1 MB Notification: Performance of Transformations before backend: time 1.065e-05/1.794, allocations: 0 / 0.5886 GB, free: 5.953 MB / 478.1 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 74 * Number of variables: 74 Notification: Performance of Generate backend data structure: time 0.003696/1.798, allocations: 1.377 MB / 0.59 GB, free: 4.527 MB / 478.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.246e-05/1.798, allocations: 12.03 kB / 0.59 GB, free: 4.516 MB / 478.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 7.86e-05/1.798, allocations: 62.53 kB / 0.59 GB, free: 4.445 MB / 478.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 5.195e-05/1.798, allocations: 31.56 kB / 0.5901 GB, free: 4.414 MB / 478.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002186/1.798, allocations: 226.6 kB / 0.5903 GB, free: 4.152 MB / 478.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.925e-05/1.798, allocations: 12.44 kB / 0.5903 GB, free: 4.137 MB / 478.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.857e-05/1.798, allocations: 20 kB / 0.5903 GB, free: 4.117 MB / 478.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004087/1.799, allocations: 286.8 kB / 0.5906 GB, free: 3.812 MB / 478.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.174e-05/1.799, allocations: 1.359 kB / 0.5906 GB, free: 3.812 MB / 478.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.727e-05/1.799, allocations: 8 kB / 0.5906 GB, free: 3.805 MB / 478.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.825e-05/1.799, allocations: 19.92 kB / 0.5906 GB, free: 3.785 MB / 478.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002501/1.799, allocations: 164.8 kB / 0.5908 GB, free: 3.625 MB / 478.1 MB 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.03764/1.837, allocations: 18.12 MB / 0.6085 GB, free: 15.62 MB / 0.4981 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0003309/1.837, allocations: 122.5 kB / 0.6086 GB, free: 15.5 MB / 0.4981 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001071/1.837, allocations: 76.97 kB / 0.6086 GB, free: 15.42 MB / 0.4981 GB Notification: Performance of preOpt evalFunc (simulation): time 0.1531/1.99, allocations: 77.94 MB / 0.6848 GB, free: 8.715 MB / 0.5762 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.006e-05/1.99, allocations: 42.55 kB / 0.6848 GB, free: 8.664 MB / 0.5762 GB Notification: Performance of pre-optimization done (n=32): time 4.849e-06/1.99, allocations: 0 / 0.6848 GB, free: 8.664 MB / 0.5762 GB Notification: Performance of matching and sorting (n=32): time 0.0008253/1.991, allocations: 397.1 kB / 0.6852 GB, free: 8.25 MB / 0.5762 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.315e-05/1.991, allocations: 55.41 kB / 0.6852 GB, free: 8.184 MB / 0.5762 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.000225/1.992, allocations: 211.7 kB / 0.6854 GB, free: 7.969 MB / 0.5762 GB Notification: Performance of collectPreVariables (initialization): time 1.983e-05/1.992, allocations: 29.7 kB / 0.6855 GB, free: 7.934 MB / 0.5762 GB Notification: Performance of collectInitialEqns (initialization): time 0.0001275/1.992, allocations: 144.5 kB / 0.6856 GB, free: 7.789 MB / 0.5762 GB Notification: Performance of collectInitialBindings (initialization): time 0.000104/1.992, allocations: 106.4 kB / 0.6857 GB, free: 7.684 MB / 0.5762 GB Notification: Performance of simplifyInitialFunctions (initialization): time 5.01e-05/1.992, allocations: 29.7 kB / 0.6857 GB, free: 7.648 MB / 0.5762 GB Notification: Performance of setup shared object (initialization): time 0.0001159/1.992, allocations: 330.8 kB / 0.686 GB, free: 7.316 MB / 0.5762 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001063/1.992, allocations: 72.3 kB / 0.6861 GB, free: 7.246 MB / 0.5762 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001334/1.992, allocations: 115.2 kB / 0.6862 GB, free: 7.121 MB / 0.5762 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002395/1.993, allocations: 197.5 kB / 0.6864 GB, free: 6.914 MB / 0.5762 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.214e-06/1.993, allocations: 0 / 0.6864 GB, free: 6.914 MB / 0.5762 GB Notification: Performance of matching and sorting (n=40) (initialization): time 0.0004083/1.993, allocations: 285.8 kB / 0.6867 GB, free: 6.625 MB / 0.5762 GB Notification: Performance of prepare postOptimizeDAE: time 1.746e-05/1.993, allocations: 5.031 kB / 0.6867 GB, free: 6.621 MB / 0.5762 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.255e-06/1.993, allocations: 7.938 kB / 0.6867 GB, free: 6.613 MB / 0.5762 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0008575/1.994, allocations: 168.8 kB / 0.6869 GB, free: 6.445 MB / 0.5762 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 5.073e-05/1.994, allocations: 11.98 kB / 0.6869 GB, free: 6.434 MB / 0.5762 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0005635/1.994, allocations: 0.6146 MB / 0.6875 GB, free: 5.793 MB / 0.5762 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001251/1.995, allocations: 23.69 kB / 0.6875 GB, free: 5.77 MB / 0.5762 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.349e-05/1.995, allocations: 4 kB / 0.6875 GB, free: 5.766 MB / 0.5762 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 5 * Number of states: 0 () * Number of discrete variables: 4 (singularPressureLoss.C2.b,singularPressureLoss.C1.a,PuitsP1.C.a,SourceP1.C.b) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (11): * Single equations (assignments): 8 * 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 {(1,2)} Notification: Performance of prepare postOptimizeDAE: time 0.0001391/1.995, allocations: 134.2 kB / 0.6876 GB, free: 5.625 MB / 0.5762 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.576e-05/1.995, allocations: 31.66 kB / 0.6877 GB, free: 5.594 MB / 0.5762 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0007064/1.996, allocations: 0.5712 MB / 0.6882 GB, free: 4.953 MB / 0.5762 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.0003193/1.996, allocations: 202.3 kB / 0.6884 GB, free: 4.746 MB / 0.5762 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.604e-06/1.996, allocations: 3.984 kB / 0.6884 GB, free: 4.742 MB / 0.5762 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.029e-06/1.996, allocations: 2.859 kB / 0.6884 GB, free: 4.742 MB / 0.5762 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0008209/1.997, allocations: 0.6743 MB / 0.6891 GB, free: 4.008 MB / 0.5762 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.631e-06/1.997, allocations: 7.922 kB / 0.6891 GB, free: 4 MB / 0.5762 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 4.467e-05/1.997, allocations: 15.94 kB / 0.6891 GB, free: 3.984 MB / 0.5762 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.0004687/1.997, allocations: 130.2 kB / 0.6892 GB, free: 3.855 MB / 0.5762 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.164e-05/1.997, allocations: 4 kB / 0.6892 GB, free: 3.852 MB / 0.5762 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0004674/1.998, allocations: 0.6304 MB / 0.6898 GB, free: 3.195 MB / 0.5762 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.213e-06/1.998, allocations: 0 / 0.6898 GB, free: 3.195 MB / 0.5762 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003294/1.998, allocations: 316.5 kB / 0.6901 GB, free: 2.867 MB / 0.5762 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0001142/1.998, allocations: 124.7 kB / 0.6903 GB, free: 2.727 MB / 0.5762 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.359e-05/1.998, allocations: 8 kB / 0.6903 GB, free: 2.719 MB / 0.5762 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001416/1.998, allocations: 3.938 kB / 0.6903 GB, free: 2.715 MB / 0.5762 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.401e-05/1.998, allocations: 7.984 kB / 0.6903 GB, free: 2.707 MB / 0.5762 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.326e-06/1.998, allocations: 8 kB / 0.6903 GB, free: 2.699 MB / 0.5762 GB Notification: Performance of sorting global known variables: time 0.000237/1.999, allocations: 226 kB / 0.6905 GB, free: 2.48 MB / 0.5762 GB Notification: Performance of sort global known variables: time 1.4e-07/1.999, allocations: 3.938 kB / 0.6905 GB, free: 2.477 MB / 0.5762 GB Notification: Performance of remove unused functions: time 0.003062/2.002, allocations: 1.191 MB / 0.6917 GB, free: 1.285 MB / 0.5762 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * 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 simulation (11): * Single equations (assignments): 10 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * 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 {(1,3)} Notification: Performance of Backend phase and start with SimCode phase: time 0.1613/2.163, allocations: 2.496 MB / 0.6941 GB, free: 228.1 MB / 0.5762 GB Notification: Performance of simCode: created initialization part: time 0.0005766/2.164, allocations: 223 kB / 0.6943 GB, free: 228 MB / 0.5762 GB Notification: Performance of simCode: created event and clocks part: time 3.236e-06/2.164, allocations: 0 / 0.6943 GB, free: 228 MB / 0.5762 GB Notification: Performance of simCode: created simulation system equations: time 0.0002104/2.164, allocations: 85.3 kB / 0.6944 GB, free: 228 MB / 0.5762 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000792/2.165, allocations: 125.6 kB / 0.6945 GB, free: 228 MB / 0.5762 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003679/2.168, allocations: 3.025 MB / 0.6975 GB, free: 226.5 MB / 0.5762 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001769/2.169, allocations: 0.7618 MB / 0.6982 GB, free: 225.8 MB / 0.5762 GB Notification: Performance of simCode: alias equations: time 9.735e-05/2.169, allocations: 20.91 kB / 0.6982 GB, free: 225.8 MB / 0.5762 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 8.263e-05/2.169, allocations: 87.7 kB / 0.6983 GB, free: 225.8 MB / 0.5762 GB Notification: Performance of SimCode: time 2.5e-07/2.169, allocations: 0 / 0.6983 GB, free: 225.8 MB / 0.5762 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.06001/2.229, allocations: 46.33 MB / 0.7436 GB, free: 201.5 MB / 0.5762 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001517/2.229, allocations: 248.7 kB / 0.7438 GB, free: 201.2 MB / 0.5762 GB Notification: Performance of buildModelFMU: Generate platform static: time 3.789/6.018, allocations: 0 / 0.7438 GB, free: 201.2 MB / 0.5762 GB (rm -f ThermoSysPro_ThermoSysPro.Examples.SimpleExamples.TestSingularPressureLoss.pipe ; mkfifo ThermoSysPro_ThermoSysPro.Examples.SimpleExamples.TestSingularPressureLoss.pipe ; head -c 1048576 < ThermoSysPro_ThermoSysPro.Examples.SimpleExamples.TestSingularPressureLoss.pipe >> ../files/ThermoSysPro_ThermoSysPro.Examples.SimpleExamples.TestSingularPressureLoss.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator --tempDir=temp_ThermoSysPro_ThermoSysPro_Examples_SimpleExamples_TestSingularPressureLoss_fmu --startTime=0 --stopTime=1000 --timeout=50 --tolerance=1e-06 ThermoSysPro_ThermoSysPro_Examples_SimpleExamples_TestSingularPressureLoss.fmu > ThermoSysPro_ThermoSysPro.Examples.SimpleExamples.TestSingularPressureLoss.pipe 2>&1)