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.001036/0.001037, allocations: 115.3 kB / 15.34 MB, free: 0.5156 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.001157/0.001157, allocations: 192.4 kB / 16.25 MB, free: 6.629 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.266/1.266, allocations: 222.9 MB / 239.9 MB, free: 4.527 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ExternalMedia 4.0.0/package.mo): time 0.1046/0.1046, allocations: 2.764 MB / 292.8 MB, free: 3.688 MB / 238.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001197/0.001197, allocations: 55.91 kB / 354 MB, free: 4.824 MB / 286.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.07554/0.07675, allocations: 50.23 MB / 404.2 MB, free: 2.543 MB / 334.1 MB Notification: Performance of NFInst.instantiate(ExternalMedia.Test.TestMedium.TestState): time 0.007221/0.084, allocations: 7.542 MB / 411.8 MB, free: 10.96 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 3.367e-05/0.08406, allocations: 35.88 kB / 411.8 MB, free: 10.93 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 1.367e-05/0.08408, allocations: 0 / 411.8 MB, free: 10.93 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001957/0.08428, allocations: 71.64 kB / 411.9 MB, free: 10.86 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 2.622e-05/0.08433, allocations: 23.83 kB / 411.9 MB, free: 10.83 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0001375/0.08448, allocations: 39.75 kB / 411.9 MB, free: 10.79 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 5.936e-05/0.08454, allocations: 39.69 kB / 412 MB, free: 10.75 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 4.108e-05/0.08459, allocations: 8 kB / 412 MB, free: 10.75 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 2.131e-05/0.08462, allocations: 11.94 kB / 412 MB, free: 10.73 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 3.558e-05/0.08466, allocations: 11.94 kB / 412 MB, free: 10.72 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 9.067e-06/0.08467, allocations: 0 / 412 MB, free: 10.72 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001548/0.08483, allocations: 43.98 kB / 412 MB, free: 10.68 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 1.008e-05/0.08485, allocations: 7.875 kB / 412.1 MB, free: 10.67 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 2.937e-05/0.08488, allocations: 19.88 kB / 412.1 MB, free: 10.65 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0001314/0.08502, allocations: 55.81 kB / 412.1 MB, free: 10.6 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.176e-06/0.08503, allocations: 0 / 412.1 MB, free: 10.6 MB / 350.1 MB Notification: Performance of FrontEnd: time 1.132e-06/0.08504, allocations: 0 / 412.1 MB, free: 10.6 MB / 350.1 MB Notification: Performance of Transformations before backend: time 4.128e-06/0.08505, allocations: 4 kB / 412.1 MB, free: 10.59 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.0002563/0.08531, allocations: 343.4 kB / 412.5 MB, free: 10.21 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.566e-05/0.08535, allocations: 12.03 kB / 412.5 MB, free: 10.2 MB / 350.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 2.816e-05/0.08538, allocations: 38.73 kB / 412.5 MB, free: 10.15 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 2.356e-05/0.08541, allocations: 8.844 kB / 412.5 MB, free: 10.14 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 6.905e-05/0.08549, allocations: 160.4 kB / 412.7 MB, free: 9.949 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 8.356e-06/0.0855, allocations: 384 / 412.7 MB, free: 9.949 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 5.491e-06/0.08551, allocations: 384 / 412.7 MB, free: 9.949 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 9.483e-05/0.08561, allocations: 65.5 kB / 412.7 MB, free: 9.879 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 5.2e-06/0.08562, allocations: 4 kB / 412.8 MB, free: 9.875 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 5.31e-06/0.08563, allocations: 0 / 412.8 MB, free: 9.875 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.611e-06/0.08564, allocations: 4 kB / 412.8 MB, free: 9.871 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 3.248e-05/0.08568, allocations: 27.98 kB / 412.8 MB, free: 9.844 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001222/0.08581, allocations: 165.6 kB / 412.9 MB, free: 9.633 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 5.281e-05/0.08587, allocations: 54.56 kB / 413 MB, free: 9.57 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 3.229e-05/0.0859, allocations: 36.89 kB / 413 MB, free: 9.531 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.095e-05/0.08593, allocations: 7.922 kB / 413 MB, free: 9.523 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.084e-05/0.08596, allocations: 42.5 kB / 413.1 MB, free: 9.473 MB / 350.1 MB Notification: Performance of pre-optimization done (n=15): time 1.052e-06/0.08596, allocations: 0 / 413.1 MB, free: 9.473 MB / 350.1 MB Notification: Performance of matching and sorting (n=15): time 0.000166/0.08614, allocations: 133.7 kB / 413.2 MB, free: 9.336 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 2.612e-05/0.08617, allocations: 51.41 kB / 413.3 MB, free: 9.273 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 3.049e-05/0.08621, allocations: 89.86 kB / 413.4 MB, free: 9.176 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 8.876e-06/0.08622, allocations: 29.7 kB / 413.4 MB, free: 9.141 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 1.957e-05/0.08624, allocations: 80.14 kB / 413.5 MB, free: 9.059 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 4.265e-05/0.08629, allocations: 39.36 kB / 413.5 MB, free: 9.02 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.715e-05/0.08633, allocations: 21.75 kB / 413.5 MB, free: 8.992 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 7.812e-05/0.08641, allocations: 318.8 kB / 413.8 MB, free: 8.672 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 2.639e-05/0.08644, allocations: 27.92 kB / 413.9 MB, free: 8.645 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 2.206e-05/0.08647, allocations: 26.25 kB / 413.9 MB, free: 8.621 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 6.627e-05/0.08654, allocations: 72.77 kB / 414 MB, free: 8.547 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.282e-06/0.08655, allocations: 0 / 414 MB, free: 8.547 MB / 350.1 MB Notification: Performance of matching and sorting (n=15) (initialization): time 0.0001034/0.08665, allocations: 97.53 kB / 414.1 MB, free: 8.445 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.066e-05/0.08667, allocations: 8 kB / 414.1 MB, free: 8.438 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.168e-06/0.08668, allocations: 4.062 kB / 414.1 MB, free: 8.434 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 8.526e-06/0.0867, allocations: 0 / 414.1 MB, free: 8.434 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 6.31e-07/0.0867, allocations: 0 / 414.1 MB, free: 8.434 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 4.719e-06/0.08671, allocations: 3.984 kB / 414.1 MB, free: 8.43 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 2.326e-05/0.08674, allocations: 3.938 kB / 414.1 MB, free: 8.426 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.671e-06/0.08675, allocations: 4 kB / 414.1 MB, free: 8.422 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 5.798e-05/0.08681, allocations: 105.8 kB / 414.2 MB, free: 8.309 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.033e-05/0.08682, allocations: 7.844 kB / 414.2 MB, free: 8.301 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.000135/0.08697, allocations: 123.9 kB / 414.3 MB, free: 8.18 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.989e-06/0.08698, allocations: 3.984 kB / 414.3 MB, free: 8.176 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.825e-06/0.08699, allocations: 0 / 414.3 MB, free: 8.176 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.483e-06/0.08699, allocations: 0 / 414.3 MB, free: 8.176 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 9.05e-05/0.08709, allocations: 173.6 kB / 414.5 MB, free: 7.957 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.367e-06/0.0871, allocations: 3.938 kB / 414.5 MB, free: 7.953 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 4.71e-07/0.0871, allocations: 0 / 414.5 MB, free: 7.953 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.212e-06/0.08711, allocations: 0 / 414.5 MB, free: 7.953 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.619e-06/0.08712, allocations: 4.031 kB / 414.5 MB, free: 7.949 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 9.42e-07/0.08712, allocations: 0 / 414.5 MB, free: 7.949 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.11e-07/0.08713, allocations: 0 / 414.5 MB, free: 7.949 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001066/0.08724, allocations: 128.9 kB / 414.6 MB, free: 7.805 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 2.989e-05/0.08728, allocations: 85.05 kB / 414.7 MB, free: 7.703 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 9.047e-06/0.08729, allocations: 3.984 kB / 414.7 MB, free: 7.699 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 1.835e-05/0.08731, allocations: 0 / 414.7 MB, free: 7.699 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 8.966e-06/0.08733, allocations: 0 / 414.7 MB, free: 7.699 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.347e-06/0.08734, allocations: 8.031 kB / 414.7 MB, free: 7.691 MB / 350.1 MB Notification: Performance of sorting global known variables: time 2.35e-05/0.08736, allocations: 75.28 kB / 414.8 MB, free: 7.617 MB / 350.1 MB Notification: Performance of sort global known variables: time 1.11e-07/0.08737, allocations: 0 / 414.8 MB, free: 7.617 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.0001988/0.08757, allocations: 12 kB / 414.8 MB, free: 7.605 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.0004646/0.08804, allocations: 0.6978 MB / 415.5 MB, free: 6.887 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.0001043/0.08816, allocations: 71.92 kB / 415.6 MB, free: 6.816 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 1.453e-06/0.08817, allocations: 0 / 415.6 MB, free: 6.816 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 3.081e-05/0.0882, allocations: 36.05 kB / 415.6 MB, free: 6.781 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003334/0.08854, allocations: 40.02 kB / 415.6 MB, free: 6.742 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0004134/0.08897, allocations: 277.2 kB / 415.9 MB, free: 6.43 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001854/0.08916, allocations: 0.6884 MB / 416.6 MB, free: 5.715 MB / 350.1 MB Notification: Performance of simCode: alias equations: time 2.076e-05/0.08919, allocations: 0 / 416.6 MB, free: 5.715 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 2.553e-05/0.08922, allocations: 11.44 kB / 416.6 MB, free: 5.703 MB / 350.1 MB Notification: Performance of SimCode: time 2.7e-07/0.08923, allocations: 4 kB / 416.6 MB, free: 5.699 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.6009/0.6901, allocations: 2.661 MB / 419.3 MB, free: 3.164 MB / 350.1 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0002475/0.6904, allocations: 222.8 kB / 419.5 MB, free: 2.914 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 2.358/3.049, allocations: 0 / 419.5 MB, free: 2.914 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)