Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr ExternalMedia_ExternalMedia.Test.TestMedium.TestConstants.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.TestConstants,tolerance=1e-06,outputFormat="empty",numberOfIntervals=2000,variableFilter="",fileNamePrefix="ExternalMedia_ExternalMedia.Test.TestMedium.TestConstants") translateModel(ExternalMedia.Test.TestMedium.TestConstants,tolerance=1e-06,outputFormat="empty",numberOfIntervals=2000,variableFilter="",fileNamePrefix="ExternalMedia_ExternalMedia.Test.TestMedium.TestConstants") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001027/0.001027, allocations: 104.8 kB / 15.99 MB, free: 5.883 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.001216/0.001216, allocations: 194.6 kB / 16.9 MB, free: 5.746 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.473/1.473, allocations: 222.9 MB / 240.6 MB, free: 13.75 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ExternalMedia 4.0.0/package.mo): time 0.01928/0.01927, allocations: 2.772 MB / 293.5 MB, free: 12.03 MB / 238.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001145/0.001145, allocations: 59.91 kB / 354.5 MB, free: 14.93 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2721/0.2733, allocations: 50.23 MB / 404.8 MB, free: 33.11 MB / 302.1 MB Notification: Performance of NFInst.instantiate(ExternalMedia.Test.TestMedium.TestConstants): time 0.008474/0.2818, allocations: 7.316 MB / 412.1 MB, free: 25.78 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 7.935e-06/0.2819, allocations: 4 kB / 412.1 MB, free: 25.77 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 1.908e-05/0.2819, allocations: 4 kB / 412.1 MB, free: 25.77 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 1.997e-05/0.2819, allocations: 0 / 412.1 MB, free: 25.77 MB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0004139/0.2824, allocations: 96.44 kB / 412.2 MB, free: 25.68 MB / 302.1 MB Notification: Performance of NFTyping.typeClassSections: time 4.619e-06/0.2824, allocations: 0 / 412.2 MB, free: 25.68 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 4.546e-05/0.2824, allocations: 7.938 kB / 412.2 MB, free: 25.67 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 4.956e-05/0.2825, allocations: 15.92 kB / 412.2 MB, free: 25.65 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.02075/0.3032, allocations: 34.02 kB / 412.3 MB, free: 25.62 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 1.469e-05/0.3033, allocations: 0 / 412.3 MB, free: 25.62 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 9.508e-06/0.3033, allocations: 0 / 412.3 MB, free: 25.62 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 3.827e-06/0.3033, allocations: 0 / 412.3 MB, free: 25.62 MB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 6.382e-06/0.3033, allocations: 4 kB / 412.3 MB, free: 25.62 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 1.443e-05/0.3034, allocations: 3.938 kB / 412.3 MB, free: 25.61 MB / 302.1 MB Notification: Performance of NFConvertDAE.convert: time 3.894e-05/0.3034, allocations: 4 kB / 412.3 MB, free: 25.61 MB / 302.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.529e-06/0.3034, allocations: 0 / 412.3 MB, free: 25.61 MB / 302.1 MB Notification: Performance of FrontEnd: time 1.563e-06/0.3034, allocations: 0 / 412.3 MB, free: 25.61 MB / 302.1 MB Notification: Performance of Transformations before backend: time 5.42e-06/0.3034, allocations: 0 / 412.3 MB, free: 25.61 MB / 302.1 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 1 * Number of variables: 1 Notification: Performance of Generate backend data structure: time 0.0002315/0.3037, allocations: 315.6 kB / 412.6 MB, free: 25.25 MB / 302.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.475e-05/0.3037, allocations: 8.031 kB / 412.6 MB, free: 25.25 MB / 302.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 2.438e-05/0.3037, allocations: 0.9375 kB / 412.6 MB, free: 25.25 MB / 302.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 7.177e-05/0.3038, allocations: 168.3 kB / 412.7 MB, free: 25.04 MB / 302.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 9.848e-06/0.3038, allocations: 4.375 kB / 412.8 MB, free: 25.04 MB / 302.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 9.187e-06/0.3038, allocations: 384 / 412.8 MB, free: 25.04 MB / 302.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 7.483e-05/0.3039, allocations: 33.83 kB / 412.8 MB, free: 25 MB / 302.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 6.963e-06/0.3039, allocations: 0 / 412.8 MB, free: 25 MB / 302.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 8.315e-06/0.3039, allocations: 0 / 412.8 MB, free: 25 MB / 302.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.348e-06/0.304, allocations: 3.938 kB / 412.8 MB, free: 25 MB / 302.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 1.586e-05/0.304, allocations: 0 / 412.8 MB, free: 25 MB / 302.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0002324/0.3042, allocations: 391.4 kB / 413.2 MB, free: 24.56 MB / 302.1 MB Notification: Performance of preOpt comSubExp (simulation): time 6.153e-05/0.3043, allocations: 165.1 kB / 413.3 MB, free: 24.39 MB / 302.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 1.843e-05/0.3043, allocations: 92.11 kB / 413.4 MB, free: 24.3 MB / 302.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.024e-05/0.3043, allocations: 75.28 kB / 413.5 MB, free: 24.22 MB / 302.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.652e-05/0.3044, allocations: 113.8 kB / 413.6 MB, free: 24.1 MB / 302.1 MB Notification: Performance of pre-optimization done (n=0): time 1.062e-06/0.3044, allocations: 4 kB / 413.6 MB, free: 24.1 MB / 302.1 MB Notification: Performance of matching and sorting (n=0): time 6.466e-05/0.3044, allocations: 25.7 kB / 413.6 MB, free: 24.07 MB / 302.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.601e-05/0.3045, allocations: 130.7 kB / 413.8 MB, free: 23.93 MB / 302.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 6.296e-05/0.3045, allocations: 93.86 kB / 413.9 MB, free: 23.82 MB / 302.1 MB Notification: Performance of collectPreVariables (initialization): time 6.402e-06/0.3046, allocations: 25.7 kB / 413.9 MB, free: 23.79 MB / 302.1 MB Notification: Performance of collectInitialEqns (initialization): time 2.541e-05/0.3046, allocations: 80.14 kB / 414 MB, free: 23.71 MB / 302.1 MB Notification: Performance of collectInitialBindings (initialization): time 3.186e-06/0.3046, allocations: 0 / 414 MB, free: 23.71 MB / 302.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.556e-05/0.3046, allocations: 9.844 kB / 414 MB, free: 23.7 MB / 302.1 MB Notification: Performance of setup shared object (initialization): time 4.961e-05/0.3047, allocations: 326.8 kB / 414.3 MB, free: 23.37 MB / 302.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 7.634e-06/0.3047, allocations: 0 / 414.3 MB, free: 23.37 MB / 302.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 5.571e-06/0.3047, allocations: 0 / 414.3 MB, free: 23.37 MB / 302.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 2.293e-05/0.3047, allocations: 12.8 kB / 414.3 MB, free: 23.35 MB / 302.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.293e-06/0.3047, allocations: 0 / 414.3 MB, free: 23.35 MB / 302.1 MB Notification: Performance of matching and sorting (n=1) (initialization): time 7.985e-05/0.3048, allocations: 33.69 kB / 414.3 MB, free: 23.31 MB / 302.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.236e-05/0.3048, allocations: 4 kB / 414.3 MB, free: 23.31 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.118e-06/0.3049, allocations: 4.094 kB / 414.3 MB, free: 23.3 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.235e-05/0.3049, allocations: 0 / 414.3 MB, free: 23.3 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 4.458e-05/0.3049, allocations: 4 kB / 414.3 MB, free: 23.3 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.73e-06/0.3049, allocations: 0 / 414.3 MB, free: 23.3 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 1.233e-05/0.3049, allocations: 0 / 414.3 MB, free: 23.3 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.738e-06/0.305, allocations: 0 / 414.3 MB, free: 23.3 MB / 302.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: 0 () * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (1): * 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: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 6.562e-05/0.305, allocations: 197 kB / 414.5 MB, free: 23.1 MB / 302.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.002e-05/0.3051, allocations: 104.9 kB / 414.6 MB, free: 22.99 MB / 302.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.542e-05/0.3051, allocations: 112.1 kB / 414.7 MB, free: 22.87 MB / 302.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.209e-05/0.3051, allocations: 180.2 kB / 414.9 MB, free: 22.69 MB / 302.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.524e-05/0.3052, allocations: 180.3 kB / 415.1 MB, free: 22.5 MB / 302.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.84e-05/0.3052, allocations: 176.3 kB / 415.3 MB, free: 22.32 MB / 302.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001542/0.3054, allocations: 409.1 kB / 415.7 MB, free: 21.87 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.705e-05/0.3054, allocations: 101 kB / 415.8 MB, free: 21.76 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 1.683e-05/0.3054, allocations: 112.9 kB / 415.9 MB, free: 21.64 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.628e-05/0.3055, allocations: 176.3 kB / 416.1 MB, free: 21.46 MB / 302.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.876e-05/0.3055, allocations: 180.3 kB / 416.2 MB, free: 21.28 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.904e-05/0.3055, allocations: 184.2 kB / 416.4 MB, free: 21.09 MB / 302.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.774e-05/0.3056, allocations: 188.2 kB / 416.6 MB, free: 20.9 MB / 302.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 7.146e-05/0.3056, allocations: 307.7 kB / 416.9 MB, free: 20.58 MB / 302.1 MB Notification: Performance of postOpt removeConstants (simulation): time 3.904e-05/0.3057, allocations: 182.1 kB / 417.1 MB, free: 20.38 MB / 302.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.733e-05/0.3057, allocations: 184.2 kB / 417.3 MB, free: 20.19 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 5.71e-05/0.3058, allocations: 101 kB / 417.4 MB, free: 20.08 MB / 302.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.313e-05/0.3058, allocations: 188.2 kB / 417.5 MB, free: 19.89 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.632e-05/0.3058, allocations: 101 kB / 417.6 MB, free: 19.79 MB / 302.1 MB Notification: Performance of sorting global known variables: time 1.861e-05/0.3059, allocations: 79.27 kB / 417.7 MB, free: 19.71 MB / 302.1 MB Notification: Performance of sort global known variables: time 1e-07/0.3059, allocations: 0 / 417.7 MB, free: 19.71 MB / 302.1 MB Notification: Performance of remove unused functions: time 0.0002242/0.3061, allocations: 4 kB / 417.7 MB, free: 19.7 MB / 302.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: 0 () * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (0): * Single equations (assignments): 0 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * 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 7.815e-05/0.3062, allocations: 162.5 kB / 417.9 MB, free: 19.54 MB / 302.1 MB Notification: Performance of simCode: created initialization part: time 5.542e-05/0.3062, allocations: 7.938 kB / 417.9 MB, free: 19.53 MB / 302.1 MB Notification: Performance of simCode: created event and clocks part: time 2.605e-06/0.3062, allocations: 8.156 kB / 417.9 MB, free: 19.52 MB / 302.1 MB Notification: Performance of simCode: created simulation system equations: time 1.453e-06/0.3062, allocations: 0 / 417.9 MB, free: 19.52 MB / 302.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002573/0.3065, allocations: 458.3 kB / 418.3 MB, free: 19.07 MB / 302.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0001972/0.3067, allocations: 190.4 kB / 418.5 MB, free: 18.85 MB / 302.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001194/0.3068, allocations: 0.6729 MB / 419.2 MB, free: 18.15 MB / 302.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 1.592e-05/0.3069, allocations: 15.44 kB / 419.2 MB, free: 18.14 MB / 302.1 MB Notification: Performance of SimCode: time 2.2e-07/0.3069, allocations: 0 / 419.2 MB, free: 18.14 MB / 302.1 MB Notification: Performance of Templates: time 0.001413/0.3083, allocations: 331.8 kB / 419.5 MB, free: 17.81 MB / 302.1 MB make -j1 -f ExternalMedia_ExternalMedia.Test.TestMedium.TestConstants.makefile (rm -f ExternalMedia_ExternalMedia.Test.TestMedium.TestConstants.pipe ; mkfifo ExternalMedia_ExternalMedia.Test.TestMedium.TestConstants.pipe ; head -c 1048576 < ExternalMedia_ExternalMedia.Test.TestMedium.TestConstants.pipe >> ../files/ExternalMedia_ExternalMedia.Test.TestMedium.TestConstants.sim & ./ExternalMedia_ExternalMedia.Test.TestMedium.TestConstants -abortSlowSimulation -alarm=480 -lv LOG_STATS > ExternalMedia_ExternalMedia.Test.TestMedium.TestConstants.pipe 2>&1)