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.0007725/0.0007725, allocations: 80.44 kB / 19.17 MB, free: 0.7422 MB / 13.93 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.0007877/0.0007877, allocations: 170.3 kB / 22.46 MB, free: 2.105 MB / 18.57 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 0.8934/0.8934, allocations: 177.1 MB / 202.8 MB, free: 5.742 MB / 186.7 MB " [Timeout remaining time 179] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ExternalMedia 4.1.1/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ExternalMedia 4.1.1/package.mo): time 0.007701/0.007701, allocations: 1.976 MB / 261.2 MB, free: 11.27 MB / 250.7 MB " [Timeout remaining time 180] Using package ExternalMedia with version 4.1.1 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ExternalMedia 4.1.1/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="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(ExternalMedia.Test.TestMedium.TestConstants,fileNamePrefix="ExternalMedia_ExternalMedia_Test_TestMedium_TestConstants",fmuType="me",version="2.0",platforms={"static"}) [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 1.483e-06/1.483e-06, allocations: 3.938 kB / 384.6 MB, free: 11.93 MB / 314.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 1.968e-05/2.116e-05, allocations: 6.219 kB / 384.6 MB, free: 11.92 MB / 314.7 MB Notification: Performance of NFInst.instantiate(ExternalMedia.Test.TestMedium.TestConstants): time 0.00629/0.006311, allocations: 6.809 MB / 391.4 MB, free: 5.082 MB / 314.7 MB Notification: Performance of NFInst.instExpressions: time 7.354e-06/0.006318, allocations: 11.91 kB / 391.4 MB, free: 5.07 MB / 314.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 1.874e-05/0.006337, allocations: 0 / 391.4 MB, free: 5.07 MB / 314.7 MB Notification: Performance of NFTyping.typeComponents: time 2.24e-05/0.006359, allocations: 0 / 391.4 MB, free: 5.07 MB / 314.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0003074/0.006667, allocations: 96.38 kB / 391.5 MB, free: 4.977 MB / 314.7 MB Notification: Performance of NFTyping.typeClassSections: time 5.039e-06/0.006672, allocations: 0 / 391.5 MB, free: 4.977 MB / 314.7 MB Notification: Performance of NFFlatten.flatten: time 4.733e-05/0.006719, allocations: 7.938 kB / 391.6 MB, free: 4.969 MB / 314.7 MB Notification: Performance of NFFlatten.resolveConnections: time 3.879e-05/0.006758, allocations: 0 / 391.6 MB, free: 4.969 MB / 314.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.003218/0.009976, allocations: 32.06 kB / 391.6 MB, free: 4.938 MB / 314.7 MB Notification: Performance of NFSimplifyModel.simplify: time 1.217e-05/0.009988, allocations: 3.938 kB / 391.6 MB, free: 4.934 MB / 314.7 MB Notification: Performance of NFPackage.collectConstants: time 9.919e-06/0.009998, allocations: 0 / 391.6 MB, free: 4.934 MB / 314.7 MB Notification: Performance of NFFlatten.collectFunctions: time 2.926e-06/0.01, allocations: 0 / 391.6 MB, free: 4.934 MB / 314.7 MB Notification: Performance of NFScalarize.scalarize: time 5.981e-06/0.01001, allocations: 0 / 391.6 MB, free: 4.934 MB / 314.7 MB Notification: Performance of NFVerifyModel.verify: time 1.053e-05/0.01002, allocations: 4 kB / 391.6 MB, free: 4.93 MB / 314.7 MB Notification: Performance of NFConvertDAE.convert: time 4.443e-05/0.01006, allocations: 4 kB / 391.6 MB, free: 4.926 MB / 314.7 MB Notification: Performance of FrontEnd - DAE generated: time 2.535e-06/0.01006, allocations: 0 / 391.6 MB, free: 4.926 MB / 314.7 MB Notification: Performance of FrontEnd: time 1.062e-06/0.01007, allocations: 0 / 391.6 MB, free: 4.926 MB / 314.7 MB Notification: Performance of Transformations before backend: time 4.328e-06/0.01007, allocations: 0 / 391.6 MB, free: 4.926 MB / 314.7 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.0001926/0.01026, allocations: 237.4 kB / 391.8 MB, free: 4.668 MB / 314.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.321e-05/0.01031, allocations: 12.03 kB / 391.8 MB, free: 4.656 MB / 314.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 2.594e-05/0.01033, allocations: 30.75 kB / 391.9 MB, free: 4.617 MB / 314.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 1.843e-05/0.01035, allocations: 0.9375 kB / 391.9 MB, free: 4.617 MB / 314.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 4.856e-05/0.0104, allocations: 101.8 kB / 392 MB, free: 4.492 MB / 314.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.06e-05/0.01041, allocations: 4.375 kB / 392 MB, free: 4.488 MB / 314.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 5.63e-06/0.01041, allocations: 4.375 kB / 392 MB, free: 4.484 MB / 314.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 7.483e-05/0.01049, allocations: 34.2 kB / 392 MB, free: 4.445 MB / 314.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 6.612e-06/0.0105, allocations: 192 / 392 MB, free: 4.445 MB / 314.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 8.285e-06/0.0105, allocations: 3.938 kB / 392 MB, free: 4.441 MB / 314.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.348e-06/0.01051, allocations: 0 / 392 MB, free: 4.441 MB / 314.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 1.716e-05/0.01053, allocations: 4 kB / 392 MB, free: 4.438 MB / 314.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.000239/0.01076, allocations: 354.6 kB / 392.4 MB, free: 4.047 MB / 314.7 MB Notification: Performance of preOpt comSubExp (simulation): time 6.144e-05/0.01083, allocations: 169.1 kB / 392.5 MB, free: 3.871 MB / 314.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 2.495e-05/0.01085, allocations: 84.08 kB / 392.6 MB, free: 3.785 MB / 314.7 MB Notification: Performance of preOpt evalFunc (simulation): time 2.013e-05/0.01087, allocations: 75.28 kB / 392.7 MB, free: 3.711 MB / 314.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.248e-05/0.0109, allocations: 109.8 kB / 392.8 MB, free: 3.594 MB / 314.7 MB Notification: Performance of pre-optimization done (n=0): time 1.132e-06/0.0109, allocations: 4 kB / 392.8 MB, free: 3.59 MB / 314.7 MB Notification: Performance of matching and sorting (n=0): time 5.212e-05/0.01096, allocations: 29.64 kB / 392.8 MB, free: 3.555 MB / 314.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.524e-05/0.011, allocations: 126.7 kB / 392.9 MB, free: 3.418 MB / 314.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 6.519e-05/0.01107, allocations: 105.8 kB / 393.1 MB, free: 3.305 MB / 314.7 MB Notification: Performance of collectPreVariables (initialization): time 8.015e-06/0.01108, allocations: 25.7 kB / 393.1 MB, free: 3.273 MB / 314.7 MB Notification: Performance of collectInitialEqns (initialization): time 3.398e-05/0.01111, allocations: 84.09 kB / 393.2 MB, free: 3.188 MB / 314.7 MB Notification: Performance of collectInitialBindings (initialization): time 2.504e-06/0.01111, allocations: 3.938 kB / 393.2 MB, free: 3.184 MB / 314.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.226e-05/0.01113, allocations: 13.72 kB / 393.2 MB, free: 3.164 MB / 314.7 MB Notification: Performance of setup shared object (initialization): time 7.251e-05/0.01121, allocations: 310.8 kB / 393.5 MB, free: 2.852 MB / 314.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 7.193e-06/0.01121, allocations: 3.938 kB / 393.5 MB, free: 2.848 MB / 314.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 3.566e-06/0.01122, allocations: 4.125 kB / 393.5 MB, free: 2.844 MB / 314.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 2.35e-05/0.01124, allocations: 12.86 kB / 393.5 MB, free: 2.828 MB / 314.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.723e-06/0.01124, allocations: 0 / 393.5 MB, free: 2.828 MB / 314.7 MB Notification: Performance of matching and sorting (n=1) (initialization): time 7.585e-05/0.01132, allocations: 37.62 kB / 393.5 MB, free: 2.785 MB / 314.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.232e-05/0.01133, allocations: 8 kB / 393.5 MB, free: 2.777 MB / 314.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.578e-06/0.01134, allocations: 0 / 393.5 MB, free: 2.777 MB / 314.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.105e-05/0.01135, allocations: 0 / 393.5 MB, free: 2.777 MB / 314.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 4.423e-05/0.01139, allocations: 0 / 393.5 MB, free: 2.777 MB / 314.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 4.578e-06/0.0114, allocations: 0 / 393.5 MB, free: 2.777 MB / 314.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 9.067e-06/0.0114, allocations: 4.094 kB / 393.5 MB, free: 2.773 MB / 314.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.399e-06/0.01141, allocations: 7.938 kB / 393.6 MB, free: 2.766 MB / 314.7 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 6.336e-05/0.01147, allocations: 181.1 kB / 393.7 MB, free: 2.578 MB / 314.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.427e-05/0.01151, allocations: 104.9 kB / 393.8 MB, free: 2.469 MB / 314.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.607e-05/0.01154, allocations: 119.8 kB / 394 MB, free: 2.344 MB / 314.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.335e-05/0.01159, allocations: 180.2 kB / 394.1 MB, free: 2.16 MB / 314.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.297e-05/0.01163, allocations: 176.3 kB / 394.3 MB, free: 1.98 MB / 314.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.104e-05/0.01167, allocations: 184.2 kB / 394.5 MB, free: 1.793 MB / 314.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.000133/0.0118, allocations: 376.3 kB / 394.8 MB, free: 1.375 MB / 314.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.597e-05/0.01183, allocations: 109 kB / 395 MB, free: 1.262 MB / 314.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 2.704e-05/0.01186, allocations: 104.9 kB / 395.1 MB, free: 1.152 MB / 314.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 3.986e-05/0.0119, allocations: 180.3 kB / 395.2 MB, free: 0.9688 MB / 314.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.658e-05/0.01194, allocations: 184.2 kB / 395.4 MB, free: 0.7812 MB / 314.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.913e-05/0.01198, allocations: 176.3 kB / 395.6 MB, free: 0.6016 MB / 314.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.537e-05/0.01203, allocations: 184.2 kB / 395.8 MB, free: 424 kB / 314.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 9.045e-05/0.01212, allocations: 311.7 kB / 396.1 MB, free: 88 kB / 314.7 MB Notification: Performance of postOpt removeConstants (simulation): time 4.448e-05/0.01216, allocations: 104.9 kB / 396.2 MB, free: 15.98 MB / 330.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.517e-05/0.01221, allocations: 180.2 kB / 396.3 MB, free: 15.79 MB / 330.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 4.299e-05/0.01225, allocations: 105 kB / 396.5 MB, free: 15.68 MB / 330.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.089e-05/0.01229, allocations: 180.2 kB / 396.6 MB, free: 15.5 MB / 330.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.404e-05/0.01231, allocations: 109 kB / 396.7 MB, free: 15.39 MB / 330.7 MB Notification: Performance of sorting global known variables: time 2.482e-05/0.01234, allocations: 83.28 kB / 396.8 MB, free: 15.3 MB / 330.7 MB Notification: Performance of sort global known variables: time 5e-08/0.01234, allocations: 0 / 396.8 MB, free: 15.3 MB / 330.7 MB Notification: Performance of remove unused functions: time 0.0001328/0.01247, allocations: 3.938 kB / 396.8 MB, free: 15.3 MB / 330.7 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.0002291/0.0127, allocations: 0.8089 MB / 397.6 MB, free: 14.46 MB / 330.7 MB Notification: Performance of simCode: created initialization part: time 4.868e-05/0.01275, allocations: 8 kB / 397.6 MB, free: 14.45 MB / 330.7 MB Notification: Performance of simCode: created event and clocks part: time 2.315e-06/0.01275, allocations: 4 kB / 397.6 MB, free: 14.45 MB / 330.7 MB Notification: Performance of simCode: created simulation system equations: time 9.71e-07/0.01275, allocations: 0 / 397.6 MB, free: 14.45 MB / 330.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002279/0.01298, allocations: 455.6 kB / 398.1 MB, free: 14 MB / 330.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0002615/0.01324, allocations: 193.9 kB / 398.3 MB, free: 13.77 MB / 330.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 3.3e-05/0.01328, allocations: 59.36 kB / 398.3 MB, free: 13.69 MB / 330.7 MB Notification: Performance of simCode: alias equations: time 1.551e-05/0.01329, allocations: 0 / 398.3 MB, free: 13.69 MB / 330.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 1.738e-05/0.01331, allocations: 8.5 kB / 398.3 MB, free: 13.68 MB / 330.7 MB Notification: Performance of SimCode: time 6.71e-07/0.01331, allocations: 0 / 398.3 MB, free: 13.68 MB / 330.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.0123/0.02561, allocations: 1.512 MB / 399.9 MB, free: 12.29 MB / 330.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 6.507/6.532, allocations: 10.09 kB / 399.9 MB, free: 12.28 MB / 330.7 MB " [Timeout remaining time 653] (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: 8.330775586888194] Failed to read output from testmodel.py, exit status != 0: 6.60898744687438 6.747026179 6.607201944 Calling exit ...