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.0015/0.0015, allocations: 108 kB / 15.61 MB, free: 152 kB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001109/0.00111, allocations: 196.6 kB / 16.53 MB, free: 6.664 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.339/1.339, allocations: 222.9 MB / 240.2 MB, free: 4.379 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ExternalMedia 4.0.0/package.mo): time 0.1267/0.1267, allocations: 2.762 MB / 293.2 MB, free: 3.625 MB / 238.1 MB Notification: Performance of FrontEnd - loaded program: time 0.00128/0.00128, allocations: 67.91 kB / 354.5 MB, free: 4.289 MB / 286.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.08688/0.08818, allocations: 50.23 MB / 404.7 MB, free: 2.008 MB / 334.1 MB Notification: Performance of NFInst.instantiate(ExternalMedia.Test.TestMedium.TestSat): time 0.008586/0.09681, allocations: 7.516 MB / 412.3 MB, free: 10.45 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.000429/0.09727, allocations: 0.5565 MB / 412.8 MB, free: 9.895 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 2.069e-05/0.0973, allocations: 0 / 412.8 MB, free: 9.895 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0002019/0.09753, allocations: 67.61 kB / 412.9 MB, free: 9.828 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 2.666e-05/0.09757, allocations: 19.84 kB / 412.9 MB, free: 9.809 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0001282/0.0977, allocations: 35.77 kB / 412.9 MB, free: 9.773 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 6.872e-05/0.09778, allocations: 39.67 kB / 413 MB, free: 9.734 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 4.089e-05/0.09782, allocations: 4 kB / 413 MB, free: 9.73 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 2.38e-05/0.09785, allocations: 11.94 kB / 413 MB, free: 9.719 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 3.884e-05/0.0979, allocations: 7.938 kB / 413 MB, free: 9.711 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 1.41e-05/0.09792, allocations: 4 kB / 413 MB, free: 9.707 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001732/0.0981, allocations: 32 kB / 413 MB, free: 9.676 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 1.015e-05/0.09811, allocations: 0 / 413 MB, free: 9.676 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 3.319e-05/0.09815, allocations: 15.88 kB / 413 MB, free: 9.66 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0001543/0.09831, allocations: 51.88 kB / 413.1 MB, free: 9.609 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.587e-06/0.09833, allocations: 0 / 413.1 MB, free: 9.609 MB / 350.1 MB Notification: Performance of FrontEnd: time 1.262e-06/0.09833, allocations: 0 / 413.1 MB, free: 9.609 MB / 350.1 MB Notification: Performance of Transformations before backend: time 4.248e-06/0.09834, allocations: 0 / 413.1 MB, free: 9.609 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.0002996/0.09864, allocations: 339.4 kB / 413.4 MB, free: 9.23 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.519e-05/0.09869, allocations: 12.02 kB / 413.4 MB, free: 9.219 MB / 350.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 3.4e-05/0.09873, allocations: 34.75 kB / 413.5 MB, free: 9.176 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 2.408e-05/0.09876, allocations: 8.844 kB / 413.5 MB, free: 9.168 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 8.53e-05/0.09885, allocations: 168.3 kB / 413.6 MB, free: 8.965 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.266e-05/0.09887, allocations: 8.312 kB / 413.7 MB, free: 8.957 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 5.902e-06/0.09888, allocations: 384 / 413.7 MB, free: 8.957 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001036/0.09899, allocations: 57.62 kB / 413.7 MB, free: 8.895 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 6.803e-06/0.099, allocations: 0 / 413.7 MB, free: 8.895 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 6.151e-06/0.09901, allocations: 0 / 413.7 MB, free: 8.895 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 9.127e-06/0.09902, allocations: 4 kB / 413.7 MB, free: 8.891 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 3.727e-05/0.09907, allocations: 35.86 kB / 413.7 MB, free: 8.855 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001346/0.09921, allocations: 165.7 kB / 413.9 MB, free: 8.645 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 5.807e-05/0.09927, allocations: 50.56 kB / 414 MB, free: 8.586 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 4.059e-05/0.09932, allocations: 40.88 kB / 414 MB, free: 8.543 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.117e-05/0.09935, allocations: 3.938 kB / 414 MB, free: 8.539 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.115e-05/0.09937, allocations: 34.56 kB / 414 MB, free: 8.496 MB / 350.1 MB Notification: Performance of pre-optimization done (n=14): time 1.102e-06/0.09938, allocations: 0 / 414 MB, free: 8.496 MB / 350.1 MB Notification: Performance of matching and sorting (n=14): time 0.0001898/0.09957, allocations: 128.8 kB / 414.2 MB, free: 8.367 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.423e-05/0.09962, allocations: 51.41 kB / 414.2 MB, free: 8.305 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 2.896e-05/0.09965, allocations: 89.86 kB / 414.3 MB, free: 8.207 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 1.005e-05/0.09967, allocations: 29.73 kB / 414.3 MB, free: 8.172 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 3.257e-05/0.09971, allocations: 84.36 kB / 414.4 MB, free: 8.086 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 4.794e-05/0.09976, allocations: 47.3 kB / 414.5 MB, free: 8.039 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.155e-05/0.0998, allocations: 17.72 kB / 414.5 MB, free: 8.016 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 9.159e-05/0.09989, allocations: 314.8 kB / 414.8 MB, free: 7.699 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 2.787e-05/0.09993, allocations: 24 kB / 414.8 MB, free: 7.676 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 2.275e-05/0.09995, allocations: 23.98 kB / 414.8 MB, free: 7.652 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 7.041e-05/0.1, allocations: 56.84 kB / 414.9 MB, free: 7.594 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.273e-06/0.1, allocations: 4.031 kB / 414.9 MB, free: 7.59 MB / 350.1 MB Notification: Performance of matching and sorting (n=14) (initialization): time 0.0001018/0.1001, allocations: 97.55 kB / 415 MB, free: 7.488 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.335e-05/0.1002, allocations: 8 kB / 415 MB, free: 7.48 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.909e-06/0.1002, allocations: 0 / 415 MB, free: 7.48 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.017e-05/0.1002, allocations: 0 / 415 MB, free: 7.48 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 1.393e-06/0.1002, allocations: 0 / 415 MB, free: 7.48 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 3.958e-06/0.1002, allocations: 0 / 415 MB, free: 7.48 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 2.608e-05/0.1002, allocations: 7.844 kB / 415 MB, free: 7.473 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.729e-06/0.1002, allocations: 0 / 415 MB, free: 7.473 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 6.438e-05/0.1003, allocations: 109.8 kB / 415.1 MB, free: 7.355 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.059e-05/0.1003, allocations: 11.88 kB / 415.1 MB, free: 7.344 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 2.541e-05/0.1004, allocations: 8.078 kB / 415.1 MB, free: 7.34 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.684e-06/0.1004, allocations: 8 kB / 415.1 MB, free: 7.332 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.316e-06/0.1004, allocations: 0 / 415.1 MB, free: 7.332 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.974e-06/0.1004, allocations: 0 / 415.1 MB, free: 7.332 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 9.755e-05/0.1005, allocations: 161.7 kB / 415.3 MB, free: 7.125 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.595e-06/0.1005, allocations: 3.938 kB / 415.3 MB, free: 7.121 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 2.975e-06/0.1005, allocations: 4 kB / 415.3 MB, free: 7.117 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.292e-06/0.1005, allocations: 7.875 kB / 415.3 MB, free: 7.109 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.82e-06/0.1005, allocations: 0 / 415.3 MB, free: 7.109 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.032e-06/0.1005, allocations: 4 kB / 415.3 MB, free: 7.105 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.248e-06/0.1005, allocations: 3.984 kB / 415.3 MB, free: 7.102 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001175/0.1007, allocations: 127.2 kB / 415.4 MB, free: 6.961 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 3.698e-05/0.1007, allocations: 88.98 kB / 415.5 MB, free: 6.855 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 9.548e-06/0.1007, allocations: 0 / 415.5 MB, free: 6.855 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 1.803e-05/0.1007, allocations: 0 / 415.5 MB, free: 6.855 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 1.124e-05/0.1008, allocations: 4 kB / 415.5 MB, free: 6.852 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.164e-06/0.1008, allocations: 0 / 415.5 MB, free: 6.852 MB / 350.1 MB Notification: Performance of sorting global known variables: time 2.241e-05/0.1008, allocations: 79.31 kB / 415.6 MB, free: 6.773 MB / 350.1 MB Notification: Performance of sort global known variables: time 1.01e-07/0.1008, allocations: 0 / 415.6 MB, free: 6.773 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.0001947/0.101, allocations: 12 kB / 415.6 MB, free: 6.762 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.0004655/0.1015, allocations: 0.6792 MB / 416.3 MB, free: 6.059 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.0001109/0.1016, allocations: 67.98 kB / 416.4 MB, free: 5.992 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 2.074e-06/0.1016, allocations: 0 / 416.4 MB, free: 5.992 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 3.846e-05/0.1017, allocations: 35.98 kB / 416.4 MB, free: 5.957 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003465/0.102, allocations: 34.56 kB / 416.4 MB, free: 5.926 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0004409/0.1025, allocations: 227 kB / 416.7 MB, free: 5.664 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002179/0.1027, allocations: 0.6807 MB / 417.3 MB, free: 4.957 MB / 350.1 MB Notification: Performance of simCode: alias equations: time 2.303e-05/0.1027, allocations: 4 kB / 417.3 MB, free: 4.953 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 2.244e-05/0.1027, allocations: 11.44 kB / 417.4 MB, free: 4.941 MB / 350.1 MB Notification: Performance of SimCode: time 2.11e-07/0.1027, allocations: 0 / 417.4 MB, free: 4.941 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.01868/0.1214, allocations: 2.453 MB / 419.8 MB, free: 2.559 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 7.348/7.469, allocations: 7.859 kB / 419.8 MB, free: 2.551 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)