Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr ExternalMedia_ExternalMedia.Test.TestMedium.TestBasePropertiesDynamic.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.TestBasePropertiesDynamic,fileNamePrefix="ExternalMedia_ExternalMedia_Test_TestMedium_TestBasePropertiesDynamic",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(ExternalMedia.Test.TestMedium.TestBasePropertiesDynamic,fileNamePrefix="ExternalMedia_ExternalMedia_Test_TestMedium_TestBasePropertiesDynamic",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.001119/0.001119, 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.001129/0.001129, allocations: 193.2 kB / 16.25 MB, free: 6.625 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.192/1.192, allocations: 222.9 MB / 239.9 MB, free: 4.551 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ExternalMedia 4.0.0/package.mo): time 0.09585/0.09585, allocations: 2.757 MB / 292.8 MB, free: 3.844 MB / 238.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001079/0.001079, allocations: 59.91 kB / 354 MB, free: 4.816 MB / 286.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.07121/0.0723, allocations: 50.23 MB / 404.2 MB, free: 2.535 MB / 334.1 MB Notification: Performance of NFInst.instantiate(ExternalMedia.Test.TestMedium.TestBasePropertiesDynamic): time 0.00731/0.07964, allocations: 8.352 MB / 412.6 MB, free: 10.14 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.006349/0.08601, allocations: 9.385 MB / 422 MB, free: 0.7227 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 6.476e-05/0.08609, allocations: 0 / 422 MB, free: 0.7227 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0003904/0.08649, allocations: 151.3 kB / 422.1 MB, free: 0.5742 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0002416/0.08676, allocations: 87.42 kB / 422.2 MB, free: 500 kB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.1333/0.2201, allocations: 1.335 MB / 423.5 MB, free: 36.59 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.0003776/0.2205, allocations: 264 kB / 423.8 MB, free: 36.59 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 5.89e-05/0.2205, allocations: 14.22 kB / 423.8 MB, free: 36.59 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.003959/0.2245, allocations: 129 kB / 423.9 MB, free: 36.59 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001859/0.2247, allocations: 86.28 kB / 424 MB, free: 36.59 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 2.818e-05/0.2247, allocations: 7.438 kB / 424 MB, free: 36.59 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001276/0.226, allocations: 477.1 kB / 424.5 MB, free: 36.59 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 6.017e-05/0.2261, allocations: 33.23 kB / 424.5 MB, free: 36.59 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 9.854e-05/0.2262, allocations: 84.41 kB / 424.6 MB, free: 36.59 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.001009/0.2272, allocations: 0.492 MB / 425.1 MB, free: 36.56 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.068e-06/0.2272, allocations: 0 / 425.1 MB, free: 36.56 MB / 350.1 MB Notification: Performance of FrontEnd: time 1.102e-06/0.2272, allocations: 1.75 kB / 425.1 MB, free: 36.56 MB / 350.1 MB Notification: Performance of Transformations before backend: time 5.881e-06/0.2272, allocations: 0 / 425.1 MB, free: 36.56 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: 50 * Number of variables: 50 Notification: Performance of Generate backend data structure: time 0.0006459/0.2279, allocations: 0.5544 MB / 425.7 MB, free: 36.13 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.316e-05/0.2279, allocations: 9.531 kB / 425.7 MB, free: 36.13 MB / 350.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 3.533e-05/0.228, allocations: 54.2 kB / 425.7 MB, free: 36.09 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002949/0.2283, allocations: 57.66 kB / 425.8 MB, free: 36.08 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001247/0.2284, allocations: 200 kB / 426 MB, free: 35.88 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.065e-05/0.2284, allocations: 6.625 kB / 426 MB, free: 35.88 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.476e-05/0.2285, allocations: 22.94 kB / 426 MB, free: 35.87 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004126/0.2289, allocations: 243.8 kB / 426.2 MB, free: 35.81 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 7.925e-06/0.2289, allocations: 0 / 426.2 MB, free: 35.81 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.66e-05/0.2289, allocations: 8.438 kB / 426.2 MB, free: 35.81 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.003e-05/0.2289, allocations: 9.594 kB / 426.3 MB, free: 35.81 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.000421/0.2293, allocations: 206.9 kB / 426.5 MB, free: 35.8 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.00056/0.2299, allocations: 0.6788 MB / 427.1 MB, free: 35.36 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0005015/0.2304, allocations: 248.7 kB / 427.4 MB, free: 35.32 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002003/0.2306, allocations: 155.2 kB / 427.5 MB, free: 35.31 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0001683/0.2308, allocations: 330.3 kB / 427.8 MB, free: 35.03 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.291e-05/0.2308, allocations: 37.62 kB / 427.9 MB, free: 34.99 MB / 350.1 MB Notification: Performance of pre-optimization done (n=44): time 1.393e-06/0.2309, allocations: 2.625 kB / 427.9 MB, free: 34.99 MB / 350.1 MB Notification: Performance of matching and sorting (n=48): time 0.00227/0.2331, allocations: 1.227 MB / 429.1 MB, free: 34.67 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 2.293e-05/0.2332, allocations: 54.69 kB / 429.2 MB, free: 34.61 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 5.781e-05/0.2332, allocations: 130.4 kB / 429.3 MB, free: 34.51 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 1.654e-05/0.2332, allocations: 28.86 kB / 429.3 MB, free: 34.48 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 3.297e-05/0.2333, allocations: 106.4 kB / 429.4 MB, free: 34.38 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 5.982e-05/0.2334, allocations: 162.6 kB / 429.6 MB, free: 34.28 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 6.582e-05/0.2334, allocations: 60.33 kB / 429.6 MB, free: 34.26 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 3.613e-05/0.2335, allocations: 327.6 kB / 430 MB, free: 33.95 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001961/0.2337, allocations: 125.3 kB / 430.1 MB, free: 33.95 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002074/0.2339, allocations: 183.8 kB / 430.3 MB, free: 33.89 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0004063/0.2343, allocations: 347.8 kB / 430.6 MB, free: 33.83 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.783e-06/0.2343, allocations: 3.719 kB / 430.6 MB, free: 33.83 MB / 350.1 MB Notification: Performance of matching and sorting (n=55) (initialization): time 0.0009898/0.2353, allocations: 489.8 kB / 431.1 MB, free: 33.76 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.294e-05/0.2353, allocations: 6.469 kB / 431.1 MB, free: 33.76 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.082e-06/0.2353, allocations: 0.75 kB / 431.1 MB, free: 33.76 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0007349/0.2361, allocations: 157.4 kB / 431.2 MB, free: 33.75 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001226/0.2362, allocations: 35.72 kB / 431.3 MB, free: 33.75 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.00045/0.2367, allocations: 0.6673 MB / 432 MB, free: 33.22 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001367/0.2368, allocations: 17.02 kB / 432 MB, free: 33.22 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.763e-05/0.2368, allocations: 13.34 kB / 432 MB, free: 33.22 MB / 350.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 6 * Number of states: 0 () * Number of discrete variables: 3 (medium.phaseOutput,medium.state.phase,medium.phaseInput) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (18): * Single equations (assignments): 15 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 2 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 0 systems * Non-linear torn systems (#iteration vars, #inner vars): 1 system {(3,8)} Notification: Performance of prepare postOptimizeDAE: time 8.277e-05/0.2369, allocations: 127 kB / 432.1 MB, free: 33.11 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.129e-05/0.237, allocations: 24.72 kB / 432.1 MB, free: 33.09 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0008237/0.2378, allocations: 0.7189 MB / 432.8 MB, free: 33.02 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 9.107e-06/0.2378, allocations: 11.52 kB / 432.9 MB, free: 33.02 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.36e-06/0.2378, allocations: 3.125 kB / 432.9 MB, free: 33.02 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.607e-06/0.2378, allocations: 3.469 kB / 432.9 MB, free: 33.02 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002764/0.2381, allocations: 386.5 kB / 433.2 MB, free: 32.83 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.923e-06/0.2381, allocations: 3.375 kB / 433.2 MB, free: 32.83 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002465/0.2384, allocations: 48.66 kB / 433.3 MB, free: 32.83 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0002055/0.2386, allocations: 82.75 kB / 433.4 MB, free: 32.82 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.495e-05/0.2386, allocations: 7.156 kB / 433.4 MB, free: 32.82 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001092/0.2397, allocations: 2.782 MB / 436.2 MB, free: 30.05 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 9.62e-07/0.2397, allocations: 0 / 436.2 MB, free: 30.05 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0009019/0.2406, allocations: 0.8368 MB / 437 MB, free: 29.88 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 2.526e-05/0.2407, allocations: 91.33 kB / 437.1 MB, free: 29.77 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.079e-05/0.2407, allocations: 3.938 kB / 437.1 MB, free: 29.77 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001604/0.2409, allocations: 17.59 kB / 437.1 MB, free: 29.77 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.525e-05/0.2409, allocations: 23.27 kB / 437.1 MB, free: 29.77 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.261e-05/0.2409, allocations: 3 kB / 437.1 MB, free: 29.77 MB / 350.1 MB Notification: Performance of sorting global known variables: time 3.304e-05/0.241, allocations: 95.23 kB / 437.2 MB, free: 29.69 MB / 350.1 MB Notification: Performance of sort global known variables: time 6.11e-07/0.241, allocations: 0 / 437.2 MB, free: 29.69 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.0003086/0.2413, allocations: 67.17 kB / 437.3 MB, free: 29.69 MB / 350.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * Number of states: 2 (medium.p,medium.h) * Number of discrete variables: 2 (medium.state.phase,medium.phaseOutput) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (20): * Single equations (assignments): 16 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 2 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 1 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Equation system details (not torn): * Constant Jacobian (size): 0 systems * Linear Jacobian (size,density): 0 systems * Non-linear Jacobian (size): 1 system {1} * Without analytic Jacobian (size): 0 systems Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 1 system {(1,1,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of Backend phase and start with SimCode phase: time 0.001094/0.2424, allocations: 1.254 MB / 438.5 MB, free: 28.97 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.0007342/0.2431, allocations: 379.5 kB / 438.9 MB, free: 28.96 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 1.984e-06/0.2432, allocations: 0 / 438.9 MB, free: 28.96 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0005391/0.2437, allocations: 327.9 kB / 439.2 MB, free: 28.78 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000562/0.2443, allocations: 91.55 kB / 439.3 MB, free: 28.76 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003359/0.2476, allocations: 3.004 MB / 442.3 MB, free: 26.73 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001157/0.2478, allocations: 0.7381 MB / 443.1 MB, free: 26.03 MB / 350.1 MB Notification: Performance of simCode: alias equations: time 0.0001432/0.2479, allocations: 37.72 kB / 443.1 MB, free: 26.02 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 6.928e-05/0.248, allocations: 57.95 kB / 443.2 MB, free: 25.98 MB / 350.1 MB Notification: Performance of SimCode: time 2.1e-07/0.248, allocations: 4 kB / 443.2 MB, free: 25.98 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 1.728/1.976, allocations: 7.57 MB / 450.7 MB, free: 25.27 MB / 350.1 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001701/1.976, allocations: 280.9 kB / 451 MB, free: 24.89 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 3.53/5.506, allocations: 6.219 kB / 451 MB, free: 24.89 MB / 350.1 MB (rm -f ExternalMedia_ExternalMedia.Test.TestMedium.TestBasePropertiesDynamic.pipe ; mkfifo ExternalMedia_ExternalMedia.Test.TestMedium.TestBasePropertiesDynamic.pipe ; head -c 1048576 < ExternalMedia_ExternalMedia.Test.TestMedium.TestBasePropertiesDynamic.pipe >> ../files/ExternalMedia_ExternalMedia.Test.TestMedium.TestBasePropertiesDynamic.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator --tempDir=temp_ExternalMedia_ExternalMedia_Test_TestMedium_TestBasePropertiesDynamic_fmu --startTime=0 --stopTime=80 --timeout=50 --tolerance=1e-07 ExternalMedia_ExternalMedia_Test_TestMedium_TestBasePropertiesDynamic.fmu > ExternalMedia_ExternalMedia.Test.TestMedium.TestBasePropertiesDynamic.pipe 2>&1)