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: "" <> buildModelFMU(ExternalMedia.Test.TestMedium.TestConstants,fileNamePrefix="ExternalMedia_ExternalMedia_Test_TestMedium_TestConstants",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(ExternalMedia.Test.TestMedium.TestConstants,fileNamePrefix="ExternalMedia_ExternalMedia_Test_TestMedium_TestConstants",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.004753/0.004753, allocations: 100.8 kB / 15.73 MB, free: 6.047 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.001042/0.001042, allocations: 197.1 kB / 16.68 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.359/1.359, allocations: 222.9 MB / 240.4 MB, free: 4.328 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ExternalMedia 4.0.0/package.mo): time 0.1232/0.1232, allocations: 2.763 MB / 293.3 MB, free: 3.602 MB / 238.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001426/0.001426, allocations: 67.89 kB / 405.4 MB, free: 1.457 MB / 334.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2793/0.2808, allocations: 50.23 MB / 455.6 MB, free: 20.79 MB / 350.1 MB Notification: Performance of NFInst.instantiate(ExternalMedia.Test.TestMedium.TestConstants): time 0.006494/0.2873, allocations: 7.312 MB / 462.9 MB, free: 15.47 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 7.284e-06/0.2873, allocations: 4 kB / 462.9 MB, free: 15.46 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 1.699e-05/0.2874, allocations: 0 / 462.9 MB, free: 15.46 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 1.82e-05/0.2874, allocations: 0 / 462.9 MB, free: 15.46 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.000317/0.2877, allocations: 113.7 kB / 463 MB, free: 15.4 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 6.031e-06/0.2877, allocations: 0 / 463 MB, free: 15.4 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 4.458e-05/0.2878, allocations: 10.88 kB / 463.1 MB, free: 15.39 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 5.161e-05/0.2878, allocations: 6.469 kB / 463.1 MB, free: 15.39 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.02007/0.3079, allocations: 32.92 kB / 463.1 MB, free: 15.37 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 2.067e-05/0.308, allocations: 2.938 kB / 463.1 MB, free: 15.37 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 9.428e-06/0.308, allocations: 0 / 463.1 MB, free: 15.37 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 6.102e-06/0.308, allocations: 7.938 kB / 463.1 MB, free: 15.36 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 9.598e-06/0.308, allocations: 0 / 463.1 MB, free: 15.36 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 1.96e-05/0.3081, allocations: 0 / 463.1 MB, free: 15.36 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 6.957e-05/0.3081, allocations: 2.938 kB / 463.1 MB, free: 15.36 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 7.434e-06/0.3081, allocations: 3.328 kB / 463.1 MB, free: 15.36 MB / 350.1 MB Notification: Performance of FrontEnd: time 1.833e-06/0.3081, allocations: 0 / 463.1 MB, free: 15.36 MB / 350.1 MB Notification: Performance of Transformations before backend: time 6.291e-06/0.3082, allocations: 0 / 463.1 MB, free: 15.36 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: 1 * Number of variables: 1 Notification: Performance of Generate backend data structure: time 0.0002855/0.3084, allocations: 306.5 kB / 463.4 MB, free: 15.02 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.314e-05/0.3085, allocations: 9.094 kB / 463.4 MB, free: 15.02 MB / 350.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 3.446e-05/0.3086, allocations: 34.69 kB / 463.5 MB, free: 14.98 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 2.603e-05/0.3086, allocations: 8.031 kB / 463.5 MB, free: 14.97 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 7.977e-05/0.3087, allocations: 167.2 kB / 463.6 MB, free: 14.77 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.057e-05/0.3087, allocations: 384 / 463.6 MB, free: 14.77 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.144e-05/0.3087, allocations: 384 / 463.6 MB, free: 14.77 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001017/0.3088, allocations: 32.64 kB / 463.7 MB, free: 14.74 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 7.574e-06/0.3088, allocations: 3.938 kB / 463.7 MB, free: 14.73 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 9.428e-06/0.3088, allocations: 4 kB / 463.7 MB, free: 14.73 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.769e-06/0.3089, allocations: 0 / 463.7 MB, free: 14.73 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 1.99e-05/0.3089, allocations: 0 / 463.7 MB, free: 14.73 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0003565/0.3092, allocations: 389.9 kB / 464 MB, free: 14.3 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 7.159e-05/0.3093, allocations: 172.2 kB / 464.2 MB, free: 14.13 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 2.68e-05/0.3094, allocations: 84.14 kB / 464.3 MB, free: 14.04 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.916e-05/0.3094, allocations: 75.28 kB / 464.4 MB, free: 13.97 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.464e-05/0.3094, allocations: 109.8 kB / 464.5 MB, free: 13.85 MB / 350.1 MB Notification: Performance of pre-optimization done (n=0): time 1.112e-06/0.3094, allocations: 0 / 464.5 MB, free: 13.85 MB / 350.1 MB Notification: Performance of matching and sorting (n=0): time 9.486e-05/0.3095, allocations: 36.09 kB / 464.5 MB, free: 13.82 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.362e-05/0.3096, allocations: 126.7 kB / 464.6 MB, free: 13.68 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 9.618e-05/0.3097, allocations: 93.86 kB / 464.7 MB, free: 13.58 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 9.798e-06/0.3097, allocations: 25.7 kB / 464.8 MB, free: 13.55 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 4.463e-05/0.3097, allocations: 83.14 kB / 464.8 MB, free: 13.46 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 5.119e-06/0.3098, allocations: 4.125 kB / 464.8 MB, free: 13.46 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.067e-05/0.3098, allocations: 9.719 kB / 464.8 MB, free: 13.45 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 8.141e-05/0.3099, allocations: 317.8 kB / 465.2 MB, free: 13.13 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 1.338e-05/0.3099, allocations: 0 / 465.2 MB, free: 13.13 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 6.261e-06/0.3099, allocations: 0 / 465.2 MB, free: 13.13 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 3.57e-05/0.3099, allocations: 11.25 kB / 465.2 MB, free: 13.12 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.282e-06/0.3099, allocations: 0 / 465.2 MB, free: 13.12 MB / 350.1 MB Notification: Performance of matching and sorting (n=1) (initialization): time 0.0001373/0.3101, allocations: 43.73 kB / 465.2 MB, free: 13.08 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.404e-05/0.3101, allocations: 5.219 kB / 465.2 MB, free: 13.08 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.207e-06/0.3101, allocations: 4 kB / 465.2 MB, free: 13.07 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.639e-05/0.3102, allocations: 3.031 kB / 465.2 MB, free: 13.07 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 7.869e-05/0.3102, allocations: 0 / 465.2 MB, free: 13.07 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 8.756e-06/0.3103, allocations: 3.938 kB / 465.2 MB, free: 13.07 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 1.556e-05/0.3103, allocations: 0 / 465.2 MB, free: 13.07 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.222e-06/0.3103, allocations: 3.094 kB / 465.2 MB, free: 13.07 MB / 350.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 7.932e-05/0.3104, allocations: 190.2 kB / 465.4 MB, free: 12.88 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.936e-05/0.3104, allocations: 105 kB / 465.5 MB, free: 12.77 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 4.116e-05/0.3105, allocations: 115.1 kB / 465.6 MB, free: 12.65 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.979e-05/0.3105, allocations: 180.3 kB / 465.8 MB, free: 12.47 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.987e-05/0.3106, allocations: 183.6 kB / 466 MB, free: 12.29 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.91e-05/0.3107, allocations: 179.3 kB / 466.2 MB, free: 12.11 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001914/0.3109, allocations: 405.1 kB / 466.6 MB, free: 11.65 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.389e-05/0.3109, allocations: 111.5 kB / 466.7 MB, free: 11.54 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 2.826e-05/0.3109, allocations: 101 kB / 466.8 MB, free: 11.44 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 5.312e-05/0.311, allocations: 184.2 kB / 466.9 MB, free: 11.25 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.555e-05/0.311, allocations: 179.3 kB / 467.1 MB, free: 11.07 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.834e-05/0.3111, allocations: 176.3 kB / 467.3 MB, free: 10.89 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.362e-05/0.3111, allocations: 187.6 kB / 467.5 MB, free: 10.7 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001137/0.3112, allocations: 310.7 kB / 467.8 MB, free: 10.38 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 5.526e-05/0.3113, allocations: 184.5 kB / 468 MB, free: 10.18 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.387e-05/0.3114, allocations: 176.3 kB / 468.1 MB, free: 10 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 7.459e-05/0.3114, allocations: 108.9 kB / 468.2 MB, free: 9.887 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.924e-05/0.3115, allocations: 183.3 kB / 468.4 MB, free: 9.703 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.783e-05/0.3115, allocations: 108.9 kB / 468.5 MB, free: 9.59 MB / 350.1 MB Notification: Performance of sorting global known variables: time 3.295e-05/0.3116, allocations: 78.09 kB / 468.6 MB, free: 9.516 MB / 350.1 MB Notification: Performance of sort global known variables: time 1.1e-07/0.3116, allocations: 3.062 kB / 468.6 MB, free: 9.516 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.000267/0.3119, allocations: 0 / 468.6 MB, free: 9.516 MB / 350.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 0.0004148/0.3123, allocations: 0.8 MB / 469.4 MB, free: 8.703 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 9.674e-05/0.3124, allocations: 6.969 kB / 469.4 MB, free: 8.699 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 3.407e-06/0.3124, allocations: 0 / 469.4 MB, free: 8.699 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 1.933e-06/0.3124, allocations: 0 / 469.4 MB, free: 8.699 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003577/0.3128, allocations: 458.8 kB / 469.9 MB, free: 8.25 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0004429/0.3132, allocations: 191.1 kB / 470 MB, free: 8.035 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001571/0.3134, allocations: 0.669 MB / 470.7 MB, free: 7.34 MB / 350.1 MB Notification: Performance of simCode: alias equations: time 2.619e-05/0.3134, allocations: 4 kB / 470.7 MB, free: 7.336 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 2.722e-05/0.3135, allocations: 7.438 kB / 470.7 MB, free: 7.328 MB / 350.1 MB Notification: Performance of SimCode: time 2.2e-07/0.3135, allocations: 0 / 470.7 MB, free: 7.328 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.01917/0.3326, allocations: 0.882 MB / 471.6 MB, free: 6.965 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 7.548/7.88, allocations: 13.72 kB / 471.6 MB, free: 6.957 MB / 350.1 MB (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 & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator --tempDir=temp_ExternalMedia_ExternalMedia_Test_TestMedium_TestConstants_fmu --startTime=0 --stopTime=1 --timeout=50 --tolerance=1e-06 ExternalMedia_ExternalMedia_Test_TestMedium_TestConstants.fmu > ExternalMedia_ExternalMedia.Test.TestMedium.TestConstants.pipe 2>&1)