Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr ExternalMedia_ExternalMedia.Test.TestMedium.TestConstants.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.001281/0.001281, allocations: 115.1 kB / 17.16 MB, free: 5.895 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.001419/0.001419, allocations: 215 kB / 20.13 MB, free: 2.949 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.5/1.5, allocations: 230.6 MB / 253.5 MB, free: 15.11 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.01764/0.01764, allocations: 2.799 MB / 312.3 MB, free: 2.336 MB / 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.TestConstants,fileNamePrefix="ExternalMedia_ExternalMedia_Test_TestMedium_TestConstants",fmuType="cs",version="2.0",platforms={"static"}) "" <> buildModelFMU(ExternalMedia.Test.TestMedium.TestConstants,fileNamePrefix="ExternalMedia_ExternalMedia_Test_TestMedium_TestConstants",fmuType="cs",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.001968/0.001968, allocations: 65.5 kB / 434.2 MB, free: 39.18 MB / 350.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.07952/0.08148, allocations: 54.12 MB / 488.3 MB, free: 14.42 MB / 350.1 MB Notification: Performance of NFInst.instantiate(ExternalMedia.Test.TestMedium.TestConstants): time 0.007196/0.08868, allocations: 7.401 MB / 495.7 MB, free: 8.387 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 7.564e-06/0.08869, allocations: 8 kB / 495.7 MB, free: 8.379 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 1.808e-05/0.0887, allocations: 5.312 kB / 495.7 MB, free: 8.375 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 1.975e-05/0.08872, allocations: 0 / 495.7 MB, free: 8.375 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.000292/0.08902, allocations: 111.8 kB / 495.9 MB, free: 8.293 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 3.416e-06/0.08902, allocations: 0 / 495.9 MB, free: 8.293 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 3.555e-05/0.08906, allocations: 2.75 kB / 495.9 MB, free: 8.293 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 3.841e-05/0.08909, allocations: 0 / 495.9 MB, free: 8.293 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.01873/0.1078, allocations: 38.09 kB / 495.9 MB, free: 8.266 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 2.125e-05/0.1078, allocations: 1.375 kB / 495.9 MB, free: 8.266 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 8.817e-06/0.1079, allocations: 0 / 495.9 MB, free: 8.266 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 4.889e-06/0.1079, allocations: 0 / 495.9 MB, free: 8.266 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 1.158e-05/0.1079, allocations: 1.375 kB / 495.9 MB, free: 8.266 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 2.101e-05/0.1079, allocations: 3.984 kB / 495.9 MB, free: 8.262 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 6.826e-05/0.108, allocations: 6.688 kB / 495.9 MB, free: 8.258 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.821e-06/0.108, allocations: 0 / 495.9 MB, free: 8.258 MB / 350.1 MB Notification: Performance of FrontEnd: time 2.936e-06/0.108, allocations: 0 / 495.9 MB, free: 8.258 MB / 350.1 MB Notification: Performance of Transformations before backend: time 7.234e-06/0.108, allocations: 0 / 495.9 MB, free: 8.258 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: 1 * Number of variables: 1 Notification: Performance of Generate backend data structure: time 0.0002723/0.1082, allocations: 314.3 kB / 496.2 MB, free: 7.906 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.49e-05/0.1083, allocations: 13.58 kB / 496.2 MB, free: 7.902 MB / 350.1 MB Notification: Performance of preOpt introduceOutputRealDerivatives (simulation): time 2.245e-05/0.1083, allocations: 1.562 kB / 496.2 MB, free: 7.902 MB / 350.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 1.906e-05/0.1083, allocations: 34.75 kB / 496.3 MB, free: 7.859 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 2.447e-05/0.1084, allocations: 2.312 kB / 496.3 MB, free: 7.859 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 6.925e-05/0.1084, allocations: 160.4 kB / 496.4 MB, free: 7.664 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.109e-05/0.1084, allocations: 4.359 kB / 496.4 MB, free: 7.66 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 8.787e-06/0.1085, allocations: 5.5 kB / 496.4 MB, free: 7.656 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 8.705e-05/0.1085, allocations: 39 kB / 496.5 MB, free: 7.613 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 9.838e-06/0.1086, allocations: 0 / 496.5 MB, free: 7.613 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 9.097e-06/0.1086, allocations: 0 / 496.5 MB, free: 7.613 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.4e-06/0.1086, allocations: 1.375 kB / 496.5 MB, free: 7.613 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 1.798e-05/0.1086, allocations: 0 / 496.5 MB, free: 7.613 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0002242/0.1088, allocations: 378.2 kB / 496.8 MB, free: 7.195 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 4.954e-05/0.1089, allocations: 174.5 kB / 497 MB, free: 7.016 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 1.995e-05/0.1089, allocations: 81.52 kB / 497.1 MB, free: 6.934 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.702e-05/0.1089, allocations: 79.27 kB / 497.2 MB, free: 6.855 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.558e-05/0.1089, allocations: 113.8 kB / 497.3 MB, free: 6.734 MB / 350.1 MB Notification: Performance of pre-optimization done (n=0): time 9.02e-07/0.1089, allocations: 1.375 kB / 497.3 MB, free: 6.734 MB / 350.1 MB Notification: Performance of matching and sorting (n=0): time 6.72e-05/0.109, allocations: 29.7 kB / 497.3 MB, free: 6.699 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.077e-05/0.109, allocations: 132.1 kB / 497.4 MB, free: 6.559 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 5.417e-05/0.1091, allocations: 91.23 kB / 497.5 MB, free: 6.461 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 4.959e-06/0.1091, allocations: 29.64 kB / 497.6 MB, free: 6.426 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 2.587e-05/0.1091, allocations: 93.34 kB / 497.7 MB, free: 6.332 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 2.555e-06/0.1091, allocations: 0 / 497.7 MB, free: 6.332 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.524e-05/0.1091, allocations: 11.09 kB / 497.7 MB, free: 6.316 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 5.478e-05/0.1092, allocations: 324.1 kB / 498 MB, free: 5.992 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 8.756e-06/0.1092, allocations: 0 / 498 MB, free: 5.992 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 4.558e-06/0.1092, allocations: 5.5 kB / 498 MB, free: 5.988 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 2.36e-05/0.1092, allocations: 7.609 kB / 498 MB, free: 5.98 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.854e-06/0.1092, allocations: 3.938 kB / 498 MB, free: 5.977 MB / 350.1 MB Notification: Performance of matching and sorting (n=1) (initialization): time 8.445e-05/0.1093, allocations: 29.83 kB / 498 MB, free: 5.945 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.331e-05/0.1093, allocations: 5.5 kB / 498 MB, free: 5.945 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.741e-06/0.1093, allocations: 1.375 kB / 498 MB, free: 5.945 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.569e-05/0.1094, allocations: 0 / 498 MB, free: 5.945 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 5.302e-05/0.1094, allocations: 5.312 kB / 498 MB, free: 5.941 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 4.909e-06/0.1094, allocations: 0 / 498 MB, free: 5.941 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 1.261e-05/0.1094, allocations: 5.469 kB / 498 MB, free: 5.938 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.949e-06/0.1094, allocations: 0 / 498 MB, free: 5.938 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: 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): 1 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * 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 5.323e-05/0.1095, allocations: 190.4 kB / 498.2 MB, free: 5.742 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.071e-05/0.1095, allocations: 106.4 kB / 498.3 MB, free: 5.633 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 2.569e-05/0.1096, allocations: 105.5 kB / 498.4 MB, free: 5.52 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.582e-05/0.1096, allocations: 180.2 kB / 498.6 MB, free: 5.336 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.701e-05/0.1096, allocations: 181.6 kB / 498.8 MB, free: 5.152 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.795e-05/0.1096, allocations: 185.6 kB / 499 MB, free: 4.965 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001332/0.1098, allocations: 402.5 kB / 499.4 MB, free: 4.516 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.759e-05/0.1098, allocations: 106.3 kB / 499.5 MB, free: 4.406 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 1.41e-05/0.1098, allocations: 105 kB / 499.6 MB, free: 4.297 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.925e-05/0.1098, allocations: 185.7 kB / 499.7 MB, free: 4.109 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.95e-05/0.1099, allocations: 181.5 kB / 499.9 MB, free: 3.926 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.585e-05/0.1099, allocations: 177.2 kB / 0.4884 GB, free: 3.746 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.657e-05/0.1099, allocations: 186 kB / 0.4886 GB, free: 3.559 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 7.029e-05/0.11, allocations: 306.6 kB / 0.4888 GB, free: 3.238 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 3.212e-05/0.11, allocations: 183.2 kB / 0.489 GB, free: 3.035 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.275e-05/0.11, allocations: 181.7 kB / 0.4892 GB, free: 2.852 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 5.74e-05/0.1101, allocations: 104.9 kB / 0.4893 GB, free: 2.742 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.311e-05/0.1101, allocations: 181.5 kB / 0.4895 GB, free: 2.559 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.696e-05/0.1101, allocations: 102.5 kB / 0.4896 GB, free: 2.453 MB / 350.1 MB Notification: Performance of sorting global known variables: time 2.057e-05/0.1102, allocations: 80.66 kB / 0.4896 GB, free: 2.375 MB / 350.1 MB Notification: Performance of sort global known variables: time 6e-08/0.1102, allocations: 0 / 0.4896 GB, free: 2.375 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.0002335/0.1104, allocations: 1.688 kB / 0.4896 GB, free: 2.375 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: 0 () * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (0): * Single equations (assignments): 0 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * 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.0002326/0.1106, allocations: 0.8014 MB / 0.4904 GB, free: 1.559 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 6.988e-05/0.1107, allocations: 10.66 kB / 0.4904 GB, free: 1.551 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 2.425e-06/0.1107, allocations: 0 / 0.4904 GB, free: 1.551 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 3.256e-06/0.1107, allocations: 5.156 kB / 0.4904 GB, free: 1.547 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002548/0.111, allocations: 457.2 kB / 0.4909 GB, free: 1.098 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0003446/0.1113, allocations: 191.9 kB / 0.4911 GB, free: 0.8789 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001022/0.1114, allocations: 0.6746 MB / 0.4917 GB, free: 184 kB / 350.1 MB Notification: Performance of simCode: alias equations: time 1.733e-05/0.1114, allocations: 4.062 kB / 0.4917 GB, free: 180 kB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 1.531e-05/0.1114, allocations: 7.438 kB / 0.4917 GB, free: 172 kB / 350.1 MB Notification: Performance of SimCode: time 5.41e-07/0.1114, allocations: 0 / 0.4917 GB, free: 172 kB / 350.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.01586/0.1273, allocations: 0.9275 MB / 0.4926 GB, free: 15.6 MB / 366.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 8.262/8.39, allocations: 1.594 kB / 0.4926 GB, free: 15.6 MB / 366.1 MB " [Timeout remaining time 651] (rm -f ExternalMedia_ExternalMedia.Test.TestMedium.TestConstants.pipe ; mkfifo ExternalMedia_ExternalMedia.Test.TestMedium.TestConstants.pipe ; head -c 1048576 < ExternalMedia_ExternalMedia.Test.TestMedium.TestConstants.pipe >> ../files/ExternalMedia_ExternalMedia.Test.TestMedium.TestConstants.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator --tempDir=temp_ExternalMedia_ExternalMedia_Test_TestMedium_TestConstants_fmu --startTime=0 --stopTime=1 --stepSize=0.001 --timeout=50 --tolerance=1e-06 ExternalMedia_ExternalMedia_Test_TestMedium_TestConstants.fmu > ExternalMedia_ExternalMedia.Test.TestMedium.TestConstants.pipe 2>&1) [Timeout 52.5] [Calling sys.exit(0), Time elapsed: 11.052075751998927] Failed to read output from testmodel.py, exit status != 0: 8.515269043971784 8.541483939999999 8.428708632 Calling exit ...