Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr ExternalMedia_ExternalMedia.Test.TestMedium.TestSat.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.TestSat,fileNamePrefix="ExternalMedia_ExternalMedia_Test_TestMedium_TestSat",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(ExternalMedia.Test.TestMedium.TestSat,fileNamePrefix="ExternalMedia_ExternalMedia_Test_TestMedium_TestSat",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.00118/0.00118, 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.001195/0.001195, allocations: 188.5 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.239/1.239, 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.1094/0.1094, allocations: 2.766 MB / 292.8 MB, free: 3.805 MB / 238.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001091/0.001091, allocations: 59.91 kB / 354 MB, free: 4.824 MB / 286.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.07415/0.07525, allocations: 50.23 MB / 404.2 MB, free: 2.547 MB / 334.1 MB Notification: Performance of NFInst.instantiate(ExternalMedia.Test.TestMedium.TestSat): time 0.007218/0.08251, allocations: 7.535 MB / 411.8 MB, free: 10.97 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.0003844/0.08292, allocations: 0.5528 MB / 412.3 MB, free: 10.42 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 1.469e-05/0.08295, allocations: 0 / 412.3 MB, free: 10.42 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001785/0.08313, allocations: 67.67 kB / 412.4 MB, free: 10.35 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 1.969e-05/0.08317, allocations: 15.91 kB / 412.4 MB, free: 10.34 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0001169/0.08329, allocations: 23.83 kB / 412.4 MB, free: 10.31 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 5.752e-05/0.08336, allocations: 39.69 kB / 412.5 MB, free: 10.27 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 3.356e-05/0.0834, allocations: 4 kB / 412.5 MB, free: 10.27 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 1.973e-05/0.08342, allocations: 11.94 kB / 412.5 MB, free: 10.26 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 3.747e-05/0.08347, allocations: 11.94 kB / 412.5 MB, free: 10.25 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 8.256e-06/0.08348, allocations: 0 / 412.5 MB, free: 10.25 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001351/0.08362, allocations: 35.94 kB / 412.5 MB, free: 10.21 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 9.488e-06/0.08364, allocations: 7.922 kB / 412.5 MB, free: 10.2 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 2.813e-05/0.08367, allocations: 19.88 kB / 412.5 MB, free: 10.18 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0001179/0.08379, allocations: 47.88 kB / 412.6 MB, free: 10.14 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 2.835e-06/0.0838, allocations: 0 / 412.6 MB, free: 10.14 MB / 350.1 MB Notification: Performance of FrontEnd: time 1.012e-06/0.08381, allocations: 0 / 412.6 MB, free: 10.14 MB / 350.1 MB Notification: Performance of Transformations before backend: time 4.178e-06/0.08382, allocations: 0 / 412.6 MB, free: 10.14 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: 14 * Number of variables: 14 Notification: Performance of Generate backend data structure: time 0.0002737/0.08409, allocations: 339.4 kB / 412.9 MB, free: 9.758 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.132e-05/0.08414, allocations: 12.02 kB / 412.9 MB, free: 9.746 MB / 350.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 3.396e-05/0.08418, allocations: 34.75 kB / 413 MB, free: 9.703 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 2.096e-05/0.08421, allocations: 4.844 kB / 413 MB, free: 9.699 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 8.055e-05/0.08429, allocations: 168.3 kB / 413.1 MB, free: 9.496 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 9.879e-06/0.08431, allocations: 384 / 413.1 MB, free: 9.496 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 5.951e-06/0.08432, allocations: 8.312 kB / 413.1 MB, free: 9.488 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 9.767e-05/0.08442, allocations: 53.62 kB / 413.2 MB, free: 9.43 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 5.37e-06/0.08443, allocations: 0 / 413.2 MB, free: 9.43 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 5.761e-06/0.08444, allocations: 0 / 413.2 MB, free: 9.43 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.023e-06/0.08446, allocations: 8 kB / 413.2 MB, free: 9.422 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 3.277e-05/0.08449, allocations: 23.98 kB / 413.2 MB, free: 9.398 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001282/0.08463, allocations: 165.6 kB / 413.4 MB, free: 9.188 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 6.166e-05/0.08469, allocations: 50.56 kB / 413.4 MB, free: 9.129 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 3.314e-05/0.08473, allocations: 44.81 kB / 413.5 MB, free: 9.082 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.197e-05/0.08476, allocations: 3.938 kB / 413.5 MB, free: 9.078 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.311e-05/0.08479, allocations: 42.55 kB / 413.5 MB, free: 9.027 MB / 350.1 MB Notification: Performance of pre-optimization done (n=14): time 8.72e-07/0.08479, allocations: 0 / 413.5 MB, free: 9.027 MB / 350.1 MB Notification: Performance of matching and sorting (n=14): time 0.0001731/0.08497, allocations: 117.8 kB / 413.6 MB, free: 8.906 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 2.963e-05/0.08501, allocations: 55.41 kB / 413.7 MB, free: 8.84 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 3.027e-05/0.08505, allocations: 93.86 kB / 413.8 MB, free: 8.738 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 1.06e-05/0.08506, allocations: 25.7 kB / 413.8 MB, free: 8.707 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 2.059e-05/0.08509, allocations: 80.38 kB / 413.9 MB, free: 8.625 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 4.148e-05/0.08513, allocations: 43.3 kB / 413.9 MB, free: 8.582 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.692e-05/0.08516, allocations: 13.72 kB / 414 MB, free: 8.562 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 9.003e-05/0.08526, allocations: 326.9 kB / 414.3 MB, free: 8.234 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 2.569e-05/0.08529, allocations: 23.94 kB / 414.3 MB, free: 8.211 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 2.093e-05/0.08532, allocations: 24 kB / 414.3 MB, free: 8.188 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 5.949e-05/0.08538, allocations: 64.34 kB / 414.4 MB, free: 8.125 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.323e-06/0.08539, allocations: 0 / 414.4 MB, free: 8.125 MB / 350.1 MB Notification: Performance of matching and sorting (n=14) (initialization): time 9.007e-05/0.08548, allocations: 97.61 kB / 414.5 MB, free: 8.023 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.004e-05/0.0855, allocations: 4 kB / 414.5 MB, free: 8.02 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.408e-06/0.08551, allocations: 0 / 414.5 MB, free: 8.02 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 9.187e-06/0.08552, allocations: 0 / 414.5 MB, free: 8.02 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 6.61e-07/0.08553, allocations: 4.062 kB / 414.5 MB, free: 8.016 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 3.476e-06/0.08554, allocations: 0 / 414.5 MB, free: 8.016 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 2.257e-05/0.08557, allocations: 15.78 kB / 414.5 MB, free: 8 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.95e-06/0.08558, allocations: 0 / 414.5 MB, free: 8 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): 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.706e-05/0.08564, allocations: 113.8 kB / 414.6 MB, free: 7.879 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 9.087e-06/0.08565, allocations: 11.84 kB / 414.6 MB, free: 7.867 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.00012/0.08578, allocations: 93.77 kB / 414.7 MB, free: 7.773 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.1e-06/0.08579, allocations: 3.984 kB / 414.7 MB, free: 7.77 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.765e-06/0.0858, allocations: 8.031 kB / 414.7 MB, free: 7.762 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.954e-06/0.08581, allocations: 0 / 414.7 MB, free: 7.762 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 8.504e-05/0.0859, allocations: 169.5 kB / 414.9 MB, free: 7.547 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.124e-06/0.0859, allocations: 3.938 kB / 414.9 MB, free: 7.543 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 4.41e-07/0.08591, allocations: 0 / 414.9 MB, free: 7.543 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.335e-06/0.08591, allocations: 0 / 414.9 MB, free: 7.543 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.338e-06/0.08592, allocations: 7.938 kB / 414.9 MB, free: 7.535 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.034e-06/0.08593, allocations: 3.984 kB / 414.9 MB, free: 7.531 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.71e-07/0.08593, allocations: 0 / 414.9 MB, free: 7.531 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 9.613e-05/0.08603, allocations: 121.1 kB / 415 MB, free: 7.395 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 3.418e-05/0.08608, allocations: 88.95 kB / 415.1 MB, free: 7.289 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 8.015e-06/0.08609, allocations: 0 / 415.1 MB, free: 7.289 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 1.638e-05/0.08611, allocations: 0 / 415.1 MB, free: 7.289 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.555e-06/0.08612, allocations: 0 / 415.1 MB, free: 7.289 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.713e-06/0.08613, allocations: 0 / 415.1 MB, free: 7.289 MB / 350.1 MB Notification: Performance of sorting global known variables: time 2.045e-05/0.08615, allocations: 75.28 kB / 415.2 MB, free: 7.215 MB / 350.1 MB Notification: Performance of sort global known variables: time 9.1e-08/0.08616, allocations: 0 / 415.2 MB, free: 7.215 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.0001824/0.08634, allocations: 16 kB / 415.2 MB, free: 7.199 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 (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.0004252/0.08677, allocations: 0.6902 MB / 415.9 MB, free: 6.488 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 9.098e-05/0.08687, allocations: 59.98 kB / 416 MB, free: 6.43 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 1.573e-06/0.08688, allocations: 0 / 416 MB, free: 6.43 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 3.102e-05/0.08692, allocations: 35.98 kB / 416 MB, free: 6.395 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002947/0.08722, allocations: 28.08 kB / 416 MB, free: 6.367 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0003713/0.0876, allocations: 250.9 kB / 416.3 MB, free: 6.082 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001793/0.08779, allocations: 0.6846 MB / 416.9 MB, free: 5.371 MB / 350.1 MB Notification: Performance of simCode: alias equations: time 1.96e-05/0.08782, allocations: 4 kB / 416.9 MB, free: 5.367 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 1.745e-05/0.08784, allocations: 15.44 kB / 417 MB, free: 5.352 MB / 350.1 MB Notification: Performance of SimCode: time 2.2e-07/0.08784, allocations: 0 / 417 MB, free: 5.352 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.5614/0.6493, allocations: 2.351 MB / 419.3 MB, free: 3.109 MB / 350.1 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001887/0.6495, allocations: 237.5 kB / 419.5 MB, free: 2.848 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 1.965/2.614, allocations: 0 / 419.5 MB, free: 2.848 MB / 350.1 MB (rm -f ExternalMedia_ExternalMedia.Test.TestMedium.TestSat.pipe ; mkfifo ExternalMedia_ExternalMedia.Test.TestMedium.TestSat.pipe ; head -c 1048576 < ExternalMedia_ExternalMedia.Test.TestMedium.TestSat.pipe >> ../files/ExternalMedia_ExternalMedia.Test.TestMedium.TestSat.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator --tempDir=temp_ExternalMedia_ExternalMedia_Test_TestMedium_TestSat_fmu --startTime=0 --stopTime=1 --timeout=50 --tolerance=1e-06 ExternalMedia_ExternalMedia_Test_TestMedium_TestSat.fmu > ExternalMedia_ExternalMedia.Test.TestMedium.TestSat.pipe 2>&1)