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.001282/0.001282, allocations: 114.8 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.001456/0.001456, allocations: 210.2 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.474/1.474, allocations: 230.6 MB / 253.5 MB, free: 15.1 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.01168/0.01168, allocations: 2.795 MB / 312.3 MB, free: 2.352 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.TestSat,fileNamePrefix="ExternalMedia_ExternalMedia_Test_TestMedium_TestSat",fmuType="cs",version="2.0",platforms={"static"}) "" <> buildModelFMU(ExternalMedia.Test.TestMedium.TestSat,fileNamePrefix="ExternalMedia_ExternalMedia_Test_TestMedium_TestSat",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.003423/0.003423, allocations: 68.78 kB / 434.2 MB, free: 39.27 MB / 350.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.08718/0.0906, allocations: 54.13 MB / 488.3 MB, free: 14.5 MB / 350.1 MB Notification: Performance of NFInst.instantiate(ExternalMedia.Test.TestMedium.TestSat): time 0.007108/0.09771, allocations: 7.621 MB / 496 MB, free: 8.293 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.0003183/0.09803, allocations: 0.557 MB / 496.5 MB, free: 7.832 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 3.001e-05/0.09806, allocations: 0 / 496.5 MB, free: 7.832 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001864/0.09825, allocations: 66.2 kB / 496.6 MB, free: 7.781 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 2.167e-05/0.09827, allocations: 18.3 kB / 496.6 MB, free: 7.766 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0001316/0.0984, allocations: 37.02 kB / 496.6 MB, free: 7.734 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 6.532e-05/0.09847, allocations: 36.95 kB / 496.7 MB, free: 7.711 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 3.431e-05/0.0985, allocations: 6.922 kB / 496.7 MB, free: 7.707 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 1.972e-05/0.09852, allocations: 9.938 kB / 496.7 MB, free: 7.703 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 4.049e-05/0.09856, allocations: 11 kB / 496.7 MB, free: 7.699 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 9.558e-06/0.09857, allocations: 0 / 496.7 MB, free: 7.699 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001662/0.09874, allocations: 34.47 kB / 496.7 MB, free: 7.695 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 1.01e-05/0.09875, allocations: 0 / 496.7 MB, free: 7.695 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 2.871e-05/0.09877, allocations: 15.88 kB / 496.7 MB, free: 7.688 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0001355/0.09891, allocations: 50.75 kB / 496.8 MB, free: 7.66 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.397e-06/0.09891, allocations: 0 / 496.8 MB, free: 7.66 MB / 350.1 MB Notification: Performance of FrontEnd: time 1.393e-06/0.09891, allocations: 4 kB / 496.8 MB, free: 7.656 MB / 350.1 MB Notification: Performance of Transformations before backend: time 9.487e-06/0.09892, allocations: 0 / 496.8 MB, free: 7.656 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: 14 * Number of variables: 14 Notification: Performance of Generate backend data structure: time 0.000243/0.09917, allocations: 338.7 kB / 497.1 MB, free: 7.289 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.559e-05/0.0992, allocations: 13.73 kB / 497.1 MB, free: 7.285 MB / 350.1 MB Notification: Performance of preOpt introduceOutputRealDerivatives (simulation): time 1.213e-05/0.09921, allocations: 4.188 kB / 497.1 MB, free: 7.281 MB / 350.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 1.728e-05/0.09923, allocations: 40.2 kB / 497.2 MB, free: 7.234 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 2.012e-05/0.09925, allocations: 6.562 kB / 497.2 MB, free: 7.23 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 5.38e-05/0.09931, allocations: 162 kB / 497.4 MB, free: 7.035 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 9.197e-06/0.09932, allocations: 384 / 497.4 MB, free: 7.035 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.047e-05/0.09933, allocations: 9.562 kB / 497.4 MB, free: 7.027 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 9.773e-05/0.09942, allocations: 53 kB / 497.4 MB, free: 6.98 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 7.424e-06/0.09943, allocations: 0 / 497.4 MB, free: 6.98 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 6.041e-06/0.09944, allocations: 3.938 kB / 497.4 MB, free: 6.977 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.582e-06/0.09944, allocations: 1.188 kB / 497.4 MB, free: 6.977 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 3.177e-05/0.09948, allocations: 30.17 kB / 497.4 MB, free: 6.957 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001018/0.09958, allocations: 175.9 kB / 497.6 MB, free: 6.746 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 4.968e-05/0.09963, allocations: 37.66 kB / 497.7 MB, free: 6.711 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 2.44e-05/0.09965, allocations: 35.11 kB / 497.7 MB, free: 6.684 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.312e-05/0.09967, allocations: 1.375 kB / 497.7 MB, free: 6.684 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.017e-05/0.0997, allocations: 36.14 kB / 497.7 MB, free: 6.641 MB / 350.1 MB Notification: Performance of pre-optimization done (n=14): time 1.112e-06/0.09971, allocations: 0 / 497.7 MB, free: 6.641 MB / 350.1 MB Notification: Performance of matching and sorting (n=14): time 0.0001789/0.09988, allocations: 123.1 kB / 497.8 MB, free: 6.562 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 2.131e-05/0.09991, allocations: 51.41 kB / 497.9 MB, free: 6.5 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 1.314e-05/0.09992, allocations: 91.36 kB / 498 MB, free: 6.402 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 4.939e-06/0.09992, allocations: 25.7 kB / 498 MB, free: 6.371 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 8.647e-06/0.09993, allocations: 88.39 kB / 498.1 MB, free: 6.281 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 3.604e-05/0.09997, allocations: 48.28 kB / 498.1 MB, free: 6.238 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.574e-05/0.09999, allocations: 17.41 kB / 498.2 MB, free: 6.219 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 3.808e-05/0.1, allocations: 321.1 kB / 498.5 MB, free: 5.898 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 2.668e-05/0.1001, allocations: 17.75 kB / 498.5 MB, free: 5.891 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 2.143e-05/0.1001, allocations: 26.67 kB / 498.5 MB, free: 5.875 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 5.906e-05/0.1001, allocations: 65.34 kB / 498.6 MB, free: 5.84 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.175e-06/0.1001, allocations: 0 / 498.6 MB, free: 5.84 MB / 350.1 MB Notification: Performance of matching and sorting (n=14) (initialization): time 8.727e-05/0.1002, allocations: 104.4 kB / 498.7 MB, free: 5.762 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.187e-05/0.1002, allocations: 7.562 kB / 498.7 MB, free: 5.762 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.679e-06/0.1002, allocations: 1.469 kB / 498.7 MB, free: 5.762 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.249e-05/0.1003, allocations: 0 / 498.7 MB, free: 5.762 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 7.52e-07/0.1003, allocations: 0 / 498.7 MB, free: 5.762 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 4.869e-06/0.1003, allocations: 1.281 kB / 498.7 MB, free: 5.762 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 2.552e-05/0.1003, allocations: 1.406 kB / 498.7 MB, free: 5.762 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.24e-06/0.1003, allocations: 0 / 498.7 MB, free: 5.762 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): 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 4.2e-05/0.1003, allocations: 108.2 kB / 498.8 MB, free: 5.648 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 9.849e-06/0.1003, allocations: 16.86 kB / 498.8 MB, free: 5.633 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 2.752e-05/0.1004, allocations: 8.094 kB / 498.8 MB, free: 5.625 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.4e-06/0.1004, allocations: 5.203 kB / 498.8 MB, free: 5.621 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.346e-06/0.1004, allocations: 0 / 498.8 MB, free: 5.621 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.803e-06/0.1004, allocations: 1.062 kB / 498.8 MB, free: 5.621 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 6.495e-05/0.1004, allocations: 175.7 kB / 499 MB, free: 5.41 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.102e-06/0.1005, allocations: 0 / 499 MB, free: 5.41 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 5.51e-07/0.1005, allocations: 0 / 499 MB, free: 5.41 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.733e-06/0.1005, allocations: 1.406 kB / 499 MB, free: 5.41 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.779e-06/0.1005, allocations: 3.984 kB / 499 MB, free: 5.406 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 9.42e-07/0.1005, allocations: 4 kB / 499 MB, free: 5.402 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.51e-07/0.1005, allocations: 0 / 499 MB, free: 5.402 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 9.143e-05/0.1006, allocations: 126.8 kB / 499.1 MB, free: 5.293 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 1.61e-05/0.1006, allocations: 82.41 kB / 499.2 MB, free: 5.195 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 9.488e-06/0.1006, allocations: 1.281 kB / 499.2 MB, free: 5.195 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 1.842e-05/0.1006, allocations: 0 / 499.2 MB, free: 5.195 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 9.237e-06/0.1006, allocations: 1.156 kB / 499.2 MB, free: 5.195 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.034e-06/0.1006, allocations: 0 / 499.2 MB, free: 5.195 MB / 350.1 MB Notification: Performance of sorting global known variables: time 9.428e-06/0.1006, allocations: 80.38 kB / 499.3 MB, free: 5.117 MB / 350.1 MB Notification: Performance of sort global known variables: time 5e-08/0.1006, allocations: 0 / 499.3 MB, free: 5.117 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.0001946/0.1008, allocations: 9.469 kB / 499.3 MB, free: 5.117 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 (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.0003468/0.1012, allocations: 0.6795 MB / 500 MB, free: 4.414 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 9.472e-05/0.1013, allocations: 47.98 kB / 0.4883 GB, free: 4.367 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 1.673e-06/0.1013, allocations: 0 / 0.4883 GB, free: 4.367 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 2.13e-05/0.1013, allocations: 27.98 kB / 0.4883 GB, free: 4.34 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003483/0.1016, allocations: 37.48 kB / 0.4884 GB, free: 4.305 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0003767/0.102, allocations: 238.7 kB / 0.4886 GB, free: 4.031 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 7.691e-05/0.1021, allocations: 0.6846 MB / 0.4893 GB, free: 3.32 MB / 350.1 MB Notification: Performance of simCode: alias equations: time 1.847e-05/0.1021, allocations: 7.984 kB / 0.4893 GB, free: 3.312 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 2.006e-05/0.1021, allocations: 11.44 kB / 0.4893 GB, free: 3.301 MB / 350.1 MB Notification: Performance of SimCode: time 4.11e-07/0.1021, allocations: 0 / 0.4893 GB, free: 3.301 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.01638/0.1185, allocations: 2.522 MB / 0.4918 GB, free: 0.8789 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 8.357/8.475, allocations: 19.28 kB / 0.4918 GB, free: 0.8711 MB / 350.1 MB " [Timeout remaining time 651] (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: 11.384589999972377] Failed to read output from testmodel.py, exit status != 0: 8.81647856294876 8.838328886 8.735229351 Calling exit ...