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.005789/0.005789, allocations: 101.8 kB / 15.73 MB, free: 6.062 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.001345/0.001345, allocations: 192 kB / 16.67 MB, free: 5.973 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.435/1.435, allocations: 222.9 MB / 240.4 MB, free: 15.15 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ExternalMedia 4.0.0/package.mo): time 0.02129/0.02129, allocations: 2.781 MB / 293.3 MB, free: 11.95 MB / 238.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001856/0.001857, allocations: 71.83 kB / 405.4 MB, free: 29.56 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.08591/0.08779, allocations: 50.23 MB / 455.6 MB, free: 11.29 MB / 334.1 MB Notification: Performance of NFInst.instantiate(ExternalMedia.Test.TestMedium.TestConstants): time 0.008704/0.09652, allocations: 7.3 MB / 462.9 MB, free: 3.949 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 8.767e-06/0.09656, allocations: 4 kB / 462.9 MB, free: 3.945 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 1.749e-05/0.09662, allocations: 4 kB / 462.9 MB, free: 3.941 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 1.559e-05/0.09664, allocations: 0 / 462.9 MB, free: 3.941 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0003348/0.09699, allocations: 116.3 kB / 463 MB, free: 3.828 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 3.437e-06/0.097, allocations: 0 / 463 MB, free: 3.828 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 3.928e-05/0.09704, allocations: 4 kB / 463.1 MB, free: 3.824 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 3.683e-05/0.09708, allocations: 3.938 kB / 463.1 MB, free: 3.82 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.02091/0.118, allocations: 43.66 kB / 463.1 MB, free: 3.781 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 1.669e-05/0.118, allocations: 0 / 463.1 MB, free: 3.781 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 7.895e-06/0.1181, allocations: 0 / 463.1 MB, free: 3.781 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 4.038e-06/0.1181, allocations: 0 / 463.1 MB, free: 3.781 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 1.012e-05/0.1181, allocations: 11.92 kB / 463.1 MB, free: 3.77 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 1.798e-05/0.1181, allocations: 4 kB / 463.1 MB, free: 3.766 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 5.737e-05/0.1182, allocations: 0 / 463.1 MB, free: 3.766 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.308e-06/0.1182, allocations: 0 / 463.1 MB, free: 3.766 MB / 334.1 MB Notification: Performance of FrontEnd: time 1.393e-06/0.1182, allocations: 0 / 463.1 MB, free: 3.766 MB / 334.1 MB Notification: Performance of Transformations before backend: time 5.45e-06/0.1182, allocations: 0 / 463.1 MB, free: 3.766 MB / 334.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.000327/0.1185, allocations: 307.6 kB / 463.4 MB, free: 3.418 MB / 334.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.239e-05/0.1186, allocations: 8.031 kB / 463.4 MB, free: 3.41 MB / 334.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 4.424e-05/0.1186, allocations: 34.75 kB / 463.5 MB, free: 3.367 MB / 334.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 1.966e-05/0.1187, allocations: 8.875 kB / 463.5 MB, free: 3.359 MB / 334.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001177/0.1188, allocations: 168.4 kB / 463.6 MB, free: 3.156 MB / 334.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.193e-05/0.1188, allocations: 384 / 463.6 MB, free: 3.156 MB / 334.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 6.892e-06/0.1188, allocations: 384 / 463.6 MB, free: 3.156 MB / 334.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001054/0.1189, allocations: 37.62 kB / 463.7 MB, free: 3.113 MB / 334.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 8.115e-06/0.1189, allocations: 0 / 463.7 MB, free: 3.113 MB / 334.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 6.392e-06/0.1189, allocations: 0 / 463.7 MB, free: 3.113 MB / 334.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.25e-06/0.1189, allocations: 0 / 463.7 MB, free: 3.113 MB / 334.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 1.735e-05/0.119, allocations: 0 / 463.7 MB, free: 3.113 MB / 334.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0003469/0.1193, allocations: 387.5 kB / 464 MB, free: 2.684 MB / 334.1 MB Notification: Performance of preOpt comSubExp (simulation): time 9.309e-05/0.1194, allocations: 169.1 kB / 464.2 MB, free: 2.508 MB / 334.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 4.859e-05/0.1195, allocations: 84.14 kB / 464.3 MB, free: 2.422 MB / 334.1 MB Notification: Performance of preOpt evalFunc (simulation): time 3.493e-05/0.1195, allocations: 79.22 kB / 464.4 MB, free: 2.344 MB / 334.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 6.015e-05/0.1196, allocations: 109.8 kB / 464.5 MB, free: 2.227 MB / 334.1 MB Notification: Performance of pre-optimization done (n=0): time 1.423e-06/0.1196, allocations: 32 / 464.5 MB, free: 2.227 MB / 334.1 MB Notification: Performance of matching and sorting (n=0): time 7.26e-05/0.1197, allocations: 33.64 kB / 464.5 MB, free: 2.188 MB / 334.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.982e-05/0.1197, allocations: 130.7 kB / 464.6 MB, free: 2.047 MB / 334.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 9.027e-05/0.1198, allocations: 89.86 kB / 464.7 MB, free: 1.949 MB / 334.1 MB Notification: Performance of collectPreVariables (initialization): time 1.352e-05/0.1199, allocations: 25.7 kB / 464.8 MB, free: 1.918 MB / 334.1 MB Notification: Performance of collectInitialEqns (initialization): time 5.3e-05/0.1199, allocations: 88.12 kB / 464.8 MB, free: 1.828 MB / 334.1 MB Notification: Performance of collectInitialBindings (initialization): time 4.098e-06/0.1199, allocations: 0 / 464.8 MB, free: 1.828 MB / 334.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.858e-05/0.12, allocations: 13.84 kB / 464.9 MB, free: 1.809 MB / 334.1 MB Notification: Performance of setup shared object (initialization): time 0.0001397/0.1201, allocations: 314.8 kB / 465.2 MB, free: 1.492 MB / 334.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 1.09e-05/0.1201, allocations: 0 / 465.2 MB, free: 1.492 MB / 334.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 6.522e-06/0.1201, allocations: 4 kB / 465.2 MB, free: 1.488 MB / 334.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 2.934e-05/0.1202, allocations: 8.859 kB / 465.2 MB, free: 1.477 MB / 334.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.372e-06/0.1202, allocations: 0 / 465.2 MB, free: 1.477 MB / 334.1 MB Notification: Performance of matching and sorting (n=1) (initialization): time 9.244e-05/0.1203, allocations: 37.64 kB / 465.2 MB, free: 1.434 MB / 334.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.449e-05/0.1203, allocations: 8.094 kB / 465.2 MB, free: 1.426 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.459e-06/0.1203, allocations: 0 / 465.2 MB, free: 1.426 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.531e-05/0.1203, allocations: 0 / 465.2 MB, free: 1.426 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 5.261e-05/0.1204, allocations: 3.984 kB / 465.2 MB, free: 1.422 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.931e-06/0.1204, allocations: 4 kB / 465.2 MB, free: 1.418 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 1.175e-05/0.1204, allocations: 3.938 kB / 465.2 MB, free: 1.414 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.809e-06/0.1204, allocations: 0 / 465.2 MB, free: 1.414 MB / 334.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.0001066/0.1205, allocations: 189.7 kB / 465.4 MB, free: 1.219 MB / 334.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 6.542e-05/0.1206, allocations: 108.9 kB / 465.5 MB, free: 1.105 MB / 334.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 5.826e-05/0.1207, allocations: 116 kB / 465.6 MB, free: 0.9844 MB / 334.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.511e-05/0.1207, allocations: 180.2 kB / 465.8 MB, free: 0.8008 MB / 334.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.031e-05/0.1208, allocations: 184.2 kB / 466 MB, free: 0.6133 MB / 334.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.547e-05/0.1209, allocations: 180.3 kB / 466.2 MB, free: 440 kB / 334.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002783/0.1212, allocations: 401.2 kB / 466.6 MB, free: 15.98 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.701e-05/0.1213, allocations: 112.9 kB / 466.7 MB, free: 15.86 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 4.795e-05/0.1213, allocations: 101 kB / 466.8 MB, free: 15.76 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 7.793e-05/0.1214, allocations: 184.2 kB / 466.9 MB, free: 15.57 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.575e-05/0.1215, allocations: 176.3 kB / 467.1 MB, free: 15.39 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 7.651e-05/0.1215, allocations: 180.3 kB / 467.3 MB, free: 15.21 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.201e-05/0.1216, allocations: 184.2 kB / 467.5 MB, free: 15.02 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001616/0.1218, allocations: 315.6 kB / 467.8 MB, free: 14.69 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 8.95e-05/0.1219, allocations: 178.1 kB / 468 MB, free: 14.49 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 8.924e-05/0.122, allocations: 184.2 kB / 468.1 MB, free: 14.3 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 8.192e-05/0.1221, allocations: 108.9 kB / 468.2 MB, free: 14.19 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 8.072e-05/0.1222, allocations: 180.3 kB / 468.4 MB, free: 14 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.054e-05/0.1222, allocations: 108.9 kB / 468.5 MB, free: 13.89 MB / 350.1 MB Notification: Performance of sorting global known variables: time 4.196e-05/0.1223, allocations: 75.28 kB / 468.6 MB, free: 13.82 MB / 350.1 MB Notification: Performance of sort global known variables: time 1.2e-07/0.1223, allocations: 0 / 468.6 MB, free: 13.82 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.0002009/0.1225, allocations: 0 / 468.6 MB, free: 13.82 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.0004575/0.1229, allocations: 0.8049 MB / 469.4 MB, free: 12.98 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 6.977e-05/0.123, allocations: 3.938 kB / 469.4 MB, free: 12.98 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 2.325e-06/0.123, allocations: 0 / 469.4 MB, free: 12.98 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 1.694e-06/0.123, allocations: 0 / 469.4 MB, free: 12.98 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000389/0.1234, allocations: 462.1 kB / 469.9 MB, free: 12.53 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0003848/0.1238, allocations: 186.5 kB / 470 MB, free: 12.3 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003064/0.1241, allocations: 0.669 MB / 470.7 MB, free: 11.61 MB / 350.1 MB Notification: Performance of simCode: alias equations: time 2.03e-05/0.1242, allocations: 0 / 470.7 MB, free: 11.61 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 2.221e-05/0.1242, allocations: 7.438 kB / 470.7 MB, free: 11.6 MB / 350.1 MB Notification: Performance of SimCode: time 2.41e-07/0.1242, allocations: 0 / 470.7 MB, free: 11.6 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.0214/0.1456, allocations: 0.883 MB / 471.6 MB, free: 10.79 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 7.473/7.619, allocations: 14.28 kB / 471.6 MB, free: 10.77 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/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)