Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr ExternalMedia_ExternalMedia.Test.TestMedium.TestBasePropertiesDynamic.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 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ExternalMedia 4.0.0/package.mo", uses=false) Using package ExternalMedia with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ExternalMedia 4.0.0/package.mo) Using package Modelica with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+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: translateModel(ExternalMedia.Test.TestMedium.TestBasePropertiesDynamic,tolerance=1e-07,outputFormat="empty",numberOfIntervals=1600,variableFilter="",fileNamePrefix="ExternalMedia_ExternalMedia.Test.TestMedium.TestBasePropertiesDynamic") translateModel(ExternalMedia.Test.TestMedium.TestBasePropertiesDynamic,tolerance=1e-07,outputFormat="empty",numberOfIntervals=1600,variableFilter="",fileNamePrefix="ExternalMedia_ExternalMedia.Test.TestMedium.TestBasePropertiesDynamic") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.008138/0.008138, allocations: 96.7 kB / 15.73 MB, free: 6.055 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.001665/0.001665, allocations: 194.3 kB / 16.67 MB, free: 5.977 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.524/1.524, allocations: 222.9 MB / 240.4 MB, free: 4.32 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ExternalMedia 4.0.0/package.mo): time 0.1625/0.1625, allocations: 2.763 MB / 293.3 MB, free: 3.562 MB / 238.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001458/0.001458, allocations: 71.88 kB / 405.9 MB, free: 0.9453 MB / 334.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3742/0.3757, allocations: 50.23 MB / 456.1 MB, free: 21.18 MB / 350.1 MB Notification: Performance of NFInst.instantiate(ExternalMedia.Test.TestMedium.TestBasePropertiesDynamic): time 0.008881/0.3846, allocations: 8.348 MB / 464.5 MB, free: 15.08 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.007933/0.3926, allocations: 9.464 MB / 473.9 MB, free: 8.059 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002333/0.3929, allocations: 3.938 kB / 473.9 MB, free: 8.055 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.00075/0.3936, allocations: 169.9 kB / 474.1 MB, free: 7.957 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0003897/0.3941, allocations: 94.19 kB / 474.2 MB, free: 7.898 MB / 350.1 MB [/home/hudson/saved_omc/libraries/.openmodelica/libraries/ExternalMedia 4.0.0/Media/BaseClasses/ExternalTwoPhaseMedium.mo:1092:15-1106:21:writable] Warning: Pure function 'ExternalMedia.Test.TestMedium.TestBasePropertiesDynamic.Medium.setSat_p_state' contains a call to impure function 'ExternalMedia.Test.TestMedium.TestBasePropertiesDynamic.Medium.setSat_p'. [/home/hudson/saved_omc/libraries/.openmodelica/libraries/ExternalMedia 4.0.0/Media/BaseClasses/ExternalTwoPhaseMedium.mo:1132:25-1146:21:writable] Warning: Pure function 'ExternalMedia.Test.TestMedium.TestBasePropertiesDynamic.Medium.setBubbleState' contains a call to impure function 'ExternalMedia.Test.TestMedium.TestBasePropertiesDynamic.Medium.setState_ph'. [/home/hudson/saved_omc/libraries/.openmodelica/libraries/ExternalMedia 4.0.0/Media/BaseClasses/ExternalTwoPhaseMedium.mo:1148:25-1162:18:writable] Warning: Pure function 'ExternalMedia.Test.TestMedium.TestBasePropertiesDynamic.Medium.setDewState' contains a call to impure function 'ExternalMedia.Test.TestMedium.TestBasePropertiesDynamic.Medium.setState_ph'. Notification: Performance of NFTyping.typeClassSections: time 0.005403/0.3995, allocations: 1.455 MB / 475.7 MB, free: 7.039 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.0005183/0.4, allocations: 258.6 kB / 475.9 MB, free: 6.926 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 7.092e-05/0.4001, allocations: 12.3 kB / 475.9 MB, free: 6.926 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.005163/0.4053, allocations: 147.4 kB / 476.1 MB, free: 6.863 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002224/0.4055, allocations: 84.67 kB / 476.1 MB, free: 6.828 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 2.744e-05/0.4055, allocations: 7.906 kB / 476.1 MB, free: 6.828 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.002845/0.4084, allocations: 474.5 kB / 476.6 MB, free: 6.754 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 7.975e-05/0.4085, allocations: 30.56 kB / 476.6 MB, free: 6.738 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001155/0.4086, allocations: 88.61 kB / 476.7 MB, free: 6.691 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.001397/0.41, allocations: 0.4921 MB / 477.2 MB, free: 6.504 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.911e-06/0.41, allocations: 0.6562 kB / 477.2 MB, free: 6.504 MB / 350.1 MB Notification: Performance of FrontEnd: time 1.623e-06/0.41, allocations: 1.375 kB / 477.2 MB, free: 6.504 MB / 350.1 MB Notification: Performance of Transformations before backend: time 7.574e-06/0.41, allocations: 0 / 477.2 MB, free: 6.504 MB / 350.1 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 50 * Number of variables: 50 Notification: Performance of Generate backend data structure: time 0.0009245/0.411, allocations: 0.5611 MB / 477.8 MB, free: 6.02 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.226e-05/0.411, allocations: 9.625 kB / 477.8 MB, free: 6.02 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0003756/0.4114, allocations: 63.14 kB / 477.9 MB, free: 5.996 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002084/0.4116, allocations: 197.7 kB / 478 MB, free: 5.785 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.788e-05/0.4117, allocations: 10.44 kB / 478.1 MB, free: 5.781 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.122e-05/0.4117, allocations: 11.25 kB / 478.1 MB, free: 5.777 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0005397/0.4123, allocations: 248.3 kB / 478.3 MB, free: 5.652 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.062e-05/0.4123, allocations: 0 / 478.3 MB, free: 5.652 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.072e-05/0.4123, allocations: 9.281 kB / 478.3 MB, free: 5.645 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.72e-05/0.4123, allocations: 11.56 kB / 478.3 MB, free: 5.641 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.000508/0.4128, allocations: 205.6 kB / 478.5 MB, free: 5.578 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0008089/0.4137, allocations: 0.6743 MB / 479.2 MB, free: 5.008 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.000642/0.4143, allocations: 240.1 kB / 479.4 MB, free: 4.898 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002633/0.4146, allocations: 155.4 kB / 479.6 MB, free: 4.82 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0002611/0.4149, allocations: 332.6 kB / 479.9 MB, free: 4.508 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.459e-05/0.4149, allocations: 37.47 kB / 480 MB, free: 4.465 MB / 350.1 MB Notification: Performance of pre-optimization done (n=44): time 2.485e-06/0.4149, allocations: 0 / 480 MB, free: 4.465 MB / 350.1 MB Notification: Performance of matching and sorting (n=48): time 0.00293/0.4178, allocations: 1.244 MB / 481.2 MB, free: 3.832 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 2.886e-05/0.4179, allocations: 57.72 kB / 481.3 MB, free: 3.766 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 9.703e-05/0.418, allocations: 119.8 kB / 481.4 MB, free: 3.66 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 1.973e-05/0.418, allocations: 30.8 kB / 481.4 MB, free: 3.625 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 5.25e-05/0.4181, allocations: 103 kB / 481.5 MB, free: 3.527 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 9.494e-05/0.4182, allocations: 162.1 kB / 481.7 MB, free: 3.398 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 8.792e-05/0.4182, allocations: 62.7 kB / 481.7 MB, free: 3.359 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 7.177e-05/0.4183, allocations: 330.8 kB / 482 MB, free: 3.039 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002412/0.4186, allocations: 128.5 kB / 482.2 MB, free: 2.988 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002871/0.4189, allocations: 190.6 kB / 482.4 MB, free: 2.879 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0005721/0.4194, allocations: 341.1 kB / 482.7 MB, free: 2.691 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.325e-06/0.4195, allocations: 1.312 kB / 482.7 MB, free: 2.691 MB / 350.1 MB Notification: Performance of matching and sorting (n=55) (initialization): time 0.001182/0.4206, allocations: 485.8 kB / 483.2 MB, free: 2.488 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.05e-05/0.4207, allocations: 6.75 kB / 483.2 MB, free: 2.488 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.947e-06/0.4207, allocations: 1.156 kB / 483.2 MB, free: 2.488 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0008214/0.4215, allocations: 158.9 kB / 483.3 MB, free: 2.453 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001383/0.4217, allocations: 38.38 kB / 483.4 MB, free: 2.445 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0006099/0.4223, allocations: 0.6669 MB / 484 MB, free: 1.863 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001448/0.4224, allocations: 13.52 kB / 484 MB, free: 1.859 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.933e-05/0.4225, allocations: 6.844 kB / 484.1 MB, free: 1.859 MB / 350.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 6 * Number of states: 0 () * Number of discrete variables: 3 (medium.phaseOutput,medium.state.phase,medium.phaseInput) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (18): * Single equations (assignments): 15 * 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 {(3,8)} Notification: Performance of prepare postOptimizeDAE: time 0.000111/0.4226, allocations: 141.2 kB / 484.2 MB, free: 1.723 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.847e-05/0.4226, allocations: 19.23 kB / 484.2 MB, free: 1.711 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 6.943e-05/0.4227, allocations: 26 kB / 484.2 MB, free: 1.684 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.682e-05/0.4227, allocations: 14.44 kB / 484.2 MB, free: 1.676 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.816e-06/0.4228, allocations: 0 / 484.2 MB, free: 1.676 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.095e-06/0.4228, allocations: 2.531 kB / 484.3 MB, free: 1.676 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0003769/0.4231, allocations: 307.6 kB / 484.6 MB, free: 1.406 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.964e-06/0.4232, allocations: 0 / 484.6 MB, free: 1.406 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002961/0.4235, allocations: 52.42 kB / 484.6 MB, free: 1.398 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0003706/0.4238, allocations: 65.53 kB / 484.7 MB, free: 1.383 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.396e-05/0.4239, allocations: 14.45 kB / 484.7 MB, free: 1.371 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.002255/0.4261, allocations: 2.916 MB / 487.6 MB, free: 14.38 MB / 366.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.058e-06/0.4261, allocations: 3.984 kB / 487.6 MB, free: 14.37 MB / 366.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.00133/0.4275, allocations: 0.702 MB / 488.3 MB, free: 14 MB / 366.1 MB Notification: Performance of postOpt removeConstants (simulation): time 5.932e-05/0.4276, allocations: 93.56 kB / 488.4 MB, free: 13.89 MB / 366.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.885e-05/0.4276, allocations: 6.281 kB / 488.4 MB, free: 13.89 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001612/0.4278, allocations: 12.09 kB / 488.4 MB, free: 13.88 MB / 366.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.906e-05/0.4278, allocations: 26.16 kB / 488.4 MB, free: 13.88 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.252e-05/0.4279, allocations: 12.75 kB / 488.5 MB, free: 13.87 MB / 366.1 MB Notification: Performance of sorting global known variables: time 7.2e-05/0.428, allocations: 99.12 kB / 488.5 MB, free: 13.79 MB / 366.1 MB Notification: Performance of sort global known variables: time 1.9e-07/0.428, allocations: 0 / 488.5 MB, free: 13.79 MB / 366.1 MB Notification: Performance of remove unused functions: time 0.0004066/0.4284, allocations: 66.38 kB / 488.6 MB, free: 13.77 MB / 366.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * Number of states: 2 (medium.p,medium.h) * Number of discrete variables: 2 (medium.state.phase,medium.phaseOutput) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (20): * Single equations (assignments): 16 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 2 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 1 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Equation system details (not torn): * Constant Jacobian (size): 0 systems * Linear Jacobian (size,density): 0 systems * Non-linear Jacobian (size): 1 system {1} * Without analytic Jacobian (size): 0 systems Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 1 system {(1,1,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of Backend phase and start with SimCode phase: time 0.0004434/0.4288, allocations: 175.7 kB / 488.8 MB, free: 13.64 MB / 366.1 MB Notification: Performance of simCode: created initialization part: time 0.0009507/0.4298, allocations: 380.7 kB / 489.2 MB, free: 13.5 MB / 366.1 MB Notification: Performance of simCode: created event and clocks part: time 3.116e-06/0.4298, allocations: 1.156 kB / 489.2 MB, free: 13.5 MB / 366.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0006287/0.4304, allocations: 307.9 kB / 489.5 MB, free: 13.31 MB / 366.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0006275/0.4311, allocations: 102.5 kB / 489.6 MB, free: 13.28 MB / 366.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001392/0.4325, allocations: 0.6935 MB / 490.3 MB, free: 12.87 MB / 366.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003555/0.4328, allocations: 0.7372 MB / 491 MB, free: 12.16 MB / 366.1 MB Notification: Performance of simCode: alias equations: time 0.0002612/0.4331, allocations: 117.1 kB / 491.1 MB, free: 12.14 MB / 366.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 5.328e-05/0.4332, allocations: 23.2 kB / 491.1 MB, free: 12.13 MB / 366.1 MB Notification: Performance of SimCode: time 4.71e-07/0.4332, allocations: 1.594 kB / 491.1 MB, free: 12.13 MB / 366.1 MB Notification: Performance of Templates: time 0.0122/0.4454, allocations: 5.263 MB / 496.4 MB, free: 9.953 MB / 366.1 MB make -j1 -f ExternalMedia_ExternalMedia.Test.TestMedium.TestBasePropertiesDynamic.makefile (rm -f ExternalMedia_ExternalMedia.Test.TestMedium.TestBasePropertiesDynamic.pipe ; mkfifo ExternalMedia_ExternalMedia.Test.TestMedium.TestBasePropertiesDynamic.pipe ; head -c 1048576 < ExternalMedia_ExternalMedia.Test.TestMedium.TestBasePropertiesDynamic.pipe >> ../files/ExternalMedia_ExternalMedia.Test.TestMedium.TestBasePropertiesDynamic.sim & ./ExternalMedia_ExternalMedia.Test.TestMedium.TestBasePropertiesDynamic -abortSlowSimulation -alarm=480 -lv LOG_STATS > ExternalMedia_ExternalMedia.Test.TestMedium.TestBasePropertiesDynamic.pipe 2>&1)