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.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.TestState,fileNamePrefix="ExternalMedia_ExternalMedia_Test_TestMedium_TestState",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(ExternalMedia.Test.TestMedium.TestState,fileNamePrefix="ExternalMedia_ExternalMedia_Test_TestMedium_TestState",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.006789/0.006788, allocations: 101.9 kB / 15.73 MB, free: 6.438 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.001622/0.001622, allocations: 194.6 kB / 16.67 MB, free: 6.355 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.398/1.398, allocations: 222.9 MB / 240.4 MB, free: 4.273 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ExternalMedia 4.0.0/package.mo): time 0.1353/0.1353, allocations: 2.769 MB / 293.3 MB, free: 3.605 MB / 238.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001375/0.001375, allocations: 63.91 kB / 405.4 MB, free: 1.422 MB / 334.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3027/0.3041, allocations: 50.23 MB / 455.6 MB, free: 20.86 MB / 350.1 MB Notification: Performance of NFInst.instantiate(ExternalMedia.Test.TestMedium.TestState): time 0.007551/0.3117, allocations: 7.525 MB / 463.1 MB, free: 15.38 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 3.506e-05/0.3117, allocations: 30.19 kB / 463.2 MB, free: 15.35 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 2.251e-05/0.3118, allocations: 0 / 463.2 MB, free: 15.35 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0002759/0.3121, allocations: 89.09 kB / 463.3 MB, free: 15.3 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 2.7e-05/0.3121, allocations: 26.06 kB / 463.3 MB, free: 15.28 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0001793/0.3123, allocations: 42.42 kB / 463.3 MB, free: 15.25 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 7.681e-05/0.3124, allocations: 38.83 kB / 463.4 MB, free: 15.23 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 4.891e-05/0.3124, allocations: 4.234 kB / 463.4 MB, free: 15.23 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 2.656e-05/0.3125, allocations: 9.969 kB / 463.4 MB, free: 15.23 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 5.045e-05/0.3125, allocations: 13.36 kB / 463.4 MB, free: 15.23 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 1.177e-05/0.3125, allocations: 0 / 463.4 MB, free: 15.23 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001936/0.3127, allocations: 41.22 kB / 463.4 MB, free: 15.22 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 1.395e-05/0.3128, allocations: 14.94 kB / 463.4 MB, free: 15.21 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 3.435e-05/0.3128, allocations: 20.97 kB / 463.5 MB, free: 15.2 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0001743/0.313, allocations: 61.73 kB / 463.5 MB, free: 15.17 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.809e-06/0.313, allocations: 0.6562 kB / 463.5 MB, free: 15.17 MB / 350.1 MB Notification: Performance of FrontEnd: time 1.363e-06/0.313, allocations: 0 / 463.5 MB, free: 15.17 MB / 350.1 MB Notification: Performance of Transformations before backend: time 4.718e-06/0.313, allocations: 0 / 463.5 MB, free: 15.17 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: 15 * Number of variables: 15 Notification: Performance of Generate backend data structure: time 0.0003234/0.3133, allocations: 338 kB / 463.9 MB, free: 14.81 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.083e-05/0.3134, allocations: 9.156 kB / 463.9 MB, free: 14.81 MB / 350.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 3.335e-05/0.3134, allocations: 35.27 kB / 463.9 MB, free: 14.77 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 2.331e-05/0.3135, allocations: 5.453 kB / 463.9 MB, free: 14.77 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 6.668e-05/0.3135, allocations: 172.6 kB / 464.1 MB, free: 14.57 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.265e-05/0.3135, allocations: 384 / 464.1 MB, free: 14.57 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 6.923e-06/0.3136, allocations: 384 / 464.1 MB, free: 14.57 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001166/0.3137, allocations: 61.14 kB / 464.1 MB, free: 14.52 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 7.754e-06/0.3137, allocations: 0 / 464.1 MB, free: 14.52 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 7.875e-06/0.3137, allocations: 0 / 464.1 MB, free: 14.52 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 9.097e-06/0.3137, allocations: 8.766 kB / 464.1 MB, free: 14.51 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 3.165e-05/0.3138, allocations: 19.52 kB / 464.2 MB, free: 14.5 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.000126/0.3139, allocations: 170.8 kB / 464.3 MB, free: 14.3 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 6.684e-05/0.314, allocations: 68.27 kB / 464.4 MB, free: 14.25 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 3.838e-05/0.314, allocations: 35.58 kB / 464.4 MB, free: 14.22 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.591e-05/0.314, allocations: 7.031 kB / 464.4 MB, free: 14.22 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.323e-05/0.3141, allocations: 39.16 kB / 464.5 MB, free: 14.17 MB / 350.1 MB Notification: Performance of pre-optimization done (n=15): time 1.994e-06/0.3141, allocations: 0 / 464.5 MB, free: 14.17 MB / 350.1 MB Notification: Performance of matching and sorting (n=15): time 0.0002072/0.3143, allocations: 126.6 kB / 464.6 MB, free: 14.1 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.461e-05/0.3143, allocations: 55.23 kB / 464.7 MB, free: 14.04 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 2.32e-05/0.3144, allocations: 93.89 kB / 464.7 MB, free: 13.94 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 7.675e-06/0.3144, allocations: 25.7 kB / 464.8 MB, free: 13.91 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 1.342e-05/0.3144, allocations: 80.14 kB / 464.8 MB, free: 13.82 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 4.383e-05/0.3144, allocations: 45.69 kB / 464.9 MB, free: 13.79 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.926e-05/0.3145, allocations: 18.83 kB / 464.9 MB, free: 13.77 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 5.333e-05/0.3145, allocations: 320 kB / 465.2 MB, free: 13.45 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 3.017e-05/0.3146, allocations: 24.36 kB / 465.2 MB, free: 13.44 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 2.335e-05/0.3146, allocations: 21.48 kB / 465.3 MB, free: 13.43 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 7.117e-05/0.3147, allocations: 80.5 kB / 465.3 MB, free: 13.39 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.733e-06/0.3147, allocations: 0 / 465.3 MB, free: 13.39 MB / 350.1 MB Notification: Performance of matching and sorting (n=15) (initialization): time 9.471e-05/0.3148, allocations: 99.08 kB / 465.4 MB, free: 13.33 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.512e-05/0.3148, allocations: 5.969 kB / 465.4 MB, free: 13.33 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.44e-06/0.3148, allocations: 0 / 465.4 MB, free: 13.33 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.296e-05/0.3148, allocations: 3 kB / 465.5 MB, free: 13.33 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 2.084e-06/0.3148, allocations: 4.516 kB / 465.5 MB, free: 13.32 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 4.378e-06/0.3148, allocations: 0 / 465.5 MB, free: 13.32 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 2.553e-05/0.3149, allocations: 0 / 465.5 MB, free: 13.32 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.504e-06/0.3149, allocations: 7.531 kB / 465.5 MB, free: 13.32 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: 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 5.492e-05/0.315, allocations: 116.1 kB / 465.6 MB, free: 13.2 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.067e-05/0.315, allocations: 10.84 kB / 465.6 MB, free: 13.19 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.244e-05/0.315, allocations: 4.891 kB / 465.6 MB, free: 13.19 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.129e-06/0.315, allocations: 1.219 kB / 465.6 MB, free: 13.19 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.518e-06/0.315, allocations: 0.5625 kB / 465.6 MB, free: 13.19 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.166e-06/0.315, allocations: 3 kB / 465.6 MB, free: 13.19 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 7.929e-05/0.3151, allocations: 176.8 kB / 465.8 MB, free: 12.98 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.463e-06/0.3151, allocations: 3.938 kB / 465.8 MB, free: 12.98 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 5.11e-07/0.3151, allocations: 0 / 465.8 MB, free: 12.98 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.825e-06/0.3151, allocations: 7.719 kB / 465.8 MB, free: 12.98 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.49e-06/0.3151, allocations: 0 / 465.8 MB, free: 12.98 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.423e-06/0.3152, allocations: 0 / 465.8 MB, free: 12.98 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.463e-06/0.3152, allocations: 4.734 kB / 465.8 MB, free: 12.97 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.000102/0.3153, allocations: 119.8 kB / 465.9 MB, free: 12.88 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 2.64e-05/0.3153, allocations: 90.02 kB / 466 MB, free: 12.78 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.022e-05/0.3153, allocations: 2.938 kB / 466 MB, free: 12.78 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 1.981e-05/0.3153, allocations: 4.594 kB / 466 MB, free: 12.77 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 1.288e-05/0.3154, allocations: 4.594 kB / 466 MB, free: 12.77 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.884e-06/0.3154, allocations: 0 / 466 MB, free: 12.77 MB / 350.1 MB Notification: Performance of sorting global known variables: time 1.482e-05/0.3154, allocations: 75.28 kB / 466.1 MB, free: 12.7 MB / 350.1 MB Notification: Performance of sort global known variables: time 9e-08/0.3154, allocations: 0 / 466.1 MB, free: 12.7 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.0001952/0.3156, allocations: 19.7 kB / 466.1 MB, free: 12.69 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: 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.0004892/0.3161, allocations: 0.6829 MB / 466.8 MB, free: 12.05 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.0001273/0.3162, allocations: 74.25 kB / 466.9 MB, free: 12.02 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 2.915e-06/0.3162, allocations: 4.062 kB / 466.9 MB, free: 12.01 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 3.344e-05/0.3163, allocations: 38.14 kB / 466.9 MB, free: 11.99 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004021/0.3167, allocations: 35.17 kB / 466.9 MB, free: 11.98 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0004391/0.3171, allocations: 257.5 kB / 467.2 MB, free: 11.78 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001281/0.3173, allocations: 0.6862 MB / 467.9 MB, free: 11.09 MB / 350.1 MB Notification: Performance of simCode: alias equations: time 1.839e-05/0.3173, allocations: 0 / 467.9 MB, free: 11.09 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 2.36e-05/0.3173, allocations: 12.66 kB / 467.9 MB, free: 11.07 MB / 350.1 MB Notification: Performance of SimCode: time 2.2e-07/0.3173, allocations: 3 kB / 467.9 MB, free: 11.07 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.01995/0.3373, allocations: 2.769 MB / 470.6 MB, free: 10.55 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 7.81/8.147, allocations: 8.969 kB / 470.7 MB, free: 10.55 MB / 350.1 MB (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 & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator --tempDir=temp_ExternalMedia_ExternalMedia_Test_TestMedium_TestState_fmu --startTime=0 --stopTime=1 --timeout=50 --tolerance=1e-06 ExternalMedia_ExternalMedia_Test_TestMedium_TestState.fmu > ExternalMedia_ExternalMedia.Test.TestMedium.TestState.pipe 2>&1)