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.0.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001421/0.001421, allocations: 109.2 kB / 16.45 MB, free: 6.035 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001387/0.001387, allocations: 192.5 kB / 19.41 MB, free: 3.539 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.568/1.568, allocations: 225.6 MB / 247.8 MB, free: 13.92 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.01909/0.01909, allocations: 2.794 MB / 305.5 MB, free: 7.066 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.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo) Using package Complex with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo) Using package ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.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 0.001877/0.001877, allocations: 71.88 kB / 425 MB, free: 22.29 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1121/0.114, allocations: 52.95 MB / 477.9 MB, free: 1.238 MB / 334.1 MB Notification: Performance of NFInst.instantiate(ExternalMedia.Test.TestMedium.TestConstants): time 0.009989/0.124, allocations: 7.351 MB / 485.3 MB, free: 9.848 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 7.143e-06/0.124, allocations: 0 / 485.3 MB, free: 9.848 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 1.827e-05/0.124, allocations: 0 / 485.3 MB, free: 9.848 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 2.014e-05/0.124, allocations: 0 / 485.3 MB, free: 9.848 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.000386/0.1244, allocations: 112.3 kB / 485.4 MB, free: 9.738 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 3.426e-06/0.1244, allocations: 0 / 485.4 MB, free: 9.738 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 5.291e-05/0.1245, allocations: 11.88 kB / 485.4 MB, free: 9.727 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 4.98e-05/0.1245, allocations: 0 / 485.4 MB, free: 9.727 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.02065/0.1452, allocations: 50.23 kB / 485.5 MB, free: 9.684 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 2.028e-05/0.1452, allocations: 4 kB / 485.5 MB, free: 9.68 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 9.177e-06/0.1452, allocations: 0 / 485.5 MB, free: 9.68 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 4.648e-06/0.1452, allocations: 0 / 485.5 MB, free: 9.68 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 8.546e-06/0.1452, allocations: 0 / 485.5 MB, free: 9.68 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 2.051e-05/0.1452, allocations: 4 kB / 485.5 MB, free: 9.676 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 6.831e-05/0.1453, allocations: 0 / 485.5 MB, free: 9.676 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.239e-06/0.1453, allocations: 0 / 485.5 MB, free: 9.676 MB / 350.1 MB Notification: Performance of FrontEnd: time 2.866e-06/0.1453, allocations: 0 / 485.5 MB, free: 9.676 MB / 350.1 MB Notification: Performance of Transformations before backend: time 6.252e-06/0.1453, allocations: 0 / 485.5 MB, free: 9.676 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.0004114/0.1457, allocations: 311.6 kB / 485.8 MB, free: 9.324 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.225e-05/0.1458, allocations: 12.03 kB / 485.8 MB, free: 9.312 MB / 350.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 4.544e-05/0.1458, allocations: 34.75 kB / 485.8 MB, free: 9.27 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 2.303e-05/0.1458, allocations: 0.9375 kB / 485.8 MB, free: 9.27 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001629/0.146, allocations: 164.4 kB / 486 MB, free: 9.07 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.419e-05/0.146, allocations: 384 / 486 MB, free: 9.07 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.224e-05/0.146, allocations: 384 / 486 MB, free: 9.07 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001219/0.1462, allocations: 33.64 kB / 486 MB, free: 9.031 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.063e-05/0.1462, allocations: 11.88 kB / 486 MB, free: 9.02 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 8.216e-06/0.1462, allocations: 0 / 486 MB, free: 9.02 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.999e-06/0.1462, allocations: 0 / 486 MB, free: 9.02 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 2.003e-05/0.1462, allocations: 4 kB / 486 MB, free: 9.016 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0004444/0.1466, allocations: 383.5 kB / 486.4 MB, free: 8.59 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0001306/0.1468, allocations: 165.1 kB / 486.6 MB, free: 8.418 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 5.694e-05/0.1468, allocations: 84.14 kB / 486.6 MB, free: 8.332 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 5.766e-05/0.1469, allocations: 83.22 kB / 486.7 MB, free: 8.25 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 7.698e-05/0.147, allocations: 109.8 kB / 486.8 MB, free: 8.133 MB / 350.1 MB Notification: Performance of pre-optimization done (n=0): time 1.052e-06/0.147, allocations: 0 / 486.8 MB, free: 8.133 MB / 350.1 MB Notification: Performance of matching and sorting (n=0): time 9.604e-05/0.1471, allocations: 29.73 kB / 486.9 MB, free: 8.098 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001073/0.1472, allocations: 126.7 kB / 487 MB, free: 7.961 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 9.948e-05/0.1473, allocations: 89.86 kB / 487.1 MB, free: 7.863 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 1.741e-05/0.1473, allocations: 25.7 kB / 487.1 MB, free: 7.832 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 7.369e-05/0.1474, allocations: 96.19 kB / 487.2 MB, free: 7.734 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 2.835e-06/0.1474, allocations: 0 / 487.2 MB, free: 7.734 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.677e-05/0.1474, allocations: 9.719 kB / 487.2 MB, free: 7.719 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 0.0001864/0.1476, allocations: 318.8 kB / 487.5 MB, free: 7.398 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 9.267e-06/0.1476, allocations: 0 / 487.5 MB, free: 7.398 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 8.316e-06/0.1476, allocations: 7.938 kB / 487.5 MB, free: 7.391 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 3.145e-05/0.1476, allocations: 4.859 kB / 487.5 MB, free: 7.383 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.003e-06/0.1476, allocations: 4.062 kB / 487.5 MB, free: 7.379 MB / 350.1 MB Notification: Performance of matching and sorting (n=1) (initialization): time 0.0001382/0.1478, allocations: 33.7 kB / 487.6 MB, free: 7.34 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.189e-05/0.1478, allocations: 7.938 kB / 487.6 MB, free: 7.332 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.039e-06/0.1478, allocations: 0 / 487.6 MB, free: 7.332 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.834e-05/0.1478, allocations: 3.984 kB / 487.6 MB, free: 7.328 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 5.904e-05/0.1479, allocations: 0 / 487.6 MB, free: 7.328 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 9.258e-06/0.1479, allocations: 4 kB / 487.6 MB, free: 7.324 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 1.511e-05/0.1479, allocations: 0 / 487.6 MB, free: 7.324 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.881e-06/0.1479, allocations: 0 / 487.6 MB, free: 7.324 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 0.000139/0.1481, allocations: 197 kB / 487.8 MB, free: 7.121 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001096/0.1482, allocations: 104.9 kB / 487.9 MB, free: 7.012 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 7.512e-05/0.1482, allocations: 112.1 kB / 488 MB, free: 6.895 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.0001104/0.1484, allocations: 184.2 kB / 488.2 MB, free: 6.707 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 0.0001082/0.1485, allocations: 176.3 kB / 488.3 MB, free: 6.527 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.0001046/0.1486, allocations: 176.3 kB / 488.5 MB, free: 6.348 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0003728/0.1489, allocations: 425 kB / 488.9 MB, free: 5.875 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.987e-05/0.149, allocations: 105 kB / 489 MB, free: 5.766 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 5.754e-05/0.1491, allocations: 104.9 kB / 489.1 MB, free: 5.656 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0001206/0.1492, allocations: 180.3 kB / 489.3 MB, free: 5.473 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001102/0.1493, allocations: 180.2 kB / 489.5 MB, free: 5.289 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 9.74e-05/0.1494, allocations: 184.3 kB / 489.7 MB, free: 5.102 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 0.000119/0.1495, allocations: 184.2 kB / 489.8 MB, free: 4.914 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002137/0.1497, allocations: 303.7 kB / 490.1 MB, free: 4.594 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001217/0.1498, allocations: 186 kB / 490.3 MB, free: 4.387 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.000111/0.1499, allocations: 184.2 kB / 490.5 MB, free: 4.199 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001296/0.1501, allocations: 105 kB / 490.6 MB, free: 4.09 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001161/0.1502, allocations: 180.2 kB / 490.8 MB, free: 3.906 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.913e-05/0.1503, allocations: 105 kB / 490.9 MB, free: 3.797 MB / 350.1 MB Notification: Performance of sorting global known variables: time 5.529e-05/0.1503, allocations: 75.28 kB / 490.9 MB, free: 3.723 MB / 350.1 MB Notification: Performance of sort global known variables: time 1.3e-07/0.1503, allocations: 0 / 490.9 MB, free: 3.723 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.0003551/0.1507, allocations: 0 / 490.9 MB, free: 3.723 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.0006152/0.1513, allocations: 0.8087 MB / 491.8 MB, free: 2.887 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 8.476e-05/0.1514, allocations: 0 / 491.8 MB, free: 2.887 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 2.355e-06/0.1514, allocations: 0 / 491.8 MB, free: 2.887 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 2.174e-06/0.1514, allocations: 0 / 491.8 MB, free: 2.887 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005546/0.1519, allocations: 463.8 kB / 492.2 MB, free: 2.43 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0005347/0.1525, allocations: 182.4 kB / 492.4 MB, free: 2.211 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003921/0.1529, allocations: 0.669 MB / 493.1 MB, free: 1.516 MB / 350.1 MB Notification: Performance of simCode: alias equations: time 2.353e-05/0.1529, allocations: 0 / 493.1 MB, free: 1.516 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 2.481e-05/0.1529, allocations: 11.38 kB / 493.1 MB, free: 1.504 MB / 350.1 MB Notification: Performance of SimCode: time 3.91e-07/0.1529, allocations: 0 / 493.1 MB, free: 1.504 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.03021/0.1831, allocations: 0.8795 MB / 493.9 MB, free: 0.6914 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 8.762/8.945, allocations: 22.44 kB / 494 MB, free: 0.6797 MB / 350.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.689628676977009] Failed to read output from testmodel.py, exit status != 0: 9.0121906301938 9.0424177 8.891731939 Calling exit ...