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.001469/0.001469, allocations: 108 kB / 15.6 MB, free: 132 kB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001716/0.001716, allocations: 193.7 kB / 16.53 MB, free: 6.391 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.467/1.467, allocations: 222.9 MB / 240.2 MB, free: 4.402 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ExternalMedia 4.0.0/package.mo): time 0.1174/0.1174, allocations: 2.765 MB / 293.2 MB, free: 3.559 MB / 238.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001274/0.001274, allocations: 63.89 kB / 354.5 MB, free: 4.293 MB / 286.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09061/0.0919, allocations: 50.24 MB / 404.7 MB, free: 2.008 MB / 334.1 MB Notification: Performance of NFInst.instantiate(ExternalMedia.Test.TestMedium.TestState): time 0.009231/0.1012, allocations: 7.53 MB / 412.3 MB, free: 10.44 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 5.211e-05/0.1013, allocations: 23.89 kB / 412.3 MB, free: 10.42 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 2.221e-05/0.1013, allocations: 3.938 kB / 412.3 MB, free: 10.41 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0002537/0.1015, allocations: 83.62 kB / 412.4 MB, free: 10.33 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 3.35e-05/0.1016, allocations: 23.78 kB / 412.4 MB, free: 10.31 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0001791/0.1018, allocations: 39.69 kB / 412.4 MB, free: 10.27 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 7.32e-05/0.1019, allocations: 35.69 kB / 412.5 MB, free: 10.23 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 4.46e-05/0.1019, allocations: 8 kB / 412.5 MB, free: 10.23 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 2.454e-05/0.102, allocations: 11.94 kB / 412.5 MB, free: 10.21 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 4.516e-05/0.102, allocations: 11.94 kB / 412.5 MB, free: 10.2 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 1.122e-05/0.102, allocations: 4 kB / 412.5 MB, free: 10.2 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0002143/0.1023, allocations: 39.98 kB / 412.5 MB, free: 10.16 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 1.505e-05/0.1023, allocations: 3.938 kB / 412.6 MB, free: 10.16 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 5.259e-05/0.1023, allocations: 27.86 kB / 412.6 MB, free: 10.13 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0001796/0.1025, allocations: 55.77 kB / 412.6 MB, free: 10.07 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 7.213e-06/0.1025, allocations: 4 kB / 412.6 MB, free: 10.07 MB / 350.1 MB Notification: Performance of FrontEnd: time 2.956e-06/0.1025, allocations: 3.984 kB / 412.6 MB, free: 10.07 MB / 350.1 MB Notification: Performance of Transformations before backend: time 6.131e-06/0.1026, allocations: 0 / 412.6 MB, free: 10.07 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.0003526/0.1029, allocations: 339.4 kB / 413 MB, free: 9.688 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.995e-05/0.103, allocations: 12.03 kB / 413 MB, free: 9.676 MB / 350.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 5.521e-05/0.103, allocations: 34.73 kB / 413 MB, free: 9.633 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.174e-05/0.1031, allocations: 12.84 kB / 413 MB, free: 9.621 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 9.412e-05/0.1032, allocations: 160.4 kB / 413.2 MB, free: 9.426 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.141e-05/0.1032, allocations: 384 / 413.2 MB, free: 9.426 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 7.775e-06/0.1032, allocations: 384 / 413.2 MB, free: 9.426 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001385/0.1034, allocations: 73.5 kB / 413.3 MB, free: 9.348 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 7.504e-06/0.1034, allocations: 0 / 413.3 MB, free: 9.348 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 6.752e-06/0.1034, allocations: 0 / 413.3 MB, free: 9.348 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.676e-06/0.1034, allocations: 3.984 kB / 413.3 MB, free: 9.344 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 4.34e-05/0.1034, allocations: 31.98 kB / 413.3 MB, free: 9.312 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001678/0.1036, allocations: 161.7 kB / 413.5 MB, free: 9.105 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 6.779e-05/0.1037, allocations: 58.5 kB / 413.5 MB, free: 9.039 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 4.206e-05/0.1037, allocations: 40.88 kB / 413.6 MB, free: 8.996 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 3.157e-05/0.1038, allocations: 7.938 kB / 413.6 MB, free: 8.988 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.942e-05/0.1038, allocations: 38.44 kB / 413.6 MB, free: 8.941 MB / 350.1 MB Notification: Performance of pre-optimization done (n=15): time 1.283e-06/0.1038, allocations: 0 / 413.6 MB, free: 8.941 MB / 350.1 MB Notification: Performance of matching and sorting (n=15): time 0.0002457/0.1041, allocations: 129.8 kB / 413.7 MB, free: 8.809 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.919e-05/0.1041, allocations: 55.41 kB / 413.8 MB, free: 8.742 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 5.209e-05/0.1042, allocations: 89.86 kB / 413.9 MB, free: 8.645 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 1.64e-05/0.1042, allocations: 25.7 kB / 413.9 MB, free: 8.613 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 3.827e-05/0.1043, allocations: 84.14 kB / 414 MB, free: 8.527 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 6.295e-05/0.1043, allocations: 39.36 kB / 414 MB, free: 8.488 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 4.495e-05/0.1044, allocations: 17.7 kB / 414 MB, free: 8.465 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 0.0001151/0.1045, allocations: 318.8 kB / 414.3 MB, free: 8.145 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 5.593e-05/0.1046, allocations: 35.95 kB / 414.4 MB, free: 8.109 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 2.501e-05/0.1046, allocations: 18.53 kB / 414.4 MB, free: 8.094 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 8.305e-05/0.1047, allocations: 76.77 kB / 414.5 MB, free: 8.016 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.184e-06/0.1047, allocations: 0 / 414.5 MB, free: 8.016 MB / 350.1 MB Notification: Performance of matching and sorting (n=15) (initialization): time 0.0001252/0.1048, allocations: 93.53 kB / 414.6 MB, free: 7.918 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.622e-05/0.1048, allocations: 4 kB / 414.6 MB, free: 7.914 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.003e-06/0.1049, allocations: 0 / 414.6 MB, free: 7.914 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.63e-05/0.1049, allocations: 0 / 414.6 MB, free: 7.914 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 2.334e-06/0.1049, allocations: 3.984 kB / 414.6 MB, free: 7.91 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 4.789e-06/0.1049, allocations: 0 / 414.6 MB, free: 7.91 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 3.421e-05/0.1049, allocations: 12 kB / 414.6 MB, free: 7.898 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.103e-06/0.105, allocations: 0 / 414.6 MB, free: 7.898 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 8.593e-05/0.105, allocations: 109.8 kB / 414.7 MB, free: 7.781 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.966e-05/0.1051, allocations: 11.84 kB / 414.7 MB, free: 7.77 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.369e-05/0.1051, allocations: 4.094 kB / 414.7 MB, free: 7.77 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.797e-06/0.1051, allocations: 0 / 414.7 MB, free: 7.77 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.807e-06/0.1051, allocations: 3.984 kB / 414.7 MB, free: 7.766 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.525e-06/0.1051, allocations: 0 / 414.7 MB, free: 7.766 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001345/0.1053, allocations: 173.6 kB / 414.9 MB, free: 7.547 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.215e-05/0.1053, allocations: 7.875 kB / 414.9 MB, free: 7.539 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 1.222e-06/0.1053, allocations: 3.938 kB / 414.9 MB, free: 7.535 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.854e-06/0.1053, allocations: 0 / 414.9 MB, free: 7.535 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.115e-06/0.1053, allocations: 0 / 414.9 MB, free: 7.535 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.443e-06/0.1053, allocations: 0 / 414.9 MB, free: 7.535 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.273e-06/0.1053, allocations: 4 kB / 414.9 MB, free: 7.531 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.000149/0.1055, allocations: 123 kB / 415 MB, free: 7.395 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 5.42e-05/0.1056, allocations: 88.94 kB / 415.1 MB, free: 7.289 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.223e-05/0.1056, allocations: 4.031 kB / 415.1 MB, free: 7.285 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 2.413e-05/0.1056, allocations: 4 kB / 415.1 MB, free: 7.281 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 1.451e-05/0.1056, allocations: 0 / 415.1 MB, free: 7.281 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.996e-06/0.1057, allocations: 4 kB / 415.1 MB, free: 7.277 MB / 350.1 MB Notification: Performance of sorting global known variables: time 3.259e-05/0.1057, allocations: 75.28 kB / 415.2 MB, free: 7.203 MB / 350.1 MB Notification: Performance of sort global known variables: time 2.21e-07/0.1057, allocations: 3.938 kB / 415.2 MB, free: 7.199 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.0002186/0.1059, allocations: 12 kB / 415.2 MB, free: 7.188 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.0006667/0.1066, allocations: 0.6922 MB / 415.9 MB, free: 6.473 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.000133/0.1067, allocations: 72.02 kB / 416 MB, free: 6.402 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 2.555e-06/0.1068, allocations: 0 / 416 MB, free: 6.402 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 3.717e-05/0.1068, allocations: 39.98 kB / 416 MB, free: 6.363 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004157/0.1072, allocations: 23.97 kB / 416 MB, free: 6.34 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0005394/0.1078, allocations: 277.1 kB / 416.3 MB, free: 6.027 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002874/0.1081, allocations: 0.6846 MB / 417 MB, free: 5.316 MB / 350.1 MB Notification: Performance of simCode: alias equations: time 3.224e-05/0.1081, allocations: 7.984 kB / 417 MB, free: 5.309 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 2.969e-05/0.1081, allocations: 15.44 kB / 417 MB, free: 5.293 MB / 350.1 MB Notification: Performance of SimCode: time 2.2e-07/0.1081, allocations: 0 / 417 MB, free: 5.293 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.01988/0.128, allocations: 2.723 MB / 419.7 MB, free: 2.648 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 7.484/7.612, allocations: 15.91 kB / 419.7 MB, free: 2.633 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)