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.008388/0.008388, allocations: 101.2 kB / 15.73 MB, free: 6.043 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001993/0.001993, allocations: 197.5 kB / 16.68 MB, free: 5.961 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.448/1.448, allocations: 205.1 MB / 222.5 MB, free: 4.52 MB / 174.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/HelmholtzMedia master/package.mo): time 0.0486/0.0486, allocations: 9.104 MB / 279 MB, free: 12.07 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.001646/0.001647, allocations: 67.91 kB / 387 MB, free: 8.531 MB / 286.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3001/0.3018, allocations: 48.15 MB / 435.1 MB, free: 7.172 MB / 318.1 MB Notification: Performance of NFInst.instantiate(HelmholtzMedia.Examples.ConvergenceTest.SinglePhase_setState_psine_Tramp): time 0.0255/0.3274, allocations: 18.13 MB / 453.2 MB, free: 9.922 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.0229/0.3503, allocations: 17.54 MB / 470.8 MB, free: 11.5 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002901/0.3506, allocations: 1.062 kB / 470.8 MB, free: 11.5 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.001088/0.3518, allocations: 297.5 kB / 471.1 MB, free: 11.29 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0008483/0.3527, allocations: 226.9 kB / 471.3 MB, free: 11.09 MB / 350.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.02703/0.3797, allocations: 7.304 MB / 478.6 MB, free: 5.199 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.000569/0.3803, allocations: 346.2 kB / 478.9 MB, free: 4.859 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 7.855e-05/0.3804, allocations: 16.31 kB / 478.9 MB, free: 4.844 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0004042/0.3808, allocations: 159.3 kB / 479.1 MB, free: 4.688 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001997/0.381, allocations: 99.56 kB / 479.2 MB, free: 4.59 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 2.364e-05/0.3811, allocations: 8 kB / 479.2 MB, free: 4.582 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.02902/0.4101, allocations: 10.62 MB / 489.8 MB, free: 9.938 MB / 366.1 MB Notification: Performance of NFScalarize.scalarize: time 6.339e-05/0.4102, allocations: 23.91 kB / 489.9 MB, free: 9.914 MB / 366.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0002365/0.4105, allocations: 95.48 kB / 489.9 MB, free: 9.82 MB / 366.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0159/0.4264, allocations: 4.463 MB / 494.4 MB, free: 5.348 MB / 366.1 MB Notification: Performance of FrontEnd - DAE generated: time 7.103e-06/0.4264, allocations: 0 / 494.4 MB, free: 5.348 MB / 366.1 MB Notification: Performance of FrontEnd: time 2.204e-06/0.4264, allocations: 0 / 494.4 MB, free: 5.348 MB / 366.1 MB Notification: Performance of Transformations before backend: time 1.785e-05/0.4265, allocations: 4 kB / 494.4 MB, free: 5.344 MB / 366.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.003161/0.4296, allocations: 1.095 MB / 495.5 MB, free: 4.199 MB / 366.1 MB Notification: Performance of prepare preOptimizeDAE: time 6.525e-05/0.4297, allocations: 8.031 kB / 495.5 MB, free: 4.191 MB / 366.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 5.449e-05/0.4298, allocations: 54.47 kB / 495.6 MB, free: 4.129 MB / 366.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 6.722e-05/0.4299, allocations: 15.81 kB / 495.6 MB, free: 4.113 MB / 366.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001867/0.43, allocations: 190.6 kB / 495.8 MB, free: 3.887 MB / 366.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.463e-05/0.4301, allocations: 4 kB / 495.8 MB, free: 3.883 MB / 366.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.231e-05/0.4301, allocations: 8 kB / 495.8 MB, free: 3.875 MB / 366.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004059/0.4305, allocations: 176.2 kB / 496 MB, free: 3.699 MB / 366.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.004e-05/0.4305, allocations: 0 / 496 MB, free: 3.699 MB / 366.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.247e-05/0.4305, allocations: 0 / 496 MB, free: 3.699 MB / 366.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.244e-05/0.4306, allocations: 11.98 kB / 496 MB, free: 3.688 MB / 366.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0004163/0.431, allocations: 164.2 kB / 496.1 MB, free: 3.527 MB / 366.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0003045/0.4313, allocations: 293.9 kB / 496.4 MB, free: 3.191 MB / 366.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003364/0.4317, allocations: 186.9 kB / 496.6 MB, free: 3 MB / 366.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002682/0.4319, allocations: 161.6 kB / 496.8 MB, free: 2.84 MB / 366.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.1631/0.595, allocations: 93.61 MB / 0.5765 GB, free: 4.816 MB / 478.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.385e-05/0.5952, allocations: 34.5 kB / 0.5766 GB, free: 4.773 MB / 478.1 MB Notification: Performance of pre-optimization done (n=48): time 4.669e-06/0.5952, allocations: 0 / 0.5766 GB, free: 4.773 MB / 478.1 MB Notification: Performance of matching and sorting (n=48): time 0.001249/0.5964, allocations: 483.5 kB / 0.577 GB, free: 4.297 MB / 478.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.474e-05/0.5965, allocations: 59.39 kB / 0.5771 GB, free: 4.227 MB / 478.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001328/0.5966, allocations: 133.1 kB / 0.5772 GB, free: 4.09 MB / 478.1 MB Notification: Performance of collectPreVariables (initialization): time 2.177e-05/0.5967, allocations: 29.7 kB / 0.5772 GB, free: 4.055 MB / 478.1 MB Notification: Performance of collectInitialEqns (initialization): time 4.678e-05/0.5967, allocations: 89.14 kB / 0.5773 GB, free: 3.965 MB / 478.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001693/0.5969, allocations: 145.8 kB / 0.5775 GB, free: 3.82 MB / 478.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 7.57e-05/0.597, allocations: 45.69 kB / 0.5775 GB, free: 3.77 MB / 478.1 MB Notification: Performance of setup shared object (initialization): time 0.0001519/0.5971, allocations: 338.8 kB / 0.5778 GB, free: 3.43 MB / 478.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002566/0.5974, allocations: 112.4 kB / 0.5779 GB, free: 3.32 MB / 478.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002468/0.5976, allocations: 122.1 kB / 0.5781 GB, free: 3.199 MB / 478.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0005319/0.5982, allocations: 291.6 kB / 0.5783 GB, free: 2.91 MB / 478.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.737e-06/0.5982, allocations: 0 / 0.5783 GB, free: 2.91 MB / 478.1 MB Notification: Performance of matching and sorting (n=48) (initialization): time 0.0007393/0.599, allocations: 337.1 kB / 0.5787 GB, free: 2.578 MB / 478.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.188e-05/0.599, allocations: 4 kB / 0.5787 GB, free: 2.574 MB / 478.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.766e-06/0.599, allocations: 0 / 0.5787 GB, free: 2.574 MB / 478.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.91e-05/0.599, allocations: 3.984 kB / 0.5787 GB, free: 2.57 MB / 478.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001688/0.5992, allocations: 27.97 kB / 0.5787 GB, free: 2.543 MB / 478.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.925e-06/0.5992, allocations: 0 / 0.5787 GB, free: 2.543 MB / 478.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001671/0.5994, allocations: 31.67 kB / 0.5787 GB, free: 2.512 MB / 478.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.741e-05/0.5994, allocations: 11.94 kB / 0.5787 GB, free: 2.5 MB / 478.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.0001278/0.5996, allocations: 125.8 kB / 0.5789 GB, free: 2.367 MB / 478.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.592e-05/0.5996, allocations: 31.64 kB / 0.5789 GB, free: 2.336 MB / 478.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0007874/0.6004, allocations: 407.8 kB / 0.5793 GB, free: 1.93 MB / 478.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.922e-05/0.6004, allocations: 11.98 kB / 0.5793 GB, free: 1.918 MB / 478.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.911e-06/0.6005, allocations: 0 / 0.5793 GB, free: 1.918 MB / 478.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.716e-06/0.6005, allocations: 4 kB / 0.5793 GB, free: 1.914 MB / 478.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0003048/0.6008, allocations: 297.5 kB / 0.5796 GB, free: 1.57 MB / 478.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.046e-06/0.6008, allocations: 0 / 0.5796 GB, free: 1.57 MB / 478.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001371/0.6009, allocations: 23.97 kB / 0.5796 GB, free: 1.547 MB / 478.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 3.667e-06/0.6009, allocations: 0 / 0.5796 GB, free: 1.547 MB / 478.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.56e-05/0.601, allocations: 4 kB / 0.5796 GB, free: 1.543 MB / 478.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.687e-06/0.601, allocations: 0 / 0.5796 GB, free: 1.543 MB / 478.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.343e-06/0.601, allocations: 0 / 0.5796 GB, free: 1.543 MB / 478.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0006478/0.6016, allocations: 381.3 kB / 0.58 GB, free: 1.152 MB / 478.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001467/0.6018, allocations: 116.7 kB / 0.5801 GB, free: 1.02 MB / 478.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.163e-05/0.6018, allocations: 4 kB / 0.5801 GB, free: 1.016 MB / 478.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001369/0.602, allocations: 11.98 kB / 0.5801 GB, free: 1.004 MB / 478.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.387e-05/0.602, allocations: 15.98 kB / 0.5801 GB, free: 0.9883 MB / 478.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.864e-05/0.6021, allocations: 15.92 kB / 0.5801 GB, free: 0.9727 MB / 478.1 MB Notification: Performance of sorting global known variables: time 7.751e-05/0.6022, allocations: 103.3 kB / 0.5802 GB, free: 0.8711 MB / 478.1 MB Notification: Performance of sort global known variables: time 2.2e-07/0.6022, allocations: 0 / 0.5802 GB, free: 0.8711 MB / 478.1 MB Notification: Performance of remove unused functions: time 0.00286/0.605, allocations: 1.113 MB / 0.5813 GB, free: 15.76 MB / 494.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.006701/0.6118, allocations: 2.467 MB / 0.5837 GB, free: 13.27 MB / 494.1 MB Notification: Performance of simCode: created initialization part: time 0.0007778/0.6126, allocations: 303.2 kB / 0.584 GB, free: 12.97 MB / 494.1 MB Notification: Performance of simCode: created event and clocks part: time 4.969e-06/0.6126, allocations: 4 kB / 0.584 GB, free: 12.96 MB / 494.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0002979/0.6129, allocations: 160.3 kB / 0.5842 GB, free: 12.81 MB / 494.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000875/0.6138, allocations: 163.9 kB / 0.5843 GB, free: 12.65 MB / 494.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.00258/0.6164, allocations: 0.9143 MB / 0.5852 GB, free: 11.69 MB / 494.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002959/0.6167, allocations: 0.7368 MB / 0.5859 GB, free: 10.93 MB / 494.1 MB Notification: Performance of simCode: alias equations: time 0.0001138/0.6168, allocations: 20.42 kB / 0.5859 GB, free: 10.91 MB / 494.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 9.683e-05/0.6169, allocations: 55.34 kB / 0.586 GB, free: 10.85 MB / 494.1 MB Notification: Performance of SimCode: time 3.81e-07/0.6169, allocations: 0 / 0.586 GB, free: 10.85 MB / 494.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.2788/0.8957, allocations: 33.69 MB / 0.6189 GB, free: 161.6 MB / 494.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 9.38/10.28, allocations: 3.094 kB / 0.6189 GB, free: 161.6 MB / 494.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)