Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr ThermoSysPro_ThermoSysPro.Fluid.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.Fluid.Examples.SimpleExamples.TestSingularPressureLoss,fileNamePrefix="ThermoSysPro_ThermoSysPro_Fluid_Examples_SimpleExamples_TestSingularPressureLoss",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(ThermoSysPro.Fluid.Examples.SimpleExamples.TestSingularPressureLoss,fileNamePrefix="ThermoSysPro_ThermoSysPro_Fluid_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.8371/0.8371, allocations: 150.8 MB / 166.1 MB, free: 15.41 MB / 142.1 MB Notification: Performance of FrontEnd - loaded program: time 1.722e-05/1.723e-05, allocations: 4 kB / 204.9 MB, free: 9.977 MB / 174.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1717/0.1717, 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.Fluid.Examples.SimpleExamples.TestSingularPressureLoss): time 1.538/1.71, allocations: 294.6 MB / 0.519 GB, free: 13.03 MB / 414.1 MB Notification: Performance of NFInst.instExpressions: time 0.199/1.909, allocations: 186.1 MB / 0.7007 GB, free: 2.5 MB / 0.5762 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002767/1.909, allocations: 7.938 kB / 0.7007 GB, free: 2.492 MB / 0.5762 GB Notification: Performance of NFTyping.typeComponents: time 7.776e-05/1.909, allocations: 23.78 kB / 0.7008 GB, free: 2.469 MB / 0.5762 GB Notification: Performance of NFTyping.typeBindings: time 0.0003101/1.91, allocations: 99.22 kB / 0.7009 GB, free: 2.371 MB / 0.5762 GB Notification: Performance of NFTyping.typeClassSections: time 0.3346/2.244, allocations: 8.805 MB / 0.7095 GB, free: 5.383 MB / 0.5762 GB Notification: Performance of NFFlatten.flatten: time 0.0004863/2.245, allocations: 349.1 kB / 0.7098 GB, free: 5.383 MB / 0.5762 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0002617/2.245, allocations: 158.6 kB / 0.7099 GB, free: 5.375 MB / 0.5762 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0001553/2.245, allocations: 112.6 kB / 0.7101 GB, free: 5.375 MB / 0.5762 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0001575/2.245, allocations: 130.9 kB / 0.7102 GB, free: 5.375 MB / 0.5762 GB Notification: Performance of NFPackage.collectConstants: time 2.751e-05/2.245, allocations: 11.84 kB / 0.7102 GB, free: 5.375 MB / 0.5762 GB Notification: Performance of NFFlatten.collectFunctions: time 0.03648/2.282, allocations: 20 MB / 0.7297 GB, free: 5.309 MB / 0.5762 GB Notification: Performance of NFScalarize.scalarize: time 0.0001835/2.282, allocations: 44.8 kB / 0.7298 GB, free: 5.309 MB / 0.5762 GB Notification: Performance of NFVerifyModel.verify: time 0.0004622/2.283, allocations: 175.6 kB / 0.7299 GB, free: 5.277 MB / 0.5762 GB Notification: Performance of NFConvertDAE.convert: time 0.03026/2.313, allocations: 9.747 MB / 0.7394 GB, free: 2.75 MB / 0.5762 GB Notification: Performance of FrontEnd - DAE generated: time 6.603e-06/2.313, allocations: 0 / 0.7394 GB, free: 2.75 MB / 0.5762 GB Notification: Performance of FrontEnd: time 2.154e-06/2.313, allocations: 1.75 kB / 0.7395 GB, free: 2.75 MB / 0.5762 GB Notification: Performance of Transformations before backend: time 1.49e-05/2.313, allocations: 2.188 kB / 0.7395 GB, free: 2.75 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: 84 * Number of variables: 84 Notification: Performance of Generate backend data structure: time 0.004526/2.317, allocations: 1.659 MB / 0.7411 GB, free: 1.629 MB / 0.5762 GB Notification: Performance of prepare preOptimizeDAE: time 4.371e-05/2.317, allocations: 13.67 kB / 0.7411 GB, free: 1.625 MB / 0.5762 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 6.343e-05/2.318, allocations: 75.66 kB / 0.7412 GB, free: 1.574 MB / 0.5762 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 6.089e-05/2.318, allocations: 40.72 kB / 0.7412 GB, free: 1.559 MB / 0.5762 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002797/2.318, allocations: 278.5 kB / 0.7415 GB, free: 1.312 MB / 0.5762 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.369e-05/2.318, allocations: 24.44 kB / 0.7415 GB, free: 1.312 MB / 0.5762 GB Notification: Performance of preOpt expandDerOperator (simulation): time 4.004e-05/2.318, allocations: 33.59 kB / 0.7415 GB, free: 1.312 MB / 0.5762 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004713/2.318, allocations: 347.1 kB / 0.7418 GB, free: 1.176 MB / 0.5762 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.233e-05/2.318, allocations: 2.906 kB / 0.7419 GB, free: 1.176 MB / 0.5762 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.807e-05/2.318, allocations: 17.81 kB / 0.7419 GB, free: 1.172 MB / 0.5762 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.001e-05/2.318, allocations: 12.12 kB / 0.7419 GB, free: 1.172 MB / 0.5762 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0003467/2.319, allocations: 214.4 kB / 0.7421 GB, free: 1.145 MB / 0.5762 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.007978/2.327, allocations: 6.098 MB / 0.748 GB, free: 11.94 MB / 0.5919 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0001287/2.327, allocations: 60.44 kB / 0.7481 GB, free: 11.91 MB / 0.5919 GB Notification: Performance of preOpt resolveLoops (simulation): time 4.045e-05/2.327, allocations: 20.25 kB / 0.7481 GB, free: 11.9 MB / 0.5919 GB Notification: Performance of preOpt evalFunc (simulation): time 0.157/2.484, allocations: 71.58 MB / 0.818 GB, free: 8.965 MB / 0.6544 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.499e-05/2.484, allocations: 38.25 kB / 0.8181 GB, free: 8.922 MB / 0.6544 GB Notification: Performance of pre-optimization done (n=5): time 3.036e-06/2.484, allocations: 7.984 kB / 0.8181 GB, free: 8.914 MB / 0.6544 GB Notification: Performance of matching and sorting (n=5): time 0.0006965/2.485, allocations: 220.6 kB / 0.8183 GB, free: 8.691 MB / 0.6544 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.111e-05/2.485, allocations: 51.41 kB / 0.8183 GB, free: 8.629 MB / 0.6544 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003327/2.485, allocations: 282.1 kB / 0.8186 GB, free: 8.395 MB / 0.6544 GB Notification: Performance of collectPreVariables (initialization): time 1.565e-05/2.485, allocations: 25.7 kB / 0.8186 GB, free: 8.363 MB / 0.6544 GB Notification: Performance of collectInitialEqns (initialization): time 0.0001418/2.485, allocations: 223.4 kB / 0.8188 GB, free: 8.176 MB / 0.6544 GB Notification: Performance of collectInitialBindings (initialization): time 2.157e-05/2.485, allocations: 27.55 kB / 0.8189 GB, free: 8.152 MB / 0.6544 GB Notification: Performance of simplifyInitialFunctions (initialization): time 4.258e-05/2.485, allocations: 29.08 kB / 0.8189 GB, free: 8.125 MB / 0.6544 GB Notification: Performance of setup shared object (initialization): time 0.0001439/2.486, allocations: 333 kB / 0.8192 GB, free: 7.801 MB / 0.6544 GB Notification: Performance of preBalanceInitialSystem (initialization): time 8.898e-05/2.486, allocations: 38.91 kB / 0.8192 GB, free: 7.773 MB / 0.6544 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001485/2.486, allocations: 139.7 kB / 0.8194 GB, free: 7.609 MB / 0.6544 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002208/2.486, allocations: 185.3 kB / 0.8195 GB, free: 7.426 MB / 0.6544 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.537e-06/2.486, allocations: 0 / 0.8195 GB, free: 7.426 MB / 0.6544 GB Notification: Performance of matching and sorting (n=24) (initialization): time 0.0004965/2.487, allocations: 244.2 kB / 0.8198 GB, free: 7.242 MB / 0.6544 GB Notification: Performance of prepare postOptimizeDAE: time 1.987e-05/2.487, allocations: 8 kB / 0.8198 GB, free: 7.234 MB / 0.6544 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.147e-06/2.487, allocations: 7.156 kB / 0.8198 GB, free: 7.23 MB / 0.6544 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0008935/2.488, allocations: 140.5 kB / 0.8199 GB, free: 7.094 MB / 0.6544 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001368/2.488, allocations: 46.69 kB / 0.82 GB, free: 7.055 MB / 0.6544 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.000427/2.488, allocations: 0.5601 MB / 0.8205 GB, free: 6.488 MB / 0.6544 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001915/2.488, allocations: 31.23 kB / 0.8205 GB, free: 6.461 MB / 0.6544 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.044e-05/2.488, allocations: 12 kB / 0.8206 GB, free: 6.449 MB / 0.6544 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 16 * Number of states: 0 () * Number of discrete variables: 6 (singularPressureLoss.fluid,SourceP1.C.ftype,PuitsP1.fluid,SourceP1.fluid1,SourceP1.C.diff_on_2,singularPressureLoss.C2.diff_on_1) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (22): * Single equations (assignments): 21 * 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,2)} Notification: Performance of prepare postOptimizeDAE: time 0.0001558/2.489, allocations: 143.3 kB / 0.8207 GB, free: 6.32 MB / 0.6544 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.952e-05/2.489, allocations: 27.72 kB / 0.8207 GB, free: 6.293 MB / 0.6544 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0003581/2.489, allocations: 131.7 kB / 0.8208 GB, free: 6.176 MB / 0.6544 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.216e-06/2.489, allocations: 4 kB / 0.8209 GB, free: 6.172 MB / 0.6544 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.24e-06/2.489, allocations: 0 / 0.8209 GB, free: 6.172 MB / 0.6544 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.502e-06/2.489, allocations: 3.984 kB / 0.8209 GB, free: 6.168 MB / 0.6544 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0003247/2.489, allocations: 293.1 kB / 0.8211 GB, free: 5.879 MB / 0.6544 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.485e-06/2.489, allocations: 0 / 0.8211 GB, free: 5.879 MB / 0.6544 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 1.642e-05/2.489, allocations: 2.906 kB / 0.8211 GB, free: 5.879 MB / 0.6544 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.0004988/2.49, allocations: 94.47 kB / 0.8212 GB, free: 5.789 MB / 0.6544 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.102e-05/2.49, allocations: 7.625 kB / 0.8212 GB, free: 5.785 MB / 0.6544 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0004092/2.49, allocations: 0.5509 MB / 0.8218 GB, free: 5.227 MB / 0.6544 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.814e-06/2.49, allocations: 0 / 0.8218 GB, free: 5.227 MB / 0.6544 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.000278/2.491, allocations: 147 kB / 0.8219 GB, free: 5.082 MB / 0.6544 GB Notification: Performance of postOpt removeConstants (simulation): time 8.702e-05/2.491, allocations: 96.81 kB / 0.822 GB, free: 4.969 MB / 0.6544 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.302e-05/2.491, allocations: 3.688 kB / 0.822 GB, free: 4.969 MB / 0.6544 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 5.948e-05/2.491, allocations: 0 / 0.822 GB, free: 4.969 MB / 0.6544 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.691e-05/2.491, allocations: 10.84 kB / 0.822 GB, free: 4.961 MB / 0.6544 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.869e-06/2.491, allocations: 0 / 0.822 GB, free: 4.961 MB / 0.6544 GB Notification: Performance of sorting global known variables: time 0.0002236/2.491, allocations: 206.8 kB / 0.8222 GB, free: 4.797 MB / 0.6544 GB Notification: Performance of sort global known variables: time 1.8e-07/2.491, allocations: 4 kB / 0.8222 GB, free: 4.793 MB / 0.6544 GB Notification: Performance of remove unused functions: time 0.00424/2.495, allocations: 1.432 MB / 0.8236 GB, free: 3.453 MB / 0.6544 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 (2): * Single equations (assignments): 1 * 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.008582/2.504, allocations: 2.815 MB / 0.8264 GB, free: 0.9531 MB / 0.6544 GB Notification: Performance of simCode: created initialization part: time 0.0004238/2.504, allocations: 111.6 kB / 0.8265 GB, free: 0.875 MB / 0.6544 GB Notification: Performance of simCode: created event and clocks part: time 3.326e-06/2.504, allocations: 0 / 0.8265 GB, free: 0.875 MB / 0.6544 GB Notification: Performance of simCode: created simulation system equations: time 0.0001046/2.505, allocations: 26.58 kB / 0.8265 GB, free: 0.8555 MB / 0.6544 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004588/2.505, allocations: 68.03 kB / 0.8266 GB, free: 0.8086 MB / 0.6544 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.005296/2.51, allocations: 2.993 MB / 0.8295 GB, free: 13.91 MB / 0.67 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003204/2.511, allocations: 0.7558 MB / 0.8302 GB, free: 13.12 MB / 0.67 GB Notification: Performance of simCode: alias equations: time 0.0001503/2.511, allocations: 38.5 kB / 0.8303 GB, free: 13.09 MB / 0.67 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001082/2.511, allocations: 90.53 kB / 0.8303 GB, free: 13.06 MB / 0.67 GB Notification: Performance of SimCode: time 5.61e-07/2.511, allocations: 0 / 0.8303 GB, free: 13.06 MB / 0.67 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 1.531/4.042, allocations: 49.6 MB / 0.8788 GB, free: 11.75 MB / 0.7169 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0005038/4.042, allocations: 299.8 kB / 0.8791 GB, free: 11.37 MB / 0.7169 GB Notification: Performance of buildModelFMU: Generate platform static: time 4.2/8.242, allocations: 3.125 kB / 0.8791 GB, free: 11.37 MB / 0.7169 GB (rm -f ThermoSysPro_ThermoSysPro.Fluid.Examples.SimpleExamples.TestSingularPressureLoss.pipe ; mkfifo ThermoSysPro_ThermoSysPro.Fluid.Examples.SimpleExamples.TestSingularPressureLoss.pipe ; head -c 1048576 < ThermoSysPro_ThermoSysPro.Fluid.Examples.SimpleExamples.TestSingularPressureLoss.pipe >> ../files/ThermoSysPro_ThermoSysPro.Fluid.Examples.SimpleExamples.TestSingularPressureLoss.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator --tempDir=temp_ThermoSysPro_ThermoSysPro_Fluid_Examples_SimpleExamples_TestSingularPressureLoss_fmu --startTime=0 --stopTime=1000 --timeout=50 --tolerance=1e-06 ThermoSysPro_ThermoSysPro_Fluid_Examples_SimpleExamples_TestSingularPressureLoss.fmu > ThermoSysPro_ThermoSysPro.Fluid.Examples.SimpleExamples.TestSingularPressureLoss.pipe 2>&1)