Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr HelmholtzMedia_HelmholtzMedia.Examples.ConvergenceTest.SinglePhase_setState_psine_Tramp.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 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/HelmholtzMedia master/package.mo", uses=false) Using package HelmholtzMedia with version (/home/hudson/saved_omc/libraries/.openmodelica/libraries/HelmholtzMedia master/package.mo) Using package Modelica with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+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(HelmholtzMedia.Examples.ConvergenceTest.SinglePhase_setState_psine_Tramp,fileNamePrefix="HelmholtzMedia_HelmholtzMedia_Examples_ConvergenceTest_SinglePhase_setState_psine_Tramp",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(HelmholtzMedia.Examples.ConvergenceTest.SinglePhase_setState_psine_Tramp,fileNamePrefix="HelmholtzMedia_HelmholtzMedia_Examples_ConvergenceTest_SinglePhase_setState_psine_Tramp",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.001417/0.001417, allocations: 108 kB / 15.6 MB, free: 132 kB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001573/0.001573, allocations: 193.6 kB / 16.53 MB, free: 6.391 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.51/1.51, allocations: 205.1 MB / 222.4 MB, free: 4.598 MB / 174.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/HelmholtzMedia master/package.mo): time 0.04466/0.04466, allocations: 9.097 MB / 278.9 MB, free: 12.2 MB / 238.1 MB Notification: Modelica requested package Complex of version 3.2.3. Complex 4.0.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Modelica requested package ModelicaServices of version 3.2.3. ModelicaServices 4.0.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Performance of FrontEnd - loaded program: time 0.002628/0.002628, allocations: 71.81 kB / 338.1 MB, free: 25.36 MB / 254.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1248/0.1274, allocations: 48.16 MB / 386.3 MB, free: 9.16 MB / 286.1 MB Notification: Performance of NFInst.instantiate(HelmholtzMedia.Examples.ConvergenceTest.SinglePhase_setState_psine_Tramp): time 0.02262/0.1501, allocations: 18.14 MB / 404.4 MB, free: 6.934 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.01826/0.1684, allocations: 17.51 MB / 421.9 MB, free: 5.363 MB / 318.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0003303/0.1688, allocations: 0 / 421.9 MB, free: 5.363 MB / 318.1 MB Notification: Performance of NFTyping.typeComponents: time 0.001061/0.1699, allocations: 302.5 kB / 422.2 MB, free: 5.066 MB / 318.1 MB Notification: Performance of NFTyping.typeBindings: time 0.000658/0.1706, allocations: 222.6 kB / 422.5 MB, free: 4.848 MB / 318.1 MB [/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/Math/package.mo:1125:3-1182:12:writable] Warning: Pure function 'Modelica.Math.Matrices.solve' contains a call to impure function 'Modelica.Math.Matrices.LAPACK.dgesv_vec'. [/home/hudson/saved_omc/libraries/.openmodelica/libraries/HelmholtzMedia master/Interfaces/PartialHelmholtzMedium/package.mo:887:13-887:51:writable] Warning: RSS_ls was used before it was defined (given a value). Additional such uses may exist for the variable, but some messages were suppressed. [/home/hudson/saved_omc/libraries/.openmodelica/libraries/HelmholtzMedia master/Interfaces/PartialHelmholtzMedium/package.mo:887:13-887:51:writable] Warning: lambda_ls was used before it was defined (given a value). Additional such uses may exist for the variable, but some messages were suppressed. [/home/hudson/saved_omc/libraries/.openmodelica/libraries/HelmholtzMedia master/Interfaces/PartialHelmholtzMedium/package.mo:1231:13-1231:51:writable] Warning: RSS_ls was used before it was defined (given a value). Additional such uses may exist for the variable, but some messages were suppressed. [/home/hudson/saved_omc/libraries/.openmodelica/libraries/HelmholtzMedia master/Interfaces/PartialHelmholtzMedium/package.mo:1231:13-1231:51:writable] Warning: lambda_ls was used before it was defined (given a value). Additional such uses may exist for the variable, but some messages were suppressed. Notification: Performance of NFTyping.typeClassSections: time 0.2525/0.4232, allocations: 7.3 MB / 429.8 MB, free: 16.23 MB / 318.1 MB Notification: Performance of NFFlatten.flatten: time 0.0005546/0.4237, allocations: 355 kB / 430.1 MB, free: 16.23 MB / 318.1 MB Notification: Performance of NFFlatten.resolveConnections: time 8.789e-05/0.4238, allocations: 16.52 kB / 430.1 MB, free: 16.23 MB / 318.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.000336/0.4242, allocations: 152.2 kB / 430.3 MB, free: 16.23 MB / 318.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.000191/0.4244, allocations: 97.39 kB / 430.4 MB, free: 16.23 MB / 318.1 MB Notification: Performance of NFPackage.collectConstants: time 2.057e-05/0.4244, allocations: 7.516 kB / 430.4 MB, free: 16.23 MB / 318.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.02285/0.4473, allocations: 10.12 MB / 440.5 MB, free: 16.21 MB / 318.1 MB Notification: Performance of NFScalarize.scalarize: time 8.246e-05/0.4474, allocations: 22.83 kB / 440.5 MB, free: 16.21 MB / 318.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0003625/0.4478, allocations: 97.02 kB / 440.6 MB, free: 16.21 MB / 318.1 MB Notification: Performance of NFConvertDAE.convert: time 0.01595/0.4637, allocations: 4.465 MB / 445.1 MB, free: 15.66 MB / 318.1 MB Notification: Performance of FrontEnd - DAE generated: time 6.803e-06/0.4638, allocations: 0 / 445.1 MB, free: 15.66 MB / 318.1 MB Notification: Performance of FrontEnd: time 1.694e-06/0.4638, allocations: 0 / 445.1 MB, free: 15.66 MB / 318.1 MB Notification: Performance of Transformations before backend: time 7.214e-06/0.4638, allocations: 0 / 445.1 MB, free: 15.66 MB / 318.1 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 48 * Number of variables: 48 Notification: Performance of Generate backend data structure: time 0.003802/0.4676, allocations: 1.097 MB / 446.2 MB, free: 14.89 MB / 318.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.992e-05/0.4677, allocations: 8.438 kB / 446.2 MB, free: 14.89 MB / 318.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 4.932e-05/0.4677, allocations: 52.11 kB / 446.2 MB, free: 14.84 MB / 318.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 5.798e-05/0.4678, allocations: 16.97 kB / 446.3 MB, free: 14.84 MB / 318.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001271/0.4679, allocations: 195.2 kB / 446.4 MB, free: 14.62 MB / 318.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.699e-05/0.468, allocations: 7 kB / 446.4 MB, free: 14.62 MB / 318.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.666e-05/0.468, allocations: 3.5 kB / 446.5 MB, free: 14.62 MB / 318.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003903/0.4684, allocations: 166.2 kB / 446.6 MB, free: 14.56 MB / 318.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.009e-05/0.4684, allocations: 0 / 446.6 MB, free: 14.56 MB / 318.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.631e-05/0.4684, allocations: 3.688 kB / 446.6 MB, free: 14.56 MB / 318.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.334e-05/0.4685, allocations: 17.08 kB / 446.6 MB, free: 14.55 MB / 318.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0004337/0.4689, allocations: 158.6 kB / 446.8 MB, free: 14.52 MB / 318.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0002889/0.4692, allocations: 289 kB / 447.1 MB, free: 14.28 MB / 318.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003626/0.4696, allocations: 182.1 kB / 447.3 MB, free: 14.23 MB / 318.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002914/0.4699, allocations: 156.9 kB / 447.4 MB, free: 14.21 MB / 318.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.1588/0.6287, allocations: 93.62 MB / 0.5283 GB, free: 5.367 MB / 414.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 6.414e-05/0.6288, allocations: 35.22 kB / 0.5284 GB, free: 5.324 MB / 414.1 MB Notification: Performance of pre-optimization done (n=48): time 3.987e-06/0.6288, allocations: 0 / 0.5284 GB, free: 5.324 MB / 414.1 MB Notification: Performance of matching and sorting (n=48): time 0.001366/0.6302, allocations: 479.5 kB / 0.5288 GB, free: 4.855 MB / 414.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0002657/0.6304, allocations: 59.41 kB / 0.5289 GB, free: 4.785 MB / 414.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001759/0.6306, allocations: 134.1 kB / 0.529 GB, free: 4.645 MB / 414.1 MB Notification: Performance of collectPreVariables (initialization): time 2.062e-05/0.6307, allocations: 30.36 kB / 0.5291 GB, free: 4.609 MB / 414.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002021/0.6309, allocations: 93.12 kB / 0.5291 GB, free: 4.516 MB / 414.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001434/0.631, allocations: 146.5 kB / 0.5293 GB, free: 4.375 MB / 414.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002129/0.6312, allocations: 45.7 kB / 0.5293 GB, free: 4.324 MB / 414.1 MB Notification: Performance of setup shared object (initialization): time 0.0001514/0.6314, allocations: 330.8 kB / 0.5296 GB, free: 3.992 MB / 414.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003013/0.6317, allocations: 120.4 kB / 0.5298 GB, free: 3.875 MB / 414.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.000266/0.632, allocations: 120 kB / 0.5299 GB, free: 3.758 MB / 414.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0005629/0.6325, allocations: 283.7 kB / 0.5301 GB, free: 3.477 MB / 414.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.91e-06/0.6326, allocations: 7.938 kB / 0.5301 GB, free: 3.469 MB / 414.1 MB Notification: Performance of matching and sorting (n=48) (initialization): time 0.0006461/0.6332, allocations: 333.5 kB / 0.5305 GB, free: 3.145 MB / 414.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.642e-05/0.6333, allocations: 4 kB / 0.5305 GB, free: 3.141 MB / 414.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.201e-05/0.6333, allocations: 1.203 kB / 0.5305 GB, free: 3.141 MB / 414.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.269e-05/0.6333, allocations: 0 / 0.5305 GB, free: 3.141 MB / 414.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001691/0.6335, allocations: 23.97 kB / 0.5305 GB, free: 3.117 MB / 414.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.563e-06/0.6335, allocations: 4 kB / 0.5305 GB, free: 3.113 MB / 414.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001785/0.6337, allocations: 35.67 kB / 0.5305 GB, free: 3.078 MB / 414.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.564e-05/0.6337, allocations: 8.531 kB / 0.5305 GB, free: 3.07 MB / 414.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 1 * Number of states: 0 () * Number of discrete variables: 6 (state_Ts.phase,state_ps.phase,state_ph.phase,state_pd.phase,state_dT.phase,state.phase) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (12): * Single equations (assignments): 6 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 6 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.0001705/0.6339, allocations: 133 kB / 0.5307 GB, free: 2.934 MB / 414.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.24e-05/0.6339, allocations: 23 kB / 0.5307 GB, free: 2.914 MB / 414.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0008181/0.6348, allocations: 411.3 kB / 0.5311 GB, free: 2.516 MB / 414.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.064e-05/0.6348, allocations: 7.984 kB / 0.5311 GB, free: 2.508 MB / 414.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.083e-06/0.6348, allocations: 1.375 kB / 0.5311 GB, free: 2.508 MB / 414.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.537e-06/0.6348, allocations: 0 / 0.5311 GB, free: 2.508 MB / 414.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002959/0.6351, allocations: 294.9 kB / 0.5314 GB, free: 2.172 MB / 414.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.195e-06/0.6351, allocations: 0 / 0.5314 GB, free: 2.172 MB / 414.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001295/0.6353, allocations: 19.98 kB / 0.5314 GB, free: 2.152 MB / 414.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 3.156e-06/0.6353, allocations: 0 / 0.5314 GB, free: 2.152 MB / 414.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.64e-05/0.6353, allocations: 14.98 kB / 0.5314 GB, free: 2.141 MB / 414.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.532e-06/0.6353, allocations: 0 / 0.5314 GB, free: 2.141 MB / 414.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.765e-06/0.6353, allocations: 0.8594 kB / 0.5314 GB, free: 2.141 MB / 414.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0006804/0.636, allocations: 370.6 kB / 0.5318 GB, free: 1.766 MB / 414.1 MB Notification: Performance of postOpt removeConstants (simulation): time 8.919e-05/0.6361, allocations: 121.3 kB / 0.5319 GB, free: 1.633 MB / 414.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.521e-05/0.6361, allocations: 8 kB / 0.5319 GB, free: 1.625 MB / 414.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001268/0.6363, allocations: 15.97 kB / 0.5319 GB, free: 1.609 MB / 414.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.293e-05/0.6363, allocations: 15.98 kB / 0.5319 GB, free: 1.594 MB / 414.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.136e-05/0.6364, allocations: 0 / 0.5319 GB, free: 1.594 MB / 414.1 MB Notification: Performance of sorting global known variables: time 0.0001467/0.6365, allocations: 107.2 kB / 0.532 GB, free: 1.492 MB / 414.1 MB Notification: Performance of sort global known variables: time 1e-07/0.6365, allocations: 3.281 kB / 0.532 GB, free: 1.492 MB / 414.1 MB Notification: Performance of remove unused functions: time 0.004511/0.641, allocations: 1.114 MB / 0.5331 GB, free: 388 kB / 414.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * Number of states: 0 () * Number of discrete variables: 6 (state.phase,state_dT.phase,state_pd.phase,state_ph.phase,state_ps.phase,state_Ts.phase) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (12): * Single equations (assignments): 6 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 6 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.006868/0.6479, allocations: 2.491 MB / 0.5355 GB, free: 14.03 MB / 430.1 MB Notification: Performance of simCode: created initialization part: time 0.0007891/0.6487, allocations: 294.5 kB / 0.5358 GB, free: 13.75 MB / 430.1 MB Notification: Performance of simCode: created event and clocks part: time 6.051e-06/0.6488, allocations: 8 kB / 0.5358 GB, free: 13.74 MB / 430.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0003191/0.6491, allocations: 164.3 kB / 0.536 GB, free: 13.58 MB / 430.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0009438/0.65, allocations: 158.5 kB / 0.5361 GB, free: 13.44 MB / 430.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003128/0.6532, allocations: 0.911 MB / 0.537 GB, free: 12.49 MB / 430.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004442/0.6536, allocations: 0.7367 MB / 0.5377 GB, free: 11.73 MB / 430.1 MB Notification: Performance of simCode: alias equations: time 0.0001322/0.6538, allocations: 16.42 kB / 0.5378 GB, free: 11.71 MB / 430.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.000101/0.6539, allocations: 51.41 kB / 0.5378 GB, free: 11.66 MB / 430.1 MB Notification: Performance of SimCode: time 2.3e-07/0.6539, allocations: 4 kB / 0.5378 GB, free: 11.66 MB / 430.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.07686/0.7308, allocations: 33.54 MB / 0.5706 GB, free: 10.19 MB / 462.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 8.947/9.678, allocations: 15.86 kB / 0.5706 GB, free: 10.17 MB / 462.1 MB (rm -f HelmholtzMedia_HelmholtzMedia.Examples.ConvergenceTest.SinglePhase_setState_psine_Tramp.pipe ; mkfifo HelmholtzMedia_HelmholtzMedia.Examples.ConvergenceTest.SinglePhase_setState_psine_Tramp.pipe ; head -c 1048576 < HelmholtzMedia_HelmholtzMedia.Examples.ConvergenceTest.SinglePhase_setState_psine_Tramp.pipe >> ../files/HelmholtzMedia_HelmholtzMedia.Examples.ConvergenceTest.SinglePhase_setState_psine_Tramp.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator --tempDir=temp_HelmholtzMedia_HelmholtzMedia_Examples_ConvergenceTest_SinglePhase_setState_psine_Tramp_fmu --startTime=0 --stopTime=12 --timeout=50 --tolerance=1e-06 HelmholtzMedia_HelmholtzMedia_Examples_ConvergenceTest_SinglePhase_setState_psine_Tramp.fmu > HelmholtzMedia_HelmholtzMedia.Examples.ConvergenceTest.SinglePhase_setState_psine_Tramp.pipe 2>&1)