Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr ExternalMedia_ExternalMedia.Test.TestMedium.TestState.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo): time 0.0008125/0.0008125, allocations: 81.05 kB / 9.981 MB, free: 0.707 MB / 10.45 MB Notification: Performance of NFInstanceAPI.mkTop(): time 0.002553/0.003366, allocations: 440 kB / 10.41 MB, free: 284 kB / 10.45 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo): time 0.0008795/0.0008795, allocations: 157.1 kB / 11.33 MB, free: 2.844 MB / 13.93 MB Notification: Performance of NFInstanceAPI.mkTop(): time 0.001176/0.002055, allocations: 475.6 kB / 11.79 MB, free: 2.375 MB / 13.93 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo): time 0.9344/0.9344, allocations: 177.2 MB / 189.7 MB, free: 5.234 MB / 186.7 MB Notification: Performance of NFInstanceAPI.mkTop(): time 0.07802/1.012, allocations: 53.67 MB / 243.4 MB, free: 15.49 MB / 250.7 MB " [Timeout remaining time 179] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ExternalMedia 4.1.1/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ExternalMedia 4.1.1/package.mo): time 0.01274/0.01274, allocations: 1.994 MB / 246.1 MB, free: 12.77 MB / 250.7 MB Notification: Performance of NFInstanceAPI.mkTop(): time 0.00341/0.01615, allocations: 1.219 MB / 247.4 MB, free: 11.54 MB / 250.7 MB " [Timeout remaining time 180] Using package ExternalMedia with version 4.1.1 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ExternalMedia 4.1.1/package.mo) Using package Modelica with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo) Using package Complex with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo) Using package ModelicaServices with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo) Running command: translateModel(ExternalMedia.Test.TestMedium.TestState,tolerance=1e-06,outputFormat="empty",numberOfIntervals=1000,variableFilter="",fileNamePrefix="ExternalMedia_ExternalMedia.Test.TestMedium.TestState") translateModel(ExternalMedia.Test.TestMedium.TestState,tolerance=1e-06,outputFormat="empty",numberOfIntervals=1000,variableFilter="",fileNamePrefix="ExternalMedia_ExternalMedia.Test.TestMedium.TestState") [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 1.673e-06/1.673e-06, allocations: 0 / 248.6 MB, free: 10.26 MB / 250.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 2.296e-05/2.464e-05, allocations: 5.969 kB / 248.6 MB, free: 10.26 MB / 250.7 MB Notification: Performance of NFInst.instantiate(ExternalMedia.Test.TestMedium.TestState): time 0.00908/0.009105, allocations: 7.774 MB / 256.4 MB, free: 2.438 MB / 250.7 MB Notification: Performance of NFInst.instExpressions: time 5.97e-05/0.009164, allocations: 27.83 kB / 256.4 MB, free: 2.41 MB / 250.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 1.801e-05/0.009182, allocations: 0 / 256.4 MB, free: 2.41 MB / 250.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0002226/0.009405, allocations: 67.62 kB / 256.5 MB, free: 2.344 MB / 250.7 MB Notification: Performance of NFTyping.typeBindings: time 3.229e-05/0.009437, allocations: 19.84 kB / 256.5 MB, free: 2.324 MB / 250.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003189/0.009756, allocations: 51.5 kB / 256.6 MB, free: 2.273 MB / 250.7 MB Notification: Performance of NFFlatten.flatten: time 9.089e-05/0.009847, allocations: 51.61 kB / 256.6 MB, free: 2.223 MB / 250.7 MB Notification: Performance of NFFlatten.resolveConnections: time 4.153e-05/0.009889, allocations: 3.938 kB / 256.6 MB, free: 2.219 MB / 250.7 MB Notification: Performance of NFEvalConstants.evaluate: time 5.684e-05/0.009946, allocations: 15.98 kB / 256.6 MB, free: 2.203 MB / 250.7 MB Notification: Performance of NFSimplifyModel.simplify: time 5.734e-05/0.01, allocations: 11.94 kB / 256.7 MB, free: 2.191 MB / 250.7 MB Notification: Performance of NFPackage.collectConstants: time 1.703e-05/0.01002, allocations: 4 kB / 256.7 MB, free: 2.188 MB / 250.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001908/0.01021, allocations: 43.94 kB / 256.7 MB, free: 2.145 MB / 250.7 MB [/home/hudson/saved_omc/libraries/.openmodelica/libraries/ExternalMedia 4.1.1/Media/BaseClasses/ExternalTwoPhaseMedium.mo:36:25-57:25:writable] Warning: The C struct of record ExternalMedia.Test.TestMedium.TestState.Medium.ThermodynamicState is assumed to have the components of the record in the same order. This is deprecated: give the record an Include annotation that defines the struct. Notification: Performance of NFScalarize.scalarize: time 2.393e-05/0.01023, allocations: 0 / 256.7 MB, free: 2.145 MB / 250.7 MB Notification: Performance of NFVerifyModel.verify: time 2.753e-05/0.01026, allocations: 15.94 kB / 256.7 MB, free: 2.129 MB / 250.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0001534/0.01042, allocations: 47.89 kB / 256.8 MB, free: 2.082 MB / 250.7 MB Notification: Performance of FrontEnd - DAE generated: time 1.39e-05/0.01043, allocations: 3.938 kB / 256.8 MB, free: 2.078 MB / 250.7 MB Notification: Performance of FrontEnd: time 1.823e-06/0.01043, allocations: 0 / 256.8 MB, free: 2.078 MB / 250.7 MB Notification: Performance of Transformations before backend: time 1.097e-05/0.01044, allocations: 0 / 256.8 MB, free: 2.078 MB / 250.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 15 * Number of variables: 15 Notification: Performance of Generate backend data structure: time 0.0003065/0.01075, allocations: 252.5 kB / 257 MB, free: 1.809 MB / 250.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.336e-05/0.01078, allocations: 8.031 kB / 257 MB, free: 1.801 MB / 250.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.013e-05/0.01081, allocations: 0.9375 kB / 257 MB, free: 1.801 MB / 250.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 7.48e-05/0.01089, allocations: 117.7 kB / 257.1 MB, free: 1.66 MB / 250.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 9.398e-06/0.0109, allocations: 384 / 257.1 MB, free: 1.66 MB / 250.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 8.797e-06/0.01091, allocations: 384 / 257.1 MB, free: 1.66 MB / 250.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 8.616e-05/0.01099, allocations: 45.08 kB / 257.2 MB, free: 1.609 MB / 250.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 6.442e-06/0.011, allocations: 192 / 257.2 MB, free: 1.609 MB / 250.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 6.322e-06/0.011, allocations: 4.125 kB / 257.2 MB, free: 1.605 MB / 250.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.02e-05/0.01101, allocations: 4 kB / 257.2 MB, free: 1.602 MB / 250.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 1.628e-05/0.01103, allocations: 7.984 kB / 257.2 MB, free: 1.594 MB / 250.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 8.691e-05/0.01112, allocations: 74.62 kB / 257.3 MB, free: 1.504 MB / 250.7 MB Notification: Performance of preOpt comSubExp (simulation): time 4.25e-05/0.01116, allocations: 34.5 kB / 257.3 MB, free: 1.461 MB / 250.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 1.379e-05/0.01117, allocations: 16.89 kB / 257.3 MB, free: 1.441 MB / 250.7 MB Notification: Performance of preOpt evalFunc (simulation): time 1.744e-05/0.01119, allocations: 0 / 257.3 MB, free: 1.441 MB / 250.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.35e-05/0.01121, allocations: 34.56 kB / 257.4 MB, free: 1.398 MB / 250.7 MB Notification: Performance of pre-optimization done (n=15): time 8.01e-07/0.01122, allocations: 0 / 257.4 MB, free: 1.398 MB / 250.7 MB Notification: Performance of matching and sorting (n=15): time 0.0001329/0.01135, allocations: 73.69 kB / 257.4 MB, free: 1.32 MB / 250.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 2.839e-05/0.01138, allocations: 51.41 kB / 257.5 MB, free: 1.258 MB / 250.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 3.511e-05/0.01141, allocations: 93.8 kB / 257.6 MB, free: 1.156 MB / 250.7 MB Notification: Performance of collectPreVariables (initialization): time 1.031e-05/0.01142, allocations: 29.7 kB / 257.6 MB, free: 1.121 MB / 250.7 MB Notification: Performance of collectInitialEqns (initialization): time 2.094e-05/0.01144, allocations: 84.08 kB / 257.7 MB, free: 1.035 MB / 250.7 MB Notification: Performance of collectInitialBindings (initialization): time 5.614e-05/0.0115, allocations: 51.8 kB / 257.7 MB, free: 0.9844 MB / 250.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.853e-05/0.01153, allocations: 13.72 kB / 257.7 MB, free: 0.9648 MB / 250.7 MB Notification: Performance of setup shared object (initialization): time 8.518e-05/0.01161, allocations: 326.8 kB / 258.1 MB, free: 0.6367 MB / 250.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 1.929e-05/0.01163, allocations: 14.77 kB / 258.1 MB, free: 0.6211 MB / 250.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 1.075e-05/0.01164, allocations: 7.375 kB / 258.1 MB, free: 0.6172 MB / 250.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 4.821e-05/0.01169, allocations: 39.67 kB / 258.1 MB, free: 0.5742 MB / 250.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.086e-06/0.01169, allocations: 3.984 kB / 258.1 MB, free: 0.5703 MB / 250.7 MB Notification: Performance of matching and sorting (n=15) (initialization): time 7.759e-05/0.01177, allocations: 57.64 kB / 258.2 MB, free: 0.5078 MB / 250.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.233e-05/0.01178, allocations: 4 kB / 258.2 MB, free: 0.5039 MB / 250.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.734e-06/0.01179, allocations: 4 kB / 258.2 MB, free: 0.5 MB / 250.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.075e-05/0.0118, allocations: 0 / 258.2 MB, free: 0.5 MB / 250.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 3.918e-06/0.01181, allocations: 3.938 kB / 258.2 MB, free: 0.4961 MB / 250.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 2.685e-06/0.01181, allocations: 4.062 kB / 258.2 MB, free: 0.4922 MB / 250.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 3.038e-05/0.01184, allocations: 7.891 kB / 258.2 MB, free: 496 kB / 250.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.03e-06/0.01184, allocations: 0 / 258.2 MB, free: 496 kB / 250.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 1 * Number of states: 0 () * Number of discrete variables: 1 (state.phase) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (1): * Single equations (assignments): 0 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 1 * 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 6.329e-05/0.01191, allocations: 113.8 kB / 258.3 MB, free: 372 kB / 250.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 7.203e-06/0.01192, allocations: 0 / 258.3 MB, free: 372 kB / 250.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.018e-05/0.01195, allocations: 3.969 kB / 258.3 MB, free: 372 kB / 250.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.921e-06/0.01195, allocations: 4 kB / 258.3 MB, free: 368 kB / 250.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.283e-06/0.01195, allocations: 0 / 258.3 MB, free: 368 kB / 250.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.49e-06/0.01196, allocations: 7.938 kB / 258.3 MB, free: 360 kB / 250.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 7.649e-05/0.01203, allocations: 81.78 kB / 258.4 MB, free: 260 kB / 250.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.954e-06/0.01204, allocations: 4 kB / 258.4 MB, free: 256 kB / 250.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 8.52e-07/0.01204, allocations: 0 / 258.4 MB, free: 256 kB / 250.7 MB Notification: Performance of postOpt removeConstants (simulation): time 8.967e-06/0.01205, allocations: 4 kB / 258.4 MB, free: 252 kB / 250.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.543e-06/0.01205, allocations: 0 / 258.4 MB, free: 252 kB / 250.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.286e-06/0.01205, allocations: 0 / 258.4 MB, free: 252 kB / 250.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.462e-06/0.01205, allocations: 0 / 258.4 MB, free: 252 kB / 250.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.657e-06/0.01206, allocations: 7.969 kB / 258.4 MB, free: 244 kB / 250.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 9.964e-05/0.01216, allocations: 102.6 kB / 258.5 MB, free: 120 kB / 250.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 7.775e-06/0.01216, allocations: 0 / 258.5 MB, free: 120 kB / 250.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 2.043e-05/0.01218, allocations: 0 / 258.5 MB, free: 120 kB / 250.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 1.011e-05/0.01219, allocations: 0 / 258.5 MB, free: 120 kB / 250.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.966e-06/0.0122, allocations: 4.031 kB / 258.5 MB, free: 116 kB / 250.7 MB Notification: Performance of sorting global known variables: time 1.048e-05/0.01221, allocations: 8.859 kB / 258.5 MB, free: 104 kB / 250.7 MB Notification: Performance of sort global known variables: time 7e-08/0.01221, allocations: 0 / 258.5 MB, free: 104 kB / 250.7 MB Notification: Performance of remove unused functions: time 0.0001646/0.01237, allocations: 19.88 kB / 258.6 MB, free: 84 kB / 250.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * Number of states: 0 () * Number of discrete variables: 1 (state.phase) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (1): * Single equations (assignments): 0 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 1 * 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.0003718/0.01274, allocations: 134.9 kB / 258.7 MB, free: 15.96 MB / 266.7 MB Notification: Performance of simCode: created initialization part: time 8.654e-05/0.01283, allocations: 36.72 kB / 258.7 MB, free: 15.92 MB / 266.7 MB Notification: Performance of simCode: created event and clocks part: time 4.819e-06/0.01284, allocations: 4 kB / 258.7 MB, free: 15.92 MB / 266.7 MB Notification: Performance of simCode: created simulation system equations: time 1.755e-05/0.01285, allocations: 16.86 kB / 258.7 MB, free: 15.9 MB / 266.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002165/0.01307, allocations: 40.14 kB / 258.8 MB, free: 15.86 MB / 266.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001763/0.01483, allocations: 207.2 kB / 259 MB, free: 15.63 MB / 266.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 3.304e-05/0.01487, allocations: 63.3 kB / 259.1 MB, free: 15.55 MB / 266.7 MB Notification: Performance of simCode: alias equations: time 3.111e-05/0.0149, allocations: 3.984 kB / 259.1 MB, free: 15.54 MB / 266.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 7.426e-05/0.01497, allocations: 75.28 kB / 259.1 MB, free: 15.47 MB / 266.7 MB Notification: Performance of SimCode: time 1.463e-06/0.01497, allocations: 4 kB / 259.1 MB, free: 15.46 MB / 266.7 MB Notification: Performance of Templates: time 0.003134/0.01811, allocations: 2.023 MB / 261.2 MB, free: 13.48 MB / 266.7 MB " [Timeout remaining time 660] make -j1 -f ExternalMedia_ExternalMedia.Test.TestMedium.TestState.makefile [Timeout 660] (rm -f ExternalMedia_ExternalMedia.Test.TestMedium.TestState.pipe ; mkfifo ExternalMedia_ExternalMedia.Test.TestMedium.TestState.pipe ; head -c 1048576 < ExternalMedia_ExternalMedia.Test.TestMedium.TestState.pipe >> ../files/ExternalMedia_ExternalMedia.Test.TestMedium.TestState.sim & ./ExternalMedia_ExternalMedia.Test.TestMedium.TestState -abortSlowSimulation -alarm=240 -lv LOG_STATS > ExternalMedia_ExternalMedia.Test.TestMedium.TestState.pipe 2>&1) [Timeout 240] [Calling sys.exit(0), Time elapsed: 2.4643929470330477]