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.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.001347/0.001347, allocations: 107.6 kB / 18.95 MB, free: 2.812 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.001521/0.001521, allocations: 215.4 kB / 22.25 MB, free: 5.098 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.492/1.492, allocations: 230.6 MB / 256 MB, free: 7.785 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.01368/0.01368, allocations: 2.794 MB / 315.2 MB, free: 188 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.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"}) [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.002193/0.002193, allocations: 71.89 kB / 438.6 MB, free: 13.36 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1042/0.1064, allocations: 54.17 MB / 492.8 MB, free: 7.078 MB / 350.1 MB Notification: Performance of NFInst.instantiate(ExternalMedia.Test.TestMedium.TestState): time 0.01045/0.1169, allocations: 6.997 MB / 499.8 MB, free: 48 kB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 7.19e-05/0.117, allocations: 39.88 kB / 499.8 MB, free: 8 kB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 2.648e-05/0.117, allocations: 0 / 499.8 MB, free: 8 kB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0003071/0.1173, allocations: 63.69 kB / 499.9 MB, free: 15.94 MB / 366.1 MB Notification: Performance of NFTyping.typeBindings: time 4.504e-05/0.1173, allocations: 27.77 kB / 499.9 MB, free: 15.91 MB / 366.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002267/0.1176, allocations: 39.52 kB / 500 MB, free: 15.88 MB / 366.1 MB Notification: Performance of NFFlatten.flatten: time 0.0001245/0.1177, allocations: 51.67 kB / 0.4883 GB, free: 15.83 MB / 366.1 MB Notification: Performance of NFFlatten.resolveConnections: time 5.738e-05/0.1177, allocations: 0 / 0.4883 GB, free: 15.83 MB / 366.1 MB Notification: Performance of NFEvalConstants.evaluate: time 3.553e-05/0.1178, allocations: 15.94 kB / 0.4883 GB, free: 15.81 MB / 366.1 MB Notification: Performance of NFSimplifyModel.simplify: time 5.126e-05/0.1178, allocations: 7.938 kB / 0.4883 GB, free: 15.8 MB / 366.1 MB Notification: Performance of NFPackage.collectConstants: time 1.253e-05/0.1178, allocations: 4 kB / 0.4883 GB, free: 15.8 MB / 366.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0002044/0.1181, allocations: 39.94 kB / 0.4884 GB, free: 15.76 MB / 366.1 MB Notification: Performance of NFScalarize.scalarize: time 1.932e-05/0.1181, allocations: 7.938 kB / 0.4884 GB, free: 15.75 MB / 366.1 MB Notification: Performance of NFVerifyModel.verify: time 3.711e-05/0.1181, allocations: 11.94 kB / 0.4884 GB, free: 15.74 MB / 366.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0002121/0.1183, allocations: 59.8 kB / 0.4884 GB, free: 15.68 MB / 366.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.09e-06/0.1183, allocations: 0 / 0.4884 GB, free: 15.68 MB / 366.1 MB Notification: Performance of FrontEnd: time 2.474e-06/0.1183, allocations: 4 kB / 0.4884 GB, free: 15.68 MB / 366.1 MB Notification: Performance of Transformations before backend: time 6.683e-06/0.1183, allocations: 0 / 0.4884 GB, free: 15.68 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: 15 * Number of variables: 15 Notification: Performance of Generate backend data structure: time 0.0003654/0.1187, allocations: 274.2 kB / 0.4887 GB, free: 15.38 MB / 366.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.345e-05/0.1187, allocations: 8.031 kB / 0.4887 GB, free: 15.38 MB / 366.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 3.597e-05/0.1188, allocations: 30.75 kB / 0.4887 GB, free: 15.34 MB / 366.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 2.956e-05/0.1188, allocations: 4.938 kB / 0.4887 GB, free: 15.33 MB / 366.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001078/0.1189, allocations: 114.4 kB / 0.4888 GB, free: 15.2 MB / 366.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 8.035e-06/0.1189, allocations: 384 / 0.4888 GB, free: 15.2 MB / 366.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.322e-05/0.1189, allocations: 4.375 kB / 0.4888 GB, free: 15.19 MB / 366.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001296/0.1191, allocations: 53.62 kB / 0.4889 GB, free: 15.13 MB / 366.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 7.754e-06/0.1191, allocations: 0 / 0.4889 GB, free: 15.13 MB / 366.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.003e-05/0.1191, allocations: 8 kB / 0.4889 GB, free: 15.12 MB / 366.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.036e-05/0.1191, allocations: 7.984 kB / 0.4889 GB, free: 15.12 MB / 366.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 4.216e-05/0.1191, allocations: 24 kB / 0.4889 GB, free: 15.09 MB / 366.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001945/0.1193, allocations: 144.7 kB / 0.4891 GB, free: 14.91 MB / 366.1 MB Notification: Performance of preOpt comSubExp (simulation): time 7.392e-05/0.1194, allocations: 42.52 kB / 0.4891 GB, free: 14.86 MB / 366.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 5.168e-05/0.1195, allocations: 32.88 kB / 0.4891 GB, free: 14.82 MB / 366.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.889e-05/0.1195, allocations: 3.938 kB / 0.4892 GB, free: 14.82 MB / 366.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.975e-05/0.1195, allocations: 34.56 kB / 0.4892 GB, free: 14.78 MB / 366.1 MB Notification: Performance of pre-optimization done (n=15): time 1.152e-06/0.1195, allocations: 0 / 0.4892 GB, free: 14.78 MB / 366.1 MB Notification: Performance of matching and sorting (n=15): time 0.0002501/0.1198, allocations: 133.8 kB / 0.4893 GB, free: 14.64 MB / 366.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.414e-05/0.1198, allocations: 55.44 kB / 0.4894 GB, free: 14.57 MB / 366.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 5.039e-05/0.1199, allocations: 89.86 kB / 0.4895 GB, free: 14.48 MB / 366.1 MB Notification: Performance of collectPreVariables (initialization): time 1.452e-05/0.1199, allocations: 29.64 kB / 0.4895 GB, free: 14.44 MB / 366.1 MB Notification: Performance of collectInitialEqns (initialization): time 4.055e-05/0.1199, allocations: 80.14 kB / 0.4896 GB, free: 14.36 MB / 366.1 MB Notification: Performance of collectInitialBindings (initialization): time 7.118e-05/0.12, allocations: 51.53 kB / 0.4896 GB, free: 14.31 MB / 366.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 4.207e-05/0.12, allocations: 21.7 kB / 0.4896 GB, free: 14.28 MB / 366.1 MB Notification: Performance of setup shared object (initialization): time 0.0001651/0.1202, allocations: 314.8 kB / 0.4899 GB, free: 13.96 MB / 366.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 3.668e-05/0.1202, allocations: 27.98 kB / 0.49 GB, free: 13.94 MB / 366.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 3.193e-05/0.1203, allocations: 27.09 kB / 0.49 GB, free: 13.91 MB / 366.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 9.112e-05/0.1204, allocations: 76.77 kB / 0.4901 GB, free: 13.84 MB / 366.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.573e-06/0.1204, allocations: 0 / 0.4901 GB, free: 13.84 MB / 366.1 MB Notification: Performance of matching and sorting (n=15) (initialization): time 0.0001255/0.1205, allocations: 105.6 kB / 0.4902 GB, free: 13.73 MB / 366.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.822e-05/0.1205, allocations: 7.125 kB / 0.4902 GB, free: 13.72 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.362e-06/0.1205, allocations: 3.938 kB / 0.4902 GB, free: 13.72 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.623e-05/0.1205, allocations: 0 / 0.4902 GB, free: 13.72 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 2.635e-06/0.1205, allocations: 3.938 kB / 0.4902 GB, free: 13.71 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.481e-06/0.1205, allocations: 0 / 0.4902 GB, free: 13.71 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 3.452e-05/0.1206, allocations: 7.953 kB / 0.4902 GB, free: 13.71 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 9.046e-06/0.1206, allocations: 4 kB / 0.4902 GB, free: 13.7 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: 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 0.0001079/0.1207, allocations: 113.8 kB / 0.4903 GB, free: 13.58 MB / 366.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.068e-05/0.1207, allocations: 3.969 kB / 0.4903 GB, free: 13.58 MB / 366.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.542e-05/0.1207, allocations: 7.969 kB / 0.4903 GB, free: 13.57 MB / 366.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.572e-06/0.1207, allocations: 3.984 kB / 0.4903 GB, free: 13.57 MB / 366.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.348e-06/0.1207, allocations: 0 / 0.4903 GB, free: 13.57 MB / 366.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.132e-06/0.1207, allocations: 4 kB / 0.4903 GB, free: 13.57 MB / 366.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001312/0.1209, allocations: 144.6 kB / 0.4904 GB, free: 13.38 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.196e-06/0.1209, allocations: 3.938 kB / 0.4904 GB, free: 13.38 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 5.01e-07/0.1209, allocations: 0 / 0.4904 GB, free: 13.38 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.763e-06/0.1209, allocations: 0 / 0.4904 GB, free: 13.38 MB / 366.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.982e-06/0.1209, allocations: 0 / 0.4904 GB, free: 13.38 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.506e-06/0.1209, allocations: 3.984 kB / 0.4905 GB, free: 13.38 MB / 366.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.613e-06/0.1209, allocations: 4 kB / 0.4905 GB, free: 13.37 MB / 366.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.000146/0.121, allocations: 128.2 kB / 0.4906 GB, free: 13.23 MB / 366.1 MB Notification: Performance of postOpt removeConstants (simulation): time 1.385e-05/0.1211, allocations: 11.88 kB / 0.4906 GB, free: 13.22 MB / 366.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 9.097e-06/0.1211, allocations: 3.938 kB / 0.4906 GB, free: 13.21 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 2.006e-05/0.1211, allocations: 0 / 0.4906 GB, free: 13.21 MB / 366.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 1.378e-05/0.1211, allocations: 0 / 0.4906 GB, free: 13.21 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.424e-06/0.1211, allocations: 0 / 0.4906 GB, free: 13.21 MB / 366.1 MB Notification: Performance of sorting global known variables: time 4.851e-05/0.1211, allocations: 79.28 kB / 0.4907 GB, free: 13.14 MB / 366.1 MB Notification: Performance of sort global known variables: time 6e-08/0.1211, allocations: 0 / 0.4907 GB, free: 13.14 MB / 366.1 MB Notification: Performance of remove unused functions: time 0.0001909/0.1213, allocations: 12 kB / 0.4907 GB, free: 13.12 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: 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.0007686/0.1221, allocations: 0.7056 MB / 0.4914 GB, free: 12.39 MB / 366.1 MB Notification: Performance of simCode: created initialization part: time 0.0001401/0.1222, allocations: 67.91 kB / 0.4914 GB, free: 12.33 MB / 366.1 MB Notification: Performance of simCode: created event and clocks part: time 2.194e-06/0.1223, allocations: 3.938 kB / 0.4914 GB, free: 12.32 MB / 366.1 MB Notification: Performance of simCode: created simulation system equations: time 3.347e-05/0.1223, allocations: 28.09 kB / 0.4915 GB, free: 12.3 MB / 366.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004007/0.1227, allocations: 39.94 kB / 0.4915 GB, free: 12.26 MB / 366.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0005376/0.1232, allocations: 266.1 kB / 0.4918 GB, free: 11.96 MB / 366.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 6.258e-05/0.1233, allocations: 71.28 kB / 0.4918 GB, free: 11.87 MB / 366.1 MB Notification: Performance of simCode: alias equations: time 2.657e-05/0.1233, allocations: 4 kB / 0.4918 GB, free: 11.86 MB / 366.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 2.848e-05/0.1233, allocations: 15.42 kB / 0.4918 GB, free: 11.85 MB / 366.1 MB Notification: Performance of SimCode: time 6.21e-07/0.1233, allocations: 0 / 0.4918 GB, free: 11.85 MB / 366.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.03484/0.1582, allocations: 3.441 MB / 0.4952 GB, free: 8.586 MB / 366.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 11.1/11.26, allocations: 17.81 kB / 0.4952 GB, free: 8.574 MB / 366.1 MB " [Timeout remaining time 648] (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 --stepSize=0.001 --timeout=50 --tolerance=1e-06 ExternalMedia_ExternalMedia_Test_TestMedium_TestState.fmu > ExternalMedia_ExternalMedia.Test.TestMedium.TestState.pipe 2>&1) [Timeout 52.5] [Calling sys.exit(0), Time elapsed: 14.26173315802589] Failed to read output from testmodel.py, exit status != 0: 11.58049894683063 11.763136514 11.641903633 Calling exit ...