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.006223/0.006223, allocations: 100.8 kB / 15.73 MB, free: 6.016 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.001365/0.001365, allocations: 191 kB / 16.67 MB, free: 5.934 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.414/1.414, allocations: 222.9 MB / 240.4 MB, free: 15.08 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ExternalMedia 4.0.0/package.mo): time 0.01244/0.01244, allocations: 2.773 MB / 293.3 MB, free: 11.95 MB / 238.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0018/0.0018, allocations: 63.83 kB / 405.4 MB, free: 29.57 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.07956/0.08137, allocations: 50.22 MB / 455.6 MB, free: 11.3 MB / 334.1 MB Notification: Performance of NFInst.instantiate(ExternalMedia.Test.TestMedium.TestState): time 0.008549/0.08996, allocations: 7.538 MB / 463.2 MB, free: 3.719 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 3.908e-05/0.09002, allocations: 27.89 kB / 463.2 MB, free: 3.691 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 1.811e-05/0.09005, allocations: 4 kB / 463.2 MB, free: 3.688 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0002221/0.0903, allocations: 75.59 kB / 463.3 MB, free: 3.613 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 2.626e-05/0.09033, allocations: 19.83 kB / 463.3 MB, free: 3.594 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0001418/0.09048, allocations: 43.69 kB / 463.3 MB, free: 3.551 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 7.641e-05/0.09056, allocations: 47.61 kB / 463.4 MB, free: 3.504 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 3.509e-05/0.0906, allocations: 4 kB / 463.4 MB, free: 3.5 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 2.359e-05/0.09063, allocations: 11.94 kB / 463.4 MB, free: 3.488 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 4.745e-05/0.09068, allocations: 11.94 kB / 463.4 MB, free: 3.477 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 9.447e-06/0.0907, allocations: 0 / 463.4 MB, free: 3.477 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001874/0.09089, allocations: 43.94 kB / 463.4 MB, free: 3.434 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 1.383e-05/0.09091, allocations: 4 kB / 463.4 MB, free: 3.43 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 4.093e-05/0.09096, allocations: 27.84 kB / 463.5 MB, free: 3.402 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0001766/0.09114, allocations: 59.7 kB / 463.5 MB, free: 3.344 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.827e-06/0.09115, allocations: 0 / 463.5 MB, free: 3.344 MB / 334.1 MB Notification: Performance of FrontEnd: time 1.373e-06/0.09116, allocations: 0 / 463.5 MB, free: 3.344 MB / 334.1 MB Notification: Performance of Transformations before backend: time 4.919e-06/0.09117, allocations: 0 / 463.5 MB, free: 3.344 MB / 334.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.0003509/0.09153, allocations: 343.4 kB / 463.9 MB, free: 2.961 MB / 334.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.748e-05/0.09157, allocations: 12.03 kB / 463.9 MB, free: 2.949 MB / 334.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 3.249e-05/0.09161, allocations: 30.75 kB / 463.9 MB, free: 2.91 MB / 334.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 2.175e-05/0.09164, allocations: 4.891 kB / 463.9 MB, free: 2.906 MB / 334.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001171/0.09176, allocations: 172.3 kB / 464.1 MB, free: 2.699 MB / 334.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 6.652e-06/0.09177, allocations: 384 / 464.1 MB, free: 2.699 MB / 334.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.08e-05/0.09178, allocations: 4.375 kB / 464.1 MB, free: 2.695 MB / 334.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001145/0.0919, allocations: 53.62 kB / 464.1 MB, free: 2.637 MB / 334.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 7.163e-06/0.09192, allocations: 0 / 464.1 MB, free: 2.637 MB / 334.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 5.55e-06/0.09193, allocations: 4 kB / 464.1 MB, free: 2.633 MB / 334.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.785e-06/0.09194, allocations: 4 kB / 464.1 MB, free: 2.629 MB / 334.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 3.901e-05/0.09199, allocations: 23.98 kB / 464.2 MB, free: 2.605 MB / 334.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001693/0.09216, allocations: 173.6 kB / 464.3 MB, free: 2.387 MB / 334.1 MB Notification: Performance of preOpt comSubExp (simulation): time 6.659e-05/0.09223, allocations: 54.53 kB / 464.4 MB, free: 2.324 MB / 334.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 4.409e-05/0.09229, allocations: 36.86 kB / 464.4 MB, free: 2.285 MB / 334.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.173e-05/0.09231, allocations: 3.938 kB / 464.4 MB, free: 2.281 MB / 334.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.611e-05/0.09235, allocations: 38.56 kB / 464.5 MB, free: 2.234 MB / 334.1 MB Notification: Performance of pre-optimization done (n=15): time 1.042e-06/0.09235, allocations: 3.938 kB / 464.5 MB, free: 2.23 MB / 334.1 MB Notification: Performance of matching and sorting (n=15): time 0.0002085/0.09257, allocations: 133.4 kB / 464.6 MB, free: 2.098 MB / 334.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.064e-05/0.09262, allocations: 55.34 kB / 464.7 MB, free: 2.031 MB / 334.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 4.778e-05/0.09267, allocations: 89.86 kB / 464.7 MB, free: 1.934 MB / 334.1 MB Notification: Performance of collectPreVariables (initialization): time 1.663e-05/0.09269, allocations: 25.7 kB / 464.8 MB, free: 1.902 MB / 334.1 MB Notification: Performance of collectInitialEqns (initialization): time 3.686e-05/0.09273, allocations: 80.14 kB / 464.8 MB, free: 1.82 MB / 334.1 MB Notification: Performance of collectInitialBindings (initialization): time 6.308e-05/0.0928, allocations: 59.47 kB / 464.9 MB, free: 1.762 MB / 334.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.118e-05/0.09284, allocations: 17.75 kB / 464.9 MB, free: 1.738 MB / 334.1 MB Notification: Performance of setup shared object (initialization): time 0.0001411/0.09298, allocations: 318.8 kB / 465.2 MB, free: 1.418 MB / 334.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 3.182e-05/0.09302, allocations: 24 kB / 465.3 MB, free: 1.395 MB / 334.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 2.993e-05/0.09306, allocations: 23.98 kB / 465.3 MB, free: 1.371 MB / 334.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 8.505e-05/0.09315, allocations: 72.78 kB / 465.4 MB, free: 1.297 MB / 334.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.513e-06/0.09315, allocations: 0 / 465.4 MB, free: 1.297 MB / 334.1 MB Notification: Performance of matching and sorting (n=15) (initialization): time 0.0001122/0.09327, allocations: 101.5 kB / 465.5 MB, free: 1.191 MB / 334.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.215e-05/0.09329, allocations: 4 kB / 465.5 MB, free: 1.188 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.829e-06/0.0933, allocations: 0 / 465.5 MB, free: 1.188 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.564e-05/0.09332, allocations: 12.05 kB / 465.5 MB, free: 1.176 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 8.42e-07/0.09333, allocations: 0 / 465.5 MB, free: 1.176 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 4.248e-06/0.09334, allocations: 0 / 465.5 MB, free: 1.176 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 2.761e-05/0.09337, allocations: 3.938 kB / 465.5 MB, free: 1.172 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.741e-06/0.09338, allocations: 0 / 465.5 MB, free: 1.172 MB / 334.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 9.118e-05/0.09348, allocations: 118.5 kB / 465.6 MB, free: 1.047 MB / 334.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.364e-05/0.0935, allocations: 7.891 kB / 465.6 MB, free: 1.039 MB / 334.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 2.388e-05/0.09353, allocations: 4.094 kB / 465.6 MB, free: 1.039 MB / 334.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.332e-06/0.09354, allocations: 4 kB / 465.6 MB, free: 1.035 MB / 334.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.986e-06/0.09355, allocations: 4 kB / 465.6 MB, free: 1.031 MB / 334.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.854e-06/0.09356, allocations: 0 / 465.6 MB, free: 1.031 MB / 334.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001249/0.09369, allocations: 169.6 kB / 465.8 MB, free: 0.8164 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.498e-06/0.0937, allocations: 7.938 kB / 465.8 MB, free: 0.8086 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 5.01e-07/0.0937, allocations: 0 / 465.8 MB, free: 0.8086 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.233e-06/0.09371, allocations: 0 / 465.8 MB, free: 0.8086 MB / 334.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.09e-06/0.09372, allocations: 0 / 465.8 MB, free: 0.8086 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.002e-06/0.09372, allocations: 0 / 465.8 MB, free: 0.8086 MB / 334.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.81e-07/0.09373, allocations: 0 / 465.8 MB, free: 0.8086 MB / 334.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001333/0.09386, allocations: 132.2 kB / 465.9 MB, free: 0.6641 MB / 334.1 MB Notification: Performance of postOpt removeConstants (simulation): time 5.003e-05/0.09392, allocations: 89 kB / 466 MB, free: 0.5586 MB / 334.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 8.596e-06/0.09394, allocations: 0 / 466 MB, free: 0.5586 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 1.796e-05/0.09396, allocations: 0 / 466 MB, free: 0.5586 MB / 334.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 1.768e-05/0.09398, allocations: 3.984 kB / 466 MB, free: 0.5547 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.445e-06/0.09399, allocations: 3.938 kB / 466 MB, free: 0.5508 MB / 334.1 MB Notification: Performance of sorting global known variables: time 3.029e-05/0.09402, allocations: 75.28 kB / 466.1 MB, free: 488 kB / 334.1 MB Notification: Performance of sort global known variables: time 1.01e-07/0.09403, allocations: 0 / 466.1 MB, free: 488 kB / 334.1 MB Notification: Performance of remove unused functions: time 0.0001848/0.09422, allocations: 15.94 kB / 466.1 MB, free: 472 kB / 334.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.0006271/0.09485, allocations: 0.701 MB / 466.8 MB, free: 15.74 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.0001331/0.09499, allocations: 71.86 kB / 466.9 MB, free: 15.67 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 1.714e-06/0.095, allocations: 0 / 466.9 MB, free: 15.67 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 4.04e-05/0.09505, allocations: 39.98 kB / 466.9 MB, free: 15.63 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003668/0.09542, allocations: 36.08 kB / 466.9 MB, free: 15.59 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0004765/0.09591, allocations: 253.1 kB / 467.2 MB, free: 15.3 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002852/0.0962, allocations: 0.6846 MB / 467.9 MB, free: 14.59 MB / 350.1 MB Notification: Performance of simCode: alias equations: time 2.088e-05/0.09623, allocations: 8 kB / 467.9 MB, free: 14.59 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 2.298e-05/0.09626, allocations: 11.44 kB / 467.9 MB, free: 14.57 MB / 350.1 MB Notification: Performance of SimCode: time 2.4e-07/0.09627, allocations: 3.938 kB / 467.9 MB, free: 14.57 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02192/0.1182, allocations: 2.766 MB / 470.7 MB, free: 11.89 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 7.69/7.808, allocations: 2.812 kB / 470.7 MB, free: 11.89 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)