Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr ExternalMedia_ExternalMedia.Test.TestMedium.TestState.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.TestState,fileNamePrefix="ExternalMedia_ExternalMedia_Test_TestMedium_TestState",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(ExternalMedia.Test.TestMedium.TestState,fileNamePrefix="ExternalMedia_ExternalMedia_Test_TestMedium_TestState",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.001243/0.001243, allocations: 111.3 kB / 15.23 MB, free: 0.6406 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.001448/0.001448, allocations: 196.4 kB / 16.14 MB, free: 6.707 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.296/1.296, allocations: 222.9 MB / 239.8 MB, free: 4.617 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ExternalMedia 4.0.0/package.mo): time 0.1276/0.1276, allocations: 2.769 MB / 292.7 MB, free: 3.73 MB / 238.1 MB Notification: Performance of FrontEnd - loaded program: time 0.00109/0.00109, allocations: 59.91 kB / 353.8 MB, free: 4.953 MB / 286.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.08377/0.08488, allocations: 50.24 MB / 404.1 MB, free: 2.668 MB / 334.1 MB Notification: Performance of NFInst.instantiate(ExternalMedia.Test.TestMedium.TestState): time 0.007507/0.09242, allocations: 7.546 MB / 411.6 MB, free: 11.08 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 2.904e-05/0.09247, allocations: 23.89 kB / 411.6 MB, free: 11.06 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 1.339e-05/0.09249, allocations: 7.938 kB / 411.6 MB, free: 11.05 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0002284/0.09274, allocations: 75.64 kB / 411.7 MB, free: 10.98 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 2.338e-05/0.09277, allocations: 19.84 kB / 411.7 MB, free: 10.96 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0001503/0.09292, allocations: 43.73 kB / 411.8 MB, free: 10.91 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 6.175e-05/0.09299, allocations: 39.69 kB / 411.8 MB, free: 10.88 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 3.86e-05/0.09304, allocations: 8 kB / 411.8 MB, free: 10.87 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 2.341e-05/0.09307, allocations: 11.94 kB / 411.8 MB, free: 10.86 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 4.397e-05/0.09312, allocations: 15.88 kB / 411.8 MB, free: 10.84 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 9.247e-06/0.09313, allocations: 0 / 411.8 MB, free: 10.84 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001798/0.09332, allocations: 43.94 kB / 411.9 MB, free: 10.8 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 8.917e-06/0.09333, allocations: 0 / 411.9 MB, free: 10.8 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 3.458e-05/0.09337, allocations: 31.84 kB / 411.9 MB, free: 10.77 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0001387/0.09352, allocations: 51.83 kB / 412 MB, free: 10.71 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.647e-06/0.09353, allocations: 0 / 412 MB, free: 10.71 MB / 350.1 MB Notification: Performance of FrontEnd: time 8.11e-07/0.09353, allocations: 0 / 412 MB, free: 10.71 MB / 350.1 MB Notification: Performance of Transformations before backend: time 3.506e-06/0.09354, allocations: 4 kB / 412 MB, free: 10.71 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: 15 * Number of variables: 15 Notification: Performance of Generate backend data structure: time 0.0002772/0.09383, allocations: 339.4 kB / 412.3 MB, free: 10.33 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.375e-05/0.09387, allocations: 12.03 kB / 412.3 MB, free: 10.32 MB / 350.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 2.73e-05/0.0939, allocations: 30.75 kB / 412.3 MB, free: 10.28 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 2.33e-05/0.09393, allocations: 8.844 kB / 412.4 MB, free: 10.27 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 8.543e-05/0.09402, allocations: 172.2 kB / 412.5 MB, free: 10.07 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 8.907e-06/0.09403, allocations: 384 / 412.5 MB, free: 10.07 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 7.694e-06/0.09405, allocations: 384 / 412.5 MB, free: 10.07 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001005/0.09415, allocations: 61.56 kB / 412.6 MB, free: 10 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 4.969e-06/0.09416, allocations: 4 kB / 412.6 MB, free: 9.996 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 7.353e-06/0.09418, allocations: 4 kB / 412.6 MB, free: 9.992 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.424e-06/0.09419, allocations: 8 kB / 412.6 MB, free: 9.984 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 3.282e-05/0.09423, allocations: 23.98 kB / 412.6 MB, free: 9.961 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001361/0.09437, allocations: 161.7 kB / 412.8 MB, free: 9.754 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 5.882e-05/0.09443, allocations: 58.5 kB / 412.8 MB, free: 9.688 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 3.412e-05/0.09447, allocations: 36.89 kB / 412.9 MB, free: 9.648 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.14e-05/0.0945, allocations: 3.938 kB / 412.9 MB, free: 9.645 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.07e-05/0.09453, allocations: 42.56 kB / 412.9 MB, free: 9.594 MB / 350.1 MB Notification: Performance of pre-optimization done (n=15): time 1.011e-06/0.09454, allocations: 0 / 412.9 MB, free: 9.594 MB / 350.1 MB Notification: Performance of matching and sorting (n=15): time 0.0001978/0.09474, allocations: 132.2 kB / 413 MB, free: 9.461 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.139e-05/0.09479, allocations: 55.34 kB / 413.1 MB, free: 9.395 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 3.768e-05/0.09484, allocations: 93.86 kB / 413.2 MB, free: 9.293 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 1.028e-05/0.09485, allocations: 25.7 kB / 413.2 MB, free: 9.262 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 2.349e-05/0.09488, allocations: 80.14 kB / 413.3 MB, free: 9.18 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 4.804e-05/0.09493, allocations: 39.36 kB / 413.3 MB, free: 9.141 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.909e-05/0.09497, allocations: 21.75 kB / 413.4 MB, free: 9.113 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 0.0001088/0.09508, allocations: 322.8 kB / 413.7 MB, free: 8.789 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 2.708e-05/0.09512, allocations: 27.88 kB / 413.7 MB, free: 8.762 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 2.305e-05/0.09514, allocations: 23.98 kB / 413.7 MB, free: 8.738 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 7.462e-05/0.09522, allocations: 71.09 kB / 413.8 MB, free: 8.668 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.493e-06/0.09523, allocations: 0 / 413.8 MB, free: 8.668 MB / 350.1 MB Notification: Performance of matching and sorting (n=15) (initialization): time 9.652e-05/0.09533, allocations: 93.52 kB / 413.9 MB, free: 8.57 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.091e-05/0.09535, allocations: 11.94 kB / 413.9 MB, free: 8.559 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.561e-06/0.09536, allocations: 4.047 kB / 413.9 MB, free: 8.555 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 8.215e-06/0.09538, allocations: 4 kB / 413.9 MB, free: 8.551 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 7.82e-07/0.09538, allocations: 0 / 413.9 MB, free: 8.551 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.24e-06/0.09539, allocations: 0 / 413.9 MB, free: 8.551 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 2.398e-05/0.09542, allocations: 7.875 kB / 413.9 MB, free: 8.543 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.222e-06/0.09543, allocations: 4 kB / 413.9 MB, free: 8.539 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: 1 (state.phase) * 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 6.855e-05/0.0955, allocations: 113.8 kB / 414 MB, free: 8.418 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.317e-05/0.09552, allocations: 11.84 kB / 414 MB, free: 8.406 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001364/0.09566, allocations: 109.6 kB / 414.1 MB, free: 8.297 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.737e-06/0.09567, allocations: 0 / 414.1 MB, free: 8.297 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.456e-06/0.09568, allocations: 0 / 414.1 MB, free: 8.297 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.703e-06/0.09569, allocations: 0 / 414.1 MB, free: 8.297 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.000101/0.09579, allocations: 169.7 kB / 414.3 MB, free: 8.082 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.036e-06/0.0958, allocations: 3.938 kB / 414.3 MB, free: 8.078 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 5.11e-07/0.09581, allocations: 0 / 414.3 MB, free: 8.078 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.122e-06/0.09581, allocations: 0 / 414.3 MB, free: 8.078 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.531e-06/0.09582, allocations: 4.031 kB / 414.3 MB, free: 8.074 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 9.22e-07/0.09583, allocations: 3.938 kB / 414.3 MB, free: 8.07 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.074e-06/0.09583, allocations: 4 kB / 414.3 MB, free: 8.066 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001153/0.09595, allocations: 122.8 kB / 414.4 MB, free: 7.93 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 3.503e-05/0.096, allocations: 85.05 kB / 414.5 MB, free: 7.828 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 7.804e-06/0.09601, allocations: 0 / 414.5 MB, free: 7.828 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 2.003e-05/0.09603, allocations: 4 kB / 414.5 MB, free: 7.824 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 8.987e-06/0.09605, allocations: 0 / 414.5 MB, free: 7.824 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.408e-06/0.09606, allocations: 12.02 kB / 414.5 MB, free: 7.812 MB / 350.1 MB Notification: Performance of sorting global known variables: time 3.157e-05/0.09609, allocations: 75.28 kB / 414.6 MB, free: 7.738 MB / 350.1 MB Notification: Performance of sort global known variables: time 1e-07/0.0961, allocations: 0 / 414.6 MB, free: 7.738 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.0001844/0.09629, allocations: 16 kB / 414.6 MB, free: 7.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: 1 (state.phase) * 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.0005176/0.09681, allocations: 0.6954 MB / 415.3 MB, free: 7.004 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.0001011/0.09692, allocations: 67.98 kB / 415.4 MB, free: 6.938 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 2.164e-06/0.09693, allocations: 0 / 415.4 MB, free: 6.938 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 3.243e-05/0.09697, allocations: 40.05 kB / 415.4 MB, free: 6.898 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000323/0.0973, allocations: 32.03 kB / 415.5 MB, free: 6.867 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.000435/0.09774, allocations: 282.8 kB / 415.7 MB, free: 6.547 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002327/0.09798, allocations: 0.6848 MB / 416.4 MB, free: 5.836 MB / 350.1 MB Notification: Performance of simCode: alias equations: time 2.077e-05/0.09801, allocations: 3.938 kB / 416.4 MB, free: 5.832 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 2.027e-05/0.09803, allocations: 15.44 kB / 416.4 MB, free: 5.816 MB / 350.1 MB Notification: Performance of SimCode: time 2.21e-07/0.09804, allocations: 4 kB / 416.4 MB, free: 5.812 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02215/0.1202, allocations: 2.563 MB / 419 MB, free: 3.355 MB / 350.1 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001752/0.1204, allocations: 230.6 kB / 419.2 MB, free: 3.098 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 1.671/1.791, allocations: 0 / 419.2 MB, free: 3.098 MB / 350.1 MB (rm -f ExternalMedia_ExternalMedia.Test.TestMedium.TestState.pipe ; mkfifo ExternalMedia_ExternalMedia.Test.TestMedium.TestState.pipe ; head -c 1048576 < ExternalMedia_ExternalMedia.Test.TestMedium.TestState.pipe >> ../files/ExternalMedia_ExternalMedia.Test.TestMedium.TestState.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator --tempDir=temp_ExternalMedia_ExternalMedia_Test_TestMedium_TestState_fmu --startTime=0 --stopTime=1 --timeout=50 --tolerance=1e-06 ExternalMedia_ExternalMedia_Test_TestMedium_TestState.fmu > ExternalMedia_ExternalMedia.Test.TestMedium.TestState.pipe 2>&1)