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.005463/0.005462, allocations: 98.77 kB / 15.73 MB, free: 6.066 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.001453/0.001453, allocations: 196.1 kB / 16.68 MB, free: 5.973 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.406/1.406, allocations: 222.9 MB / 240.4 MB, free: 15.16 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ExternalMedia 4.0.0/package.mo): time 0.01192/0.01192, allocations: 2.782 MB / 293.3 MB, free: 11.97 MB / 238.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001826/0.001826, allocations: 63.84 kB / 405.4 MB, free: 29.59 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.08397/0.08581, allocations: 50.23 MB / 455.6 MB, free: 11.31 MB / 334.1 MB Notification: Performance of NFInst.instantiate(ExternalMedia.Test.TestMedium.TestSat): time 0.008911/0.09476, allocations: 7.514 MB / 463.1 MB, free: 3.758 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.0004901/0.09529, allocations: 0.5721 MB / 463.7 MB, free: 3.184 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 1.856e-05/0.09532, allocations: 0 / 463.7 MB, free: 3.184 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0002038/0.09553, allocations: 67.61 kB / 463.8 MB, free: 3.117 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 2.211e-05/0.09558, allocations: 15.84 kB / 463.8 MB, free: 3.102 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0001312/0.09572, allocations: 27.77 kB / 463.8 MB, free: 3.074 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 7.066e-05/0.0958, allocations: 39.73 kB / 463.9 MB, free: 3.035 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 4.619e-05/0.09585, allocations: 4 kB / 463.9 MB, free: 3.031 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 2.456e-05/0.09588, allocations: 11.94 kB / 463.9 MB, free: 3.02 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 4.475e-05/0.09593, allocations: 11.94 kB / 463.9 MB, free: 3.008 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 9.378e-06/0.09595, allocations: 0 / 463.9 MB, free: 3.008 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001644/0.09612, allocations: 32 kB / 463.9 MB, free: 2.977 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 1.119e-05/0.09614, allocations: 7.938 kB / 463.9 MB, free: 2.969 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 3.446e-05/0.09618, allocations: 15.94 kB / 463.9 MB, free: 2.953 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0001558/0.09634, allocations: 55.73 kB / 464 MB, free: 2.898 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.196e-06/0.09635, allocations: 0 / 464 MB, free: 2.898 MB / 334.1 MB Notification: Performance of FrontEnd: time 1.072e-06/0.09635, allocations: 0 / 464 MB, free: 2.898 MB / 334.1 MB Notification: Performance of Transformations before backend: time 4.929e-06/0.09636, allocations: 0 / 464 MB, free: 2.898 MB / 334.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.0003438/0.09671, allocations: 339.4 kB / 464.3 MB, free: 2.52 MB / 334.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.873e-05/0.09676, allocations: 12.02 kB / 464.3 MB, free: 2.508 MB / 334.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 3.816e-05/0.0968, allocations: 38.69 kB / 464.4 MB, free: 2.461 MB / 334.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 2.253e-05/0.09683, allocations: 4.891 kB / 464.4 MB, free: 2.457 MB / 334.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001058/0.09694, allocations: 164.3 kB / 464.5 MB, free: 2.258 MB / 334.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.043e-05/0.09696, allocations: 384 / 464.5 MB, free: 2.258 MB / 334.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 5.54e-06/0.09697, allocations: 4.375 kB / 464.5 MB, free: 2.254 MB / 334.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.000115/0.09709, allocations: 57.62 kB / 464.6 MB, free: 2.191 MB / 334.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 7.364e-06/0.0971, allocations: 0 / 464.6 MB, free: 2.191 MB / 334.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 5.5e-06/0.09711, allocations: 0 / 464.6 MB, free: 2.191 MB / 334.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.671e-06/0.09713, allocations: 4 kB / 464.6 MB, free: 2.188 MB / 334.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 4.99e-05/0.09718, allocations: 31.92 kB / 464.6 MB, free: 2.156 MB / 334.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001637/0.09735, allocations: 165.6 kB / 464.8 MB, free: 1.945 MB / 334.1 MB Notification: Performance of preOpt comSubExp (simulation): time 6.744e-05/0.09743, allocations: 50.56 kB / 464.9 MB, free: 1.887 MB / 334.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 4.292e-05/0.09748, allocations: 40.88 kB / 464.9 MB, free: 1.844 MB / 334.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.207e-05/0.0975, allocations: 3.938 kB / 464.9 MB, free: 1.84 MB / 334.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.501e-05/0.09753, allocations: 34.56 kB / 464.9 MB, free: 1.797 MB / 334.1 MB Notification: Performance of pre-optimization done (n=14): time 1.092e-06/0.09754, allocations: 0 / 464.9 MB, free: 1.797 MB / 334.1 MB Notification: Performance of matching and sorting (n=14): time 0.0002086/0.09775, allocations: 121.6 kB / 465 MB, free: 1.672 MB / 334.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.933e-05/0.0978, allocations: 55.41 kB / 465.1 MB, free: 1.605 MB / 334.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 4.156e-05/0.09785, allocations: 89.86 kB / 465.2 MB, free: 1.508 MB / 334.1 MB Notification: Performance of collectPreVariables (initialization): time 5.589e-05/0.09791, allocations: 25.7 kB / 465.2 MB, free: 1.477 MB / 334.1 MB Notification: Performance of collectInitialEqns (initialization): time 3.071e-05/0.09794, allocations: 80.38 kB / 465.3 MB, free: 1.395 MB / 334.1 MB Notification: Performance of collectInitialBindings (initialization): time 5.142e-05/0.098, allocations: 47.59 kB / 465.3 MB, free: 1.348 MB / 334.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.204e-05/0.09804, allocations: 13.72 kB / 465.4 MB, free: 1.328 MB / 334.1 MB Notification: Performance of setup shared object (initialization): time 0.0001541/0.0982, allocations: 330.8 kB / 465.7 MB, free: 0.9961 MB / 334.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 2.739e-05/0.09823, allocations: 16 kB / 465.7 MB, free: 0.9805 MB / 334.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 2.831e-05/0.09826, allocations: 31.86 kB / 465.7 MB, free: 0.9531 MB / 334.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 7.307e-05/0.09834, allocations: 65.09 kB / 465.8 MB, free: 0.8867 MB / 334.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.483e-06/0.09835, allocations: 0 / 465.8 MB, free: 0.8867 MB / 334.1 MB Notification: Performance of matching and sorting (n=14) (initialization): time 0.0001069/0.09846, allocations: 93.55 kB / 465.9 MB, free: 0.7891 MB / 334.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.319e-05/0.09848, allocations: 4 kB / 465.9 MB, free: 0.7852 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.358e-06/0.09849, allocations: 0 / 465.9 MB, free: 0.7852 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.023e-05/0.0985, allocations: 0 / 465.9 MB, free: 0.7852 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 1.062e-06/0.09851, allocations: 4.062 kB / 465.9 MB, free: 0.7812 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 4.157e-06/0.09852, allocations: 0 / 465.9 MB, free: 0.7812 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 2.655e-05/0.09855, allocations: 11.89 kB / 465.9 MB, free: 0.7695 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.91e-06/0.09856, allocations: 0 / 465.9 MB, free: 0.7695 MB / 334.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 7.558e-05/0.09864, allocations: 110.5 kB / 466 MB, free: 0.6523 MB / 334.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.066e-05/0.09866, allocations: 11.92 kB / 466 MB, free: 0.6406 MB / 334.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 2.557e-05/0.09869, allocations: 8.078 kB / 466 MB, free: 0.6367 MB / 334.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.517e-06/0.0987, allocations: 0 / 466 MB, free: 0.6367 MB / 334.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.307e-06/0.09871, allocations: 0 / 466 MB, free: 0.6367 MB / 334.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.774e-06/0.09871, allocations: 4 kB / 466 MB, free: 0.6328 MB / 334.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001329/0.09885, allocations: 181.5 kB / 466.2 MB, free: 416 kB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.925e-06/0.09886, allocations: 3.938 kB / 466.2 MB, free: 412 kB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 2.144e-06/0.09887, allocations: 4 kB / 466.2 MB, free: 408 kB / 334.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.203e-06/0.09888, allocations: 0 / 466.2 MB, free: 408 kB / 334.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.21e-06/0.09889, allocations: 0 / 466.2 MB, free: 408 kB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 8.81e-07/0.09889, allocations: 0 / 466.2 MB, free: 408 kB / 334.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.22e-07/0.09889, allocations: 0 / 466.2 MB, free: 408 kB / 334.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001288/0.09903, allocations: 121 kB / 466.3 MB, free: 268 kB / 334.1 MB Notification: Performance of postOpt removeConstants (simulation): time 4.24e-05/0.09908, allocations: 85.08 kB / 466.4 MB, free: 164 kB / 334.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 8.225e-06/0.0991, allocations: 0 / 466.4 MB, free: 164 kB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 2.073e-05/0.09912, allocations: 4 kB / 466.4 MB, free: 160 kB / 334.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 8.917e-06/0.09913, allocations: 0 / 466.4 MB, free: 160 kB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.024e-06/0.09914, allocations: 0 / 466.4 MB, free: 160 kB / 334.1 MB Notification: Performance of sorting global known variables: time 3.378e-05/0.09918, allocations: 75.28 kB / 466.5 MB, free: 84 kB / 334.1 MB Notification: Performance of sort global known variables: time 1.8e-07/0.09918, allocations: 0 / 466.5 MB, free: 84 kB / 334.1 MB Notification: Performance of remove unused functions: time 0.0001961/0.09938, allocations: 8 kB / 466.5 MB, free: 76 kB / 334.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.0005865/0.09997, allocations: 0.696 MB / 467.2 MB, free: 15.36 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.0001129/0.1001, allocations: 59.98 kB / 467.3 MB, free: 15.3 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 1.843e-06/0.1001, allocations: 0 / 467.3 MB, free: 15.3 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 3.895e-05/0.1002, allocations: 39.98 kB / 467.3 MB, free: 15.26 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003409/0.1005, allocations: 27.89 kB / 467.3 MB, free: 15.23 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0004334/0.1009, allocations: 238.9 kB / 467.6 MB, free: 14.96 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003083/0.1013, allocations: 0.6846 MB / 468.2 MB, free: 14.25 MB / 350.1 MB Notification: Performance of simCode: alias equations: time 1.589e-05/0.1013, allocations: 0 / 468.2 MB, free: 14.25 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 2.155e-05/0.1013, allocations: 11.44 kB / 468.3 MB, free: 14.23 MB / 350.1 MB Notification: Performance of SimCode: time 2.61e-07/0.1013, allocations: 0 / 468.3 MB, free: 14.23 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02328/0.1246, allocations: 2.48 MB / 470.7 MB, free: 11.84 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 7.632/7.757, allocations: 7.5 kB / 470.7 MB, free: 11.83 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)