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.001009/0.00101, allocations: 103.4 kB / 15.33 MB, free: 0.5078 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.001042/0.001042, allocations: 193 kB / 16.25 MB, free: 6.617 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.247/1.247, allocations: 222.9 MB / 239.9 MB, free: 4.414 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ExternalMedia 4.0.0/package.mo): time 0.1213/0.1213, allocations: 2.761 MB / 292.8 MB, free: 3.691 MB / 238.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001074/0.001074, allocations: 63.89 kB / 354 MB, free: 4.617 MB / 286.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.07613/0.07722, allocations: 50.24 MB / 404.2 MB, free: 2.332 MB / 334.1 MB Notification: Performance of NFInst.instantiate(ExternalMedia.Test.TestMedium.TestConstants): time 0.006992/0.08424, allocations: 7.328 MB / 411.6 MB, free: 10.96 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 7.213e-06/0.08427, allocations: 3.984 kB / 411.6 MB, free: 10.96 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 1.129e-05/0.08429, allocations: 0 / 411.6 MB, free: 10.96 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 1.187e-05/0.0843, allocations: 0 / 411.6 MB, free: 10.96 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0002862/0.0846, allocations: 108.3 kB / 411.7 MB, free: 10.86 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 4.418e-06/0.08461, allocations: 4 kB / 411.7 MB, free: 10.85 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 3.087e-05/0.08465, allocations: 4 kB / 411.7 MB, free: 10.85 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 2.848e-05/0.08468, allocations: 4 kB / 411.7 MB, free: 10.84 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.02862/0.1133, allocations: 26.75 kB / 411.7 MB, free: 10.82 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 1.287e-05/0.1133, allocations: 0 / 411.7 MB, free: 10.82 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 6.081e-06/0.1134, allocations: 0 / 411.7 MB, free: 10.82 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 4.619e-06/0.1134, allocations: 4 kB / 411.7 MB, free: 10.82 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 9.548e-06/0.1134, allocations: 3.984 kB / 411.7 MB, free: 10.81 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 1.672e-05/0.1134, allocations: 0 / 411.7 MB, free: 10.81 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 3.349e-05/0.1134, allocations: 0 / 411.7 MB, free: 10.81 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.448e-06/0.1135, allocations: 0 / 411.7 MB, free: 10.81 MB / 350.1 MB Notification: Performance of FrontEnd: time 1.583e-06/0.1135, allocations: 0 / 411.7 MB, free: 10.81 MB / 350.1 MB Notification: Performance of Transformations before backend: time 5.801e-06/0.1135, allocations: 4 kB / 411.7 MB, free: 10.81 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.0002242/0.1137, allocations: 321.2 kB / 412 MB, free: 10.45 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.751e-05/0.1137, allocations: 12.06 kB / 412 MB, free: 10.44 MB / 350.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 2.914e-05/0.1138, allocations: 30.75 kB / 412.1 MB, free: 10.4 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 1.816e-05/0.1138, allocations: 4.844 kB / 412.1 MB, free: 10.39 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 7.226e-05/0.1139, allocations: 164.3 kB / 412.2 MB, free: 10.2 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 6.442e-06/0.1139, allocations: 384 / 412.2 MB, free: 10.2 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 7.283e-06/0.1139, allocations: 384 / 412.2 MB, free: 10.2 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 7.027e-05/0.114, allocations: 37.62 kB / 412.3 MB, free: 10.15 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 5.54e-06/0.114, allocations: 4 kB / 412.3 MB, free: 10.15 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 6.161e-06/0.114, allocations: 0 / 412.3 MB, free: 10.15 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.807e-06/0.114, allocations: 0 / 412.3 MB, free: 10.15 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 1.487e-05/0.114, allocations: 0 / 412.3 MB, free: 10.15 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0002369/0.1143, allocations: 379.5 kB / 412.7 MB, free: 9.727 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 6.018e-05/0.1143, allocations: 169.1 kB / 412.8 MB, free: 9.551 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 2.5e-05/0.1144, allocations: 88.14 kB / 412.9 MB, free: 9.461 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.954e-05/0.1144, allocations: 79.27 kB / 413 MB, free: 9.383 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.277e-05/0.1144, allocations: 113.8 kB / 413.1 MB, free: 9.262 MB / 350.1 MB Notification: Performance of pre-optimization done (n=0): time 8.41e-07/0.1144, allocations: 0 / 413.1 MB, free: 9.262 MB / 350.1 MB Notification: Performance of matching and sorting (n=0): time 5.663e-05/0.1145, allocations: 33.62 kB / 413.1 MB, free: 9.223 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.376e-05/0.1145, allocations: 126.7 kB / 413.2 MB, free: 9.086 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 5.941e-05/0.1146, allocations: 93.86 kB / 413.3 MB, free: 8.984 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 9.468e-06/0.1146, allocations: 29.7 kB / 413.4 MB, free: 8.949 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 3.061e-05/0.1147, allocations: 80.14 kB / 413.4 MB, free: 8.867 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 2.104e-06/0.1147, allocations: 0 / 413.4 MB, free: 8.867 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.462e-05/0.1147, allocations: 13.72 kB / 413.5 MB, free: 8.848 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 8.212e-05/0.1148, allocations: 318.8 kB / 413.8 MB, free: 8.527 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 8.356e-06/0.1148, allocations: 4 kB / 413.8 MB, free: 8.523 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 4.969e-06/0.1148, allocations: 4.125 kB / 413.8 MB, free: 8.52 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 1.961e-05/0.1148, allocations: 4.859 kB / 413.8 MB, free: 8.512 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.352e-06/0.1148, allocations: 0 / 413.8 MB, free: 8.512 MB / 350.1 MB Notification: Performance of matching and sorting (n=1) (initialization): time 7.244e-05/0.1149, allocations: 37.64 kB / 413.8 MB, free: 8.469 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.094e-05/0.1149, allocations: 4 kB / 413.8 MB, free: 8.465 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.246e-06/0.1149, allocations: 0 / 413.8 MB, free: 8.465 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 8.697e-06/0.1149, allocations: 0 / 413.8 MB, free: 8.465 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 4.354e-05/0.115, allocations: 4 kB / 413.8 MB, free: 8.461 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.59e-06/0.115, allocations: 0 / 413.8 MB, free: 8.461 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 1.127e-05/0.115, allocations: 8.031 kB / 413.8 MB, free: 8.453 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.26e-06/0.115, allocations: 4 kB / 413.8 MB, free: 8.449 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 7.426e-05/0.1151, allocations: 193 kB / 414 MB, free: 8.25 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.668e-05/0.1152, allocations: 105 kB / 414.1 MB, free: 8.141 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.549e-05/0.1152, allocations: 108 kB / 414.2 MB, free: 8.031 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.598e-05/0.1153, allocations: 180.3 kB / 414.4 MB, free: 7.848 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.716e-05/0.1153, allocations: 184.2 kB / 414.6 MB, free: 7.66 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.764e-05/0.1154, allocations: 188.2 kB / 414.8 MB, free: 7.469 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001714/0.1155, allocations: 397.2 kB / 415.2 MB, free: 7.023 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.704e-05/0.1156, allocations: 104.9 kB / 415.3 MB, free: 6.914 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 2.812e-05/0.1156, allocations: 105 kB / 415.4 MB, free: 6.805 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 4.728e-05/0.1156, allocations: 184.2 kB / 415.5 MB, free: 6.617 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.702e-05/0.1157, allocations: 184.3 kB / 415.7 MB, free: 6.43 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 4.723e-05/0.1158, allocations: 176.3 kB / 415.9 MB, free: 6.25 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.603e-05/0.1158, allocations: 180.2 kB / 416.1 MB, free: 6.066 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 9.797e-05/0.1159, allocations: 311.7 kB / 416.4 MB, free: 5.738 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 5.405e-05/0.116, allocations: 186.1 kB / 416.6 MB, free: 5.531 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.343e-05/0.116, allocations: 176.3 kB / 416.7 MB, free: 5.352 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 6.325e-05/0.1161, allocations: 104.9 kB / 416.8 MB, free: 5.242 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.32e-05/0.1162, allocations: 180.2 kB / 417 MB, free: 5.059 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.085e-05/0.1162, allocations: 113.2 kB / 417.1 MB, free: 4.941 MB / 350.1 MB Notification: Performance of sorting global known variables: time 2.354e-05/0.1162, allocations: 75.28 kB / 417.2 MB, free: 4.867 MB / 350.1 MB Notification: Performance of sort global known variables: time 1.3e-07/0.1162, allocations: 8.031 kB / 417.2 MB, free: 4.859 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.0002058/0.1164, allocations: 0 / 417.2 MB, free: 4.859 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.0002764/0.1167, allocations: 0.8009 MB / 418 MB, free: 4.031 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 4.717e-05/0.1168, allocations: 3.969 kB / 418 MB, free: 4.027 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 1.593e-06/0.1168, allocations: 4.062 kB / 418 MB, free: 4.023 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 4.85e-06/0.1168, allocations: 12 kB / 418 MB, free: 4.012 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003029/0.1171, allocations: 451.7 kB / 418.5 MB, free: 3.566 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0004397/0.1175, allocations: 186.4 kB / 418.6 MB, free: 3.344 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001794/0.1177, allocations: 0.6729 MB / 419.3 MB, free: 2.645 MB / 350.1 MB Notification: Performance of simCode: alias equations: time 1.111e-05/0.1178, allocations: 4 kB / 419.3 MB, free: 2.641 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 1.609e-05/0.1178, allocations: 7.438 kB / 419.3 MB, free: 2.633 MB / 350.1 MB Notification: Performance of SimCode: time 2.2e-07/0.1178, allocations: 0 / 419.3 MB, free: 2.633 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.009287/0.1271, allocations: 0.7736 MB / 420.1 MB, free: 1.949 MB / 350.1 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001957/0.1273, allocations: 192.4 kB / 420.3 MB, free: 1.691 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 1.515/1.642, allocations: 3.938 kB / 420.3 MB, free: 1.688 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)