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) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ExternalMedia 4.0.0/package.mo", uses=false) 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"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.0009218/0.000922, allocations: 91.92 kB / 15.06 MB, free: 1.098 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001301/0.001301, allocations: 172.7 kB / 15.95 MB, free: 208 kB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.426/1.426, allocations: 223.3 MB / 240 MB, free: 5.426 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ExternalMedia 4.0.0/package.mo): time 0.1422/0.1422, allocations: 2.782 MB / 293.9 MB, free: 4.301 MB / 238.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0004088/0.000409, allocations: 8 kB / 355.7 MB, free: 4.242 MB / 286.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1109/0.1113, allocations: 51.25 MB / 407 MB, free: 0.9414 MB / 334.1 MB Notification: Performance of NFInst.instantiate(ExternalMedia.Test.TestMedium.TestConstants): time 0.007857/0.1192, allocations: 6.631 MB / 413.6 MB, free: 10.28 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 2.871e-05/0.1193, allocations: 0 / 413.6 MB, free: 10.28 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 3.649e-05/0.1193, allocations: 0 / 413.6 MB, free: 10.28 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 4.398e-05/0.1194, allocations: 3.984 kB / 413.6 MB, free: 10.28 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0003225/0.1197, allocations: 95.44 kB / 413.7 MB, free: 10.18 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 2.625e-06/0.1198, allocations: 4 kB / 413.7 MB, free: 10.18 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 3.974e-05/0.1198, allocations: 7.938 kB / 413.7 MB, free: 10.17 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 4.212e-05/0.1199, allocations: 0 / 413.7 MB, free: 10.17 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.01814/0.138, allocations: 27.89 kB / 413.7 MB, free: 10.14 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 1.278e-05/0.138, allocations: 0 / 413.7 MB, free: 10.14 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 7.273e-06/0.138, allocations: 0 / 413.7 MB, free: 10.14 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 5.28e-06/0.1381, allocations: 0 / 413.7 MB, free: 10.14 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 5.931e-06/0.1381, allocations: 0 / 413.7 MB, free: 10.14 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 1.984e-05/0.1381, allocations: 25.7 kB / 413.7 MB, free: 10.11 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 3.035e-05/0.1381, allocations: 7.938 kB / 413.8 MB, free: 10.11 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.701e-06/0.1381, allocations: 0 / 413.8 MB, free: 10.11 MB / 350.1 MB Notification: Performance of FrontEnd: time 1.422e-06/0.1381, allocations: 4 kB / 413.8 MB, free: 10.1 MB / 350.1 MB Notification: Performance of Transformations before backend: time 4.067e-06/0.1382, allocations: 0 / 413.8 MB, free: 10.1 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.000344/0.1385, allocations: 303.4 kB / 414.1 MB, free: 9.758 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 8.372e-05/0.1386, allocations: 12.09 kB / 414.1 MB, free: 9.746 MB / 350.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 4.427e-05/0.1387, allocations: 34.56 kB / 414.1 MB, free: 9.703 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 2.441e-05/0.1387, allocations: 3.906 kB / 414.1 MB, free: 9.699 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001001/0.1388, allocations: 163.1 kB / 414.3 MB, free: 9.5 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 7.915e-06/0.1388, allocations: 0 / 414.3 MB, free: 9.5 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 8.406e-06/0.1388, allocations: 0 / 414.3 MB, free: 9.5 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 9.831e-05/0.1389, allocations: 33.7 kB / 414.3 MB, free: 9.461 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 7.674e-06/0.1389, allocations: 3.938 kB / 414.3 MB, free: 9.457 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.019e-05/0.139, allocations: 3.953 kB / 414.3 MB, free: 9.453 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.619e-06/0.139, allocations: 0 / 414.3 MB, free: 9.453 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 2.158e-05/0.139, allocations: 7.938 kB / 414.3 MB, free: 9.445 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0003183/0.1393, allocations: 375.5 kB / 414.7 MB, free: 9.027 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 9.294e-05/0.1394, allocations: 173.1 kB / 414.8 MB, free: 8.848 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 4.161e-05/0.1395, allocations: 80.14 kB / 414.9 MB, free: 8.766 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.617e-05/0.1395, allocations: 79.23 kB / 415 MB, free: 8.688 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.373e-05/0.1395, allocations: 113.9 kB / 415.1 MB, free: 8.566 MB / 350.1 MB Notification: Performance of pre-optimization done (n=0): time 2.605e-06/0.1396, allocations: 0 / 415.1 MB, free: 8.566 MB / 350.1 MB Notification: Performance of matching and sorting (n=0): time 7.242e-05/0.1396, allocations: 33.58 kB / 415.1 MB, free: 8.527 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.917e-05/0.1397, allocations: 130.7 kB / 415.3 MB, free: 8.387 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 7.735e-05/0.1398, allocations: 93.86 kB / 415.4 MB, free: 8.285 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 1.217e-05/0.1398, allocations: 25.7 kB / 415.4 MB, free: 8.254 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 4.138e-05/0.1398, allocations: 84.14 kB / 415.5 MB, free: 8.168 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 2.996e-06/0.1399, allocations: 0 / 415.5 MB, free: 8.168 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.284e-06/0.1399, allocations: 0 / 415.5 MB, free: 8.168 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 0.0001092/0.14, allocations: 314.8 kB / 415.8 MB, free: 7.852 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 7.965e-06/0.14, allocations: 128 / 415.8 MB, free: 7.852 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 5.31e-06/0.14, allocations: 4 kB / 415.8 MB, free: 7.848 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 1.954e-05/0.14, allocations: 4 kB / 415.8 MB, free: 7.844 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.433e-06/0.14, allocations: 0 / 415.8 MB, free: 7.844 MB / 350.1 MB Notification: Performance of matching and sorting (n=1) (initialization): time 9.63e-05/0.1401, allocations: 33.64 kB / 415.8 MB, free: 7.805 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.696e-05/0.1402, allocations: 7.953 kB / 415.8 MB, free: 7.797 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.459e-06/0.1402, allocations: 0 / 415.8 MB, free: 7.797 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.184e-05/0.1402, allocations: 4 kB / 415.8 MB, free: 7.793 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 4.798e-05/0.1402, allocations: 0 / 415.8 MB, free: 7.793 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.45e-06/0.1402, allocations: 0 / 415.8 MB, free: 7.793 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 1.262e-05/0.1403, allocations: 4.094 kB / 415.8 MB, free: 7.789 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.204e-06/0.1403, allocations: 3.984 kB / 415.8 MB, free: 7.785 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 (linear and non-linear blocks): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 9.845e-05/0.1404, allocations: 189.1 kB / 416 MB, free: 7.59 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 7.734e-05/0.1405, allocations: 101 kB / 416.1 MB, free: 7.484 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 5.272e-05/0.1405, allocations: 112 kB / 416.2 MB, free: 7.371 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.589e-05/0.1406, allocations: 176.3 kB / 416.4 MB, free: 7.191 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.834e-05/0.1407, allocations: 188.2 kB / 416.6 MB, free: 7 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.0001822/0.1409, allocations: 184.2 kB / 416.8 MB, free: 6.812 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002602/0.1412, allocations: 401.2 kB / 417.2 MB, free: 6.363 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.422e-05/0.1412, allocations: 108.9 kB / 417.3 MB, free: 6.25 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 3.989e-05/0.1413, allocations: 105 kB / 417.4 MB, free: 6.141 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 8.235e-05/0.1413, allocations: 180.2 kB / 417.5 MB, free: 5.957 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.342e-05/0.1414, allocations: 180.3 kB / 417.7 MB, free: 5.773 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0001142/0.1416, allocations: 192.2 kB / 417.9 MB, free: 5.578 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.934e-05/0.1416, allocations: 176.3 kB / 418.1 MB, free: 5.398 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001479/0.1418, allocations: 307.8 kB / 418.4 MB, free: 5.074 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 7.409e-05/0.1419, allocations: 182.1 kB / 418.6 MB, free: 4.871 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 7.7e-05/0.1419, allocations: 180.2 kB / 418.7 MB, free: 4.688 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 9.194e-05/0.142, allocations: 109 kB / 418.8 MB, free: 4.574 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.662e-05/0.1421, allocations: 184.2 kB / 419 MB, free: 4.387 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.713e-05/0.1422, allocations: 104.9 kB / 419.1 MB, free: 4.277 MB / 350.1 MB Notification: Performance of sorting global known variables: time 3.19e-05/0.1422, allocations: 79.28 kB / 419.2 MB, free: 4.199 MB / 350.1 MB Notification: Performance of sort global known variables: time 1.3e-07/0.1422, allocations: 0 / 419.2 MB, free: 4.199 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.0002553/0.1425, allocations: 4 kB / 419.2 MB, free: 4.195 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 (linear and non-linear blocks): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.0004095/0.1429, allocations: 0.797 MB / 420 MB, free: 3.371 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 6.321e-05/0.1429, allocations: 12.03 kB / 420 MB, free: 3.359 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 1.734e-06/0.143, allocations: 4.062 kB / 420 MB, free: 3.355 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 1.583e-06/0.143, allocations: 0 / 420 MB, free: 3.355 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003871/0.1434, allocations: 0.5224 MB / 420.5 MB, free: 2.828 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0003799/0.1438, allocations: 185.6 kB / 420.7 MB, free: 2.602 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000292/0.1441, allocations: 0.6731 MB / 421.4 MB, free: 1.902 MB / 350.1 MB Notification: Performance of simCode: alias equations: time 1.707e-05/0.1441, allocations: 0 / 421.4 MB, free: 1.902 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 2.444e-05/0.1441, allocations: 11.42 kB / 421.4 MB, free: 1.891 MB / 350.1 MB Notification: Performance of SimCode: time 2.434e-06/0.1441, allocations: 4 kB / 421.4 MB, free: 1.887 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.01092/0.1551, allocations: 0.6871 MB / 422.1 MB, free: 1.309 MB / 350.1 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001629/0.1553, allocations: 178.1 kB / 422.3 MB, free: 1.066 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 1.645/1.801, allocations: 0 / 422.3 MB, free: 1.066 MB / 350.1 MB (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/linux/bin/OMSimulator --tempDir=temp_ExternalMedia_ExternalMedia_Test_TestMedium_TestConstants_fmu --startTime=0 --stopTime=1 --timeout=50 --tolerance=1e-06 ExternalMedia_ExternalMedia_Test_TestMedium_TestConstants.fmu > ExternalMedia_ExternalMedia.Test.TestMedium.TestConstants.pipe 2>&1) Environment - environmentSimulation: