Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr ExternalMedia_ExternalMedia.Test.TestMedium.TestSat.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo): time 0.001342/0.001342, allocations: 110.4 kB / 18.94 MB, free: 2.953 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo): time 0.001507/0.001507, allocations: 215.2 kB / 22.25 MB, free: 5.133 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo): time 1.468/1.468, allocations: 230.6 MB / 256 MB, free: 7.977 MB / 206.1 MB " [Timeout remaining time 178] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ExternalMedia 4.0.0/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ExternalMedia 4.0.0/package.mo): time 0.0129/0.0129, allocations: 2.785 MB / 315.2 MB, free: 320 kB / 238.1 MB " [Timeout remaining time 180] 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.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo) Using package Complex with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo) Using package ModelicaServices with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo) Running command: "" <> buildModelFMU(ExternalMedia.Test.TestMedium.TestSat,fileNamePrefix="ExternalMedia_ExternalMedia_Test_TestMedium_TestSat",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(ExternalMedia.Test.TestMedium.TestSat,fileNamePrefix="ExternalMedia_ExternalMedia_Test_TestMedium_TestSat",fmuType="me",version="2.0",platforms={"static"}) [Timeout 660] "Notification: ExternalMedia requested package Modelica of version 4.0.0. Modelica 4.1.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Performance of FrontEnd - loaded program: time 0.002028/0.002028, allocations: 67.91 kB / 438.7 MB, free: 13.66 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09913/0.1012, allocations: 54.17 MB / 492.8 MB, free: 7.398 MB / 350.1 MB Notification: Performance of NFInst.instantiate(ExternalMedia.Test.TestMedium.TestSat): time 0.009652/0.1108, allocations: 7.675 MB / 0.4888 GB, free: 15.69 MB / 366.1 MB Notification: Performance of NFInst.instExpressions: time 0.000546/0.1114, allocations: 0.5643 MB / 0.4893 GB, free: 15.12 MB / 366.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 2.121e-05/0.1114, allocations: 0 / 0.4893 GB, free: 15.12 MB / 366.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0002295/0.1116, allocations: 63.61 kB / 0.4894 GB, free: 15.06 MB / 366.1 MB Notification: Performance of NFTyping.typeBindings: time 2.887e-05/0.1116, allocations: 23.84 kB / 0.4894 GB, free: 15.04 MB / 366.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0001582/0.1118, allocations: 27.77 kB / 0.4894 GB, free: 15.01 MB / 366.1 MB Notification: Performance of NFFlatten.flatten: time 9.183e-05/0.1119, allocations: 31.81 kB / 0.4895 GB, free: 14.98 MB / 366.1 MB Notification: Performance of NFFlatten.resolveConnections: time 5.286e-05/0.1119, allocations: 3.938 kB / 0.4895 GB, free: 14.97 MB / 366.1 MB Notification: Performance of NFEvalConstants.evaluate: time 3.126e-05/0.112, allocations: 19.92 kB / 0.4895 GB, free: 14.95 MB / 366.1 MB Notification: Performance of NFSimplifyModel.simplify: time 5.567e-05/0.112, allocations: 15.86 kB / 0.4895 GB, free: 14.94 MB / 366.1 MB Notification: Performance of NFPackage.collectConstants: time 1.409e-05/0.112, allocations: 0 / 0.4895 GB, free: 14.94 MB / 366.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0002024/0.1122, allocations: 32 kB / 0.4895 GB, free: 14.91 MB / 366.1 MB Notification: Performance of NFScalarize.scalarize: time 1.506e-05/0.1123, allocations: 3.938 kB / 0.4896 GB, free: 14.9 MB / 366.1 MB Notification: Performance of NFVerifyModel.verify: time 4.22e-05/0.1123, allocations: 15.94 kB / 0.4896 GB, free: 14.89 MB / 366.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0001712/0.1125, allocations: 55.77 kB / 0.4896 GB, free: 14.83 MB / 366.1 MB Notification: Performance of FrontEnd - DAE generated: time 6.162e-06/0.1125, allocations: 0 / 0.4896 GB, free: 14.83 MB / 366.1 MB Notification: Performance of FrontEnd: time 1.312e-06/0.1125, allocations: 0 / 0.4896 GB, free: 14.83 MB / 366.1 MB Notification: Performance of Transformations before backend: time 6.392e-06/0.1125, allocations: 3.938 kB / 0.4896 GB, free: 14.83 MB / 366.1 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 14 * Number of variables: 14 Notification: Performance of Generate backend data structure: time 0.0003885/0.1129, allocations: 262.3 kB / 0.4899 GB, free: 14.54 MB / 366.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.957e-05/0.1129, allocations: 8.031 kB / 0.4899 GB, free: 14.54 MB / 366.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 4.699e-05/0.113, allocations: 34.75 kB / 0.4899 GB, free: 14.49 MB / 366.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 2.158e-05/0.113, allocations: 0.9375 kB / 0.4899 GB, free: 14.49 MB / 366.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001061/0.1131, allocations: 114.4 kB / 0.49 GB, free: 14.36 MB / 366.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 9.889e-06/0.1131, allocations: 4.375 kB / 0.49 GB, free: 14.35 MB / 366.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 6.612e-06/0.1131, allocations: 4.375 kB / 0.49 GB, free: 14.35 MB / 366.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001253/0.1132, allocations: 57.62 kB / 0.4901 GB, free: 14.29 MB / 366.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 7.955e-06/0.1132, allocations: 0 / 0.4901 GB, free: 14.29 MB / 366.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 8.806e-06/0.1132, allocations: 0 / 0.4901 GB, free: 14.29 MB / 366.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.402e-06/0.1132, allocations: 0 / 0.4901 GB, free: 14.29 MB / 366.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 4.061e-05/0.1133, allocations: 27.94 kB / 0.4901 GB, free: 14.26 MB / 366.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001711/0.1135, allocations: 144.7 kB / 0.4903 GB, free: 14.07 MB / 366.1 MB Notification: Performance of preOpt comSubExp (simulation): time 6.292e-05/0.1135, allocations: 42.58 kB / 0.4903 GB, free: 14.02 MB / 366.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 3.357e-05/0.1136, allocations: 28.88 kB / 0.4903 GB, free: 13.99 MB / 366.1 MB Notification: Performance of preOpt evalFunc (simulation): time 3.219e-05/0.1136, allocations: 7.938 kB / 0.4903 GB, free: 13.98 MB / 366.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.558e-05/0.1136, allocations: 30.56 kB / 0.4904 GB, free: 13.95 MB / 366.1 MB Notification: Performance of pre-optimization done (n=14): time 2.835e-06/0.1136, allocations: 3.984 kB / 0.4904 GB, free: 13.94 MB / 366.1 MB Notification: Performance of matching and sorting (n=14): time 0.0001999/0.1138, allocations: 125.9 kB / 0.4905 GB, free: 13.81 MB / 366.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.292e-05/0.1139, allocations: 55.41 kB / 0.4905 GB, free: 13.75 MB / 366.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 4.197e-05/0.1139, allocations: 89.86 kB / 0.4906 GB, free: 13.65 MB / 366.1 MB Notification: Performance of collectPreVariables (initialization): time 1.833e-05/0.1139, allocations: 33.73 kB / 0.4907 GB, free: 13.61 MB / 366.1 MB Notification: Performance of collectInitialEqns (initialization): time 3.195e-05/0.114, allocations: 80.38 kB / 0.4907 GB, free: 13.53 MB / 366.1 MB Notification: Performance of collectInitialBindings (initialization): time 6.358e-05/0.114, allocations: 51.52 kB / 0.4908 GB, free: 13.48 MB / 366.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.401e-05/0.1141, allocations: 17.7 kB / 0.4908 GB, free: 13.45 MB / 366.1 MB Notification: Performance of setup shared object (initialization): time 0.0001346/0.1142, allocations: 314.8 kB / 0.4911 GB, free: 13.14 MB / 366.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 3.112e-05/0.1142, allocations: 23.98 kB / 0.4911 GB, free: 13.11 MB / 366.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 2.726e-05/0.1143, allocations: 27.62 kB / 0.4911 GB, free: 13.09 MB / 366.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 8.362e-05/0.1143, allocations: 68.83 kB / 0.4912 GB, free: 13.02 MB / 366.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.293e-06/0.1143, allocations: 4.031 kB / 0.4912 GB, free: 13.02 MB / 366.1 MB Notification: Performance of matching and sorting (n=14) (initialization): time 0.0001144/0.1145, allocations: 97.52 kB / 0.4913 GB, free: 12.91 MB / 366.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.237e-05/0.1145, allocations: 7.938 kB / 0.4913 GB, free: 12.91 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.509e-06/0.1145, allocations: 0 / 0.4913 GB, free: 12.91 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.258e-05/0.1145, allocations: 0 / 0.4913 GB, free: 12.91 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 4.388e-06/0.1145, allocations: 11.92 kB / 0.4913 GB, free: 12.89 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 4.218e-06/0.1145, allocations: 0 / 0.4913 GB, free: 12.89 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 2.215e-05/0.1145, allocations: 0 / 0.4913 GB, free: 12.89 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.963e-06/0.1145, allocations: 4 kB / 0.4913 GB, free: 12.89 MB / 366.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): 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.897e-05/0.1146, allocations: 117.9 kB / 0.4914 GB, free: 12.77 MB / 366.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.094e-05/0.1146, allocations: 7.891 kB / 0.4914 GB, free: 12.76 MB / 366.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 2.703e-05/0.1146, allocations: 3.969 kB / 0.4915 GB, free: 12.76 MB / 366.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.266e-06/0.1147, allocations: 0 / 0.4915 GB, free: 12.76 MB / 366.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.326e-06/0.1147, allocations: 0 / 0.4915 GB, free: 12.76 MB / 366.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.071e-06/0.1147, allocations: 7.984 kB / 0.4915 GB, free: 12.75 MB / 366.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001224/0.1148, allocations: 136.7 kB / 0.4916 GB, free: 12.57 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.915e-06/0.1148, allocations: 3.938 kB / 0.4916 GB, free: 12.57 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 3.636e-06/0.1148, allocations: 4 kB / 0.4916 GB, free: 12.57 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.092e-06/0.1148, allocations: 0 / 0.4916 GB, free: 12.57 MB / 366.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.079e-06/0.1148, allocations: 0 / 0.4916 GB, free: 12.57 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 9.42e-07/0.1148, allocations: 4 kB / 0.4916 GB, free: 12.56 MB / 366.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.22e-07/0.1148, allocations: 0 / 0.4916 GB, free: 12.56 MB / 366.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001351/0.1149, allocations: 125 kB / 0.4917 GB, free: 12.42 MB / 366.1 MB Notification: Performance of postOpt removeConstants (simulation): time 1.359e-05/0.1149, allocations: 11.89 kB / 0.4917 GB, free: 12.41 MB / 366.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 8.606e-06/0.115, allocations: 0 / 0.4917 GB, free: 12.41 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 1.93e-05/0.115, allocations: 3.984 kB / 0.4917 GB, free: 12.41 MB / 366.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 8.997e-06/0.115, allocations: 0 / 0.4917 GB, free: 12.41 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.663e-06/0.115, allocations: 0 / 0.4917 GB, free: 12.41 MB / 366.1 MB Notification: Performance of sorting global known variables: time 4.147e-05/0.115, allocations: 79.31 kB / 0.4918 GB, free: 12.33 MB / 366.1 MB Notification: Performance of sort global known variables: time 7e-08/0.115, allocations: 0 / 0.4918 GB, free: 12.33 MB / 366.1 MB Notification: Performance of remove unused functions: time 0.0001978/0.1152, allocations: 19.94 kB / 0.4918 GB, free: 12.31 MB / 366.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 (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.0006479/0.1159, allocations: 0.6771 MB / 0.4925 GB, free: 11.61 MB / 366.1 MB Notification: Performance of simCode: created initialization part: time 0.0001192/0.116, allocations: 59.92 kB / 0.4926 GB, free: 11.55 MB / 366.1 MB Notification: Performance of simCode: created event and clocks part: time 1.854e-06/0.116, allocations: 0 / 0.4926 GB, free: 11.55 MB / 366.1 MB Notification: Performance of simCode: created simulation system equations: time 2.865e-05/0.116, allocations: 24 kB / 0.4926 GB, free: 11.52 MB / 366.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000359/0.1164, allocations: 32.08 kB / 0.4926 GB, free: 11.49 MB / 366.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0004634/0.1168, allocations: 227.6 kB / 0.4928 GB, free: 11.23 MB / 366.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003199/0.1172, allocations: 0.6923 MB / 0.4935 GB, free: 10.51 MB / 366.1 MB Notification: Performance of simCode: alias equations: time 1.457e-05/0.1172, allocations: 3.938 kB / 0.4935 GB, free: 10.51 MB / 366.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 2.377e-05/0.1172, allocations: 15.42 kB / 0.4935 GB, free: 10.49 MB / 366.1 MB Notification: Performance of SimCode: time 3.21e-07/0.1172, allocations: 0 / 0.4935 GB, free: 10.49 MB / 366.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02709/0.1443, allocations: 2.7 MB / 0.4962 GB, free: 7.938 MB / 366.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 10.93/11.07, allocations: 3.594 kB / 0.4962 GB, free: 7.938 MB / 366.1 MB " [Timeout remaining time 649] (rm -f ExternalMedia_ExternalMedia.Test.TestMedium.TestSat.pipe ; mkfifo ExternalMedia_ExternalMedia.Test.TestMedium.TestSat.pipe ; head -c 1048576 < ExternalMedia_ExternalMedia.Test.TestMedium.TestSat.pipe >> ../files/ExternalMedia_ExternalMedia.Test.TestMedium.TestSat.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator --tempDir=temp_ExternalMedia_ExternalMedia_Test_TestMedium_TestSat_fmu --startTime=0 --stopTime=1 --stepSize=0.001 --timeout=50 --tolerance=1e-06 ExternalMedia_ExternalMedia_Test_TestMedium_TestSat.fmu > ExternalMedia_ExternalMedia.Test.TestMedium.TestSat.pipe 2>&1) [Timeout 52.5] [Calling sys.exit(0), Time elapsed: 14.01460966002196] Failed to read output from testmodel.py, exit status != 0: 11.401475737104192 11.612429922 11.496632357 Calling exit ...