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.00069/0.00069, allocations: 98.03 kB / 15.36 MB, free: 0.7344 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.005472/0.005472, allocations: 171.3 kB / 16.27 MB, free: 6.648 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.277/1.277, allocations: 223.3 MB / 240.3 MB, free: 5.238 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ExternalMedia 4.0.0/package.mo): time 0.1156/0.1156, allocations: 2.788 MB / 294.2 MB, free: 4.223 MB / 238.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0002901/0.0002901, allocations: 8 kB / 356.3 MB, free: 3.828 MB / 286.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09209/0.0924, allocations: 51.26 MB / 407.6 MB, free: 0.5195 MB / 334.1 MB Notification: Performance of NFInst.instantiate(ExternalMedia.Test.TestMedium.TestState): time 0.008631/0.1011, allocations: 7.126 MB / 414.7 MB, free: 9.359 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 5.318e-05/0.1012, allocations: 39.81 kB / 414.7 MB, free: 9.32 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 1.723e-05/0.1012, allocations: 0 / 414.7 MB, free: 9.32 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.000243/0.1014, allocations: 75.64 kB / 414.8 MB, free: 9.246 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 3.269e-05/0.1015, allocations: 19.84 kB / 414.8 MB, free: 9.227 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0001749/0.1017, allocations: 39.75 kB / 414.9 MB, free: 9.188 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 7.409e-05/0.1017, allocations: 43.69 kB / 414.9 MB, free: 9.145 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 3.766e-05/0.1018, allocations: 0 / 414.9 MB, free: 9.145 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 3.142e-05/0.1018, allocations: 15.92 kB / 414.9 MB, free: 9.129 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 5.197e-05/0.1019, allocations: 15.88 kB / 414.9 MB, free: 9.113 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 1.121e-05/0.1019, allocations: 0 / 414.9 MB, free: 9.113 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001774/0.1021, allocations: 43.98 kB / 415 MB, free: 9.07 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 1.371e-05/0.1021, allocations: 3.938 kB / 415 MB, free: 9.066 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 4.09e-05/0.1022, allocations: 49.58 kB / 415 MB, free: 9.012 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.000154/0.1023, allocations: 59.81 kB / 415.1 MB, free: 8.953 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.547e-06/0.1023, allocations: 0 / 415.1 MB, free: 8.953 MB / 350.1 MB Notification: Performance of FrontEnd: time 1.593e-06/0.1023, allocations: 0 / 415.1 MB, free: 8.953 MB / 350.1 MB Notification: Performance of Transformations before backend: time 3.937e-06/0.1023, allocations: 0 / 415.1 MB, free: 8.953 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.0002996/0.1026, allocations: 335.5 kB / 415.4 MB, free: 8.578 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.068e-05/0.1027, allocations: 8.031 kB / 415.4 MB, free: 8.57 MB / 350.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 4.84e-05/0.1028, allocations: 34.73 kB / 415.5 MB, free: 8.527 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 2.474e-05/0.1028, allocations: 8.844 kB / 415.5 MB, free: 8.52 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 9.541e-05/0.1029, allocations: 164.3 kB / 415.6 MB, free: 8.32 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.001e-05/0.1029, allocations: 4.375 kB / 415.6 MB, free: 8.316 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 7.164e-06/0.1029, allocations: 384 / 415.6 MB, free: 8.316 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001322/0.1031, allocations: 69.55 kB / 415.7 MB, free: 8.242 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 7.724e-06/0.1031, allocations: 0 / 415.7 MB, free: 8.242 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 7.705e-06/0.1031, allocations: 0 / 415.7 MB, free: 8.242 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.986e-05/0.1031, allocations: 0 / 415.7 MB, free: 8.242 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 5.3e-05/0.1032, allocations: 31.92 kB / 415.7 MB, free: 8.211 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.000158/0.1033, allocations: 165.6 kB / 415.9 MB, free: 8 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 6.469e-05/0.1034, allocations: 58.56 kB / 416 MB, free: 7.934 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 4.008e-05/0.1034, allocations: 36.89 kB / 416 MB, free: 7.895 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.968e-05/0.1035, allocations: 15.91 kB / 416 MB, free: 7.879 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.867e-05/0.1035, allocations: 30.56 kB / 416 MB, free: 7.84 MB / 350.1 MB Notification: Performance of pre-optimization done (n=15): time 1.182e-06/0.1035, allocations: 0 / 416 MB, free: 7.84 MB / 350.1 MB Notification: Performance of matching and sorting (n=15): time 0.0002074/0.1037, allocations: 133.7 kB / 416.2 MB, free: 7.703 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.216e-05/0.1038, allocations: 55.41 kB / 416.2 MB, free: 7.637 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 4.44e-05/0.1038, allocations: 89.86 kB / 416.3 MB, free: 7.539 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 1.214e-05/0.1038, allocations: 29.73 kB / 416.3 MB, free: 7.504 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 2.368e-05/0.1039, allocations: 80.14 kB / 416.4 MB, free: 7.422 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 5.223e-05/0.1039, allocations: 39.36 kB / 416.5 MB, free: 7.383 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.578e-05/0.104, allocations: 17.72 kB / 416.5 MB, free: 7.359 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 0.0001147/0.1041, allocations: 318.8 kB / 416.8 MB, free: 7.039 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 2.939e-05/0.1041, allocations: 23.94 kB / 416.8 MB, free: 7.016 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 2.817e-05/0.1041, allocations: 35.02 kB / 416.8 MB, free: 6.984 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 7.346e-05/0.1042, allocations: 68.83 kB / 416.9 MB, free: 6.914 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.403e-06/0.1042, allocations: 32 / 416.9 MB, free: 6.914 MB / 350.1 MB Notification: Performance of matching and sorting (n=15) (initialization): time 0.0001193/0.1044, allocations: 101.5 kB / 417 MB, free: 6.809 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.53e-05/0.1044, allocations: 4 kB / 417 MB, free: 6.805 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.583e-06/0.1044, allocations: 4 kB / 417 MB, free: 6.801 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.14e-05/0.1044, allocations: 0 / 417 MB, free: 6.801 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 8.32e-07/0.1044, allocations: 0 / 417 MB, free: 6.801 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 3.897e-06/0.1044, allocations: 0 / 417 MB, free: 6.801 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 2.768e-05/0.1045, allocations: 3.938 kB / 417 MB, free: 6.797 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.234e-06/0.1045, allocations: 3.984 kB / 417 MB, free: 6.793 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 7.503e-05/0.1045, allocations: 113.9 kB / 417.1 MB, free: 6.672 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.067e-05/0.1046, allocations: 11.84 kB / 417.1 MB, free: 6.66 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001643/0.1047, allocations: 112 kB / 417.3 MB, free: 6.551 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.509e-06/0.1047, allocations: 3.938 kB / 417.3 MB, free: 6.547 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.138e-06/0.1048, allocations: 0 / 417.3 MB, free: 6.547 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.669e-06/0.1048, allocations: 0 / 417.3 MB, free: 6.547 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001149/0.1049, allocations: 173.6 kB / 417.4 MB, free: 6.328 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.296e-06/0.1049, allocations: 7.969 kB / 417.4 MB, free: 6.32 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 1.874e-06/0.1049, allocations: 4 kB / 417.4 MB, free: 6.316 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.104e-06/0.1049, allocations: 0 / 417.4 MB, free: 6.316 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.71e-06/0.1049, allocations: 0 / 417.4 MB, free: 6.316 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.252e-06/0.1049, allocations: 0 / 417.4 MB, free: 6.316 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.102e-06/0.1049, allocations: 0 / 417.4 MB, free: 6.316 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.000129/0.1051, allocations: 125 kB / 417.6 MB, free: 6.176 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 3.638e-05/0.1051, allocations: 85.05 kB / 417.6 MB, free: 6.074 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.001e-05/0.1051, allocations: 32 / 417.6 MB, free: 6.074 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 2.261e-05/0.1052, allocations: 7.984 kB / 417.7 MB, free: 6.066 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 1.331e-05/0.1052, allocations: 0 / 417.7 MB, free: 6.066 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.505e-06/0.1052, allocations: 0 / 417.7 MB, free: 6.066 MB / 350.1 MB Notification: Performance of sorting global known variables: time 2.457e-05/0.1052, allocations: 75.28 kB / 417.7 MB, free: 5.992 MB / 350.1 MB Notification: Performance of sort global known variables: time 1.2e-07/0.1052, allocations: 4 kB / 417.7 MB, free: 5.988 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.000193/0.1054, allocations: 16 kB / 417.7 MB, free: 5.973 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.0005899/0.106, allocations: 0.6996 MB / 418.4 MB, free: 5.25 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.000126/0.1061, allocations: 68.02 kB / 418.5 MB, free: 5.184 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 2.234e-06/0.1062, allocations: 0 / 418.5 MB, free: 5.184 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 3.784e-05/0.1062, allocations: 35.98 kB / 418.5 MB, free: 5.148 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003567/0.1066, allocations: 35.91 kB / 418.6 MB, free: 5.113 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0004798/0.1071, allocations: 311.9 kB / 418.9 MB, free: 4.766 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002445/0.1073, allocations: 0.6848 MB / 419.6 MB, free: 4.055 MB / 350.1 MB Notification: Performance of simCode: alias equations: time 2.918e-05/0.1073, allocations: 7.984 kB / 419.6 MB, free: 4.047 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 2.325e-05/0.1074, allocations: 11.44 kB / 419.6 MB, free: 4.035 MB / 350.1 MB Notification: Performance of SimCode: time 3.6e-07/0.1074, allocations: 4 kB / 419.6 MB, free: 4.031 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.01263/0.12, allocations: 2.384 MB / 422 MB, free: 1.773 MB / 350.1 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001874/0.1202, allocations: 229.9 kB / 422.2 MB, free: 1.516 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 1.781/1.901, allocations: 3.938 kB / 422.2 MB, free: 1.512 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)