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.005204/0.005204, allocations: 99.97 kB / 15.73 MB, free: 6.051 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.00117/0.00117, allocations: 199.8 kB / 16.68 MB, free: 5.965 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.4 MB, free: 15.15 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ExternalMedia 4.0.0/package.mo): time 0.01471/0.01471, allocations: 2.774 MB / 293.3 MB, free: 11.97 MB / 238.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001197/0.001197, allocations: 60.12 kB / 405.4 MB, free: 29.59 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1001/0.1013, allocations: 50.23 MB / 455.6 MB, free: 11.32 MB / 334.1 MB Notification: Performance of NFInst.instantiate(ExternalMedia.Test.TestMedium.TestSat): time 0.009226/0.1105, allocations: 7.525 MB / 463.1 MB, free: 3.754 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.0004667/0.111, allocations: 0.5643 MB / 463.7 MB, free: 3.188 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 2.047e-05/0.1111, allocations: 0 / 463.7 MB, free: 3.188 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0002201/0.1113, allocations: 63.67 kB / 463.8 MB, free: 3.125 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 3.275e-05/0.1114, allocations: 19.84 kB / 463.8 MB, free: 3.105 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0001664/0.1116, allocations: 35.75 kB / 463.8 MB, free: 3.07 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 7.925e-05/0.1116, allocations: 31.75 kB / 463.9 MB, free: 3.039 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 5.062e-05/0.1117, allocations: 0 / 463.9 MB, free: 3.039 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 2.905e-05/0.1117, allocations: 15.94 kB / 463.9 MB, free: 3.023 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 5.73e-05/0.1118, allocations: 11.94 kB / 463.9 MB, free: 3.012 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 1.422e-05/0.1118, allocations: 0 / 463.9 MB, free: 3.012 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001973/0.112, allocations: 35.92 kB / 463.9 MB, free: 2.977 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 1.578e-05/0.112, allocations: 7.938 kB / 463.9 MB, free: 2.969 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 4.083e-05/0.1121, allocations: 11.94 kB / 463.9 MB, free: 2.957 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0001638/0.1123, allocations: 56.61 kB / 464 MB, free: 2.902 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.679e-06/0.1123, allocations: 4 kB / 464 MB, free: 2.898 MB / 334.1 MB Notification: Performance of FrontEnd: time 1.734e-06/0.1123, allocations: 0 / 464 MB, free: 2.898 MB / 334.1 MB Notification: Performance of Transformations before backend: time 1.091e-05/0.1123, allocations: 3.938 kB / 464 MB, free: 2.895 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.0003743/0.1127, allocations: 339.4 kB / 464.3 MB, free: 2.516 MB / 334.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.341e-05/0.1127, allocations: 8.031 kB / 464.3 MB, free: 2.508 MB / 334.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 3.516e-05/0.1128, allocations: 34.75 kB / 464.4 MB, free: 2.465 MB / 334.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 2.201e-05/0.1128, allocations: 0.9375 kB / 464.4 MB, free: 2.465 MB / 334.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001092/0.1129, allocations: 164.4 kB / 464.5 MB, free: 2.266 MB / 334.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.146e-05/0.1129, allocations: 384 / 464.5 MB, free: 2.266 MB / 334.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.215e-05/0.1129, allocations: 8.375 kB / 464.5 MB, free: 2.258 MB / 334.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001266/0.1131, allocations: 53.58 kB / 464.6 MB, free: 2.199 MB / 334.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 9.878e-06/0.1131, allocations: 4 kB / 464.6 MB, free: 2.195 MB / 334.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 6.832e-06/0.1131, allocations: 0 / 464.6 MB, free: 2.195 MB / 334.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 9.127e-06/0.1131, allocations: 3.984 kB / 464.6 MB, free: 2.191 MB / 334.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 4.334e-05/0.1132, allocations: 20 kB / 464.6 MB, free: 2.172 MB / 334.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.000165/0.1133, allocations: 181.5 kB / 464.8 MB, free: 1.945 MB / 334.1 MB Notification: Performance of preOpt comSubExp (simulation): time 7.414e-05/0.1134, allocations: 46.58 kB / 464.8 MB, free: 1.891 MB / 334.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 3.991e-05/0.1135, allocations: 40.88 kB / 464.9 MB, free: 1.848 MB / 334.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.907e-05/0.1135, allocations: 7.938 kB / 464.9 MB, free: 1.84 MB / 334.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.114e-05/0.1135, allocations: 34.5 kB / 464.9 MB, free: 1.797 MB / 334.1 MB Notification: Performance of pre-optimization done (n=14): time 1.202e-06/0.1135, allocations: 0 / 464.9 MB, free: 1.797 MB / 334.1 MB Notification: Performance of matching and sorting (n=14): time 0.0002144/0.1138, allocations: 121.8 kB / 465 MB, free: 1.672 MB / 334.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.98e-05/0.1138, allocations: 55.41 kB / 465.1 MB, free: 1.605 MB / 334.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 3.789e-05/0.1138, allocations: 89.86 kB / 465.2 MB, free: 1.508 MB / 334.1 MB Notification: Performance of collectPreVariables (initialization): time 1.178e-05/0.1139, allocations: 25.7 kB / 465.2 MB, free: 1.477 MB / 334.1 MB Notification: Performance of collectInitialEqns (initialization): time 3.727e-05/0.1139, allocations: 84.41 kB / 465.3 MB, free: 1.391 MB / 334.1 MB Notification: Performance of collectInitialBindings (initialization): time 4.962e-05/0.114, allocations: 39.36 kB / 465.3 MB, free: 1.352 MB / 334.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.266e-05/0.114, allocations: 21.7 kB / 465.4 MB, free: 1.324 MB / 334.1 MB Notification: Performance of setup shared object (initialization): time 0.0001136/0.1141, allocations: 314.8 kB / 465.7 MB, free: 1.008 MB / 334.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 3.704e-05/0.1142, allocations: 23.98 kB / 465.7 MB, free: 0.9844 MB / 334.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 2.805e-05/0.1142, allocations: 35.62 kB / 465.7 MB, free: 0.9531 MB / 334.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 7.548e-05/0.1143, allocations: 64.83 kB / 465.8 MB, free: 0.8867 MB / 334.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.342e-06/0.1143, allocations: 0 / 465.8 MB, free: 0.8867 MB / 334.1 MB Notification: Performance of matching and sorting (n=14) (initialization): time 9.774e-05/0.1144, allocations: 93.66 kB / 465.9 MB, free: 0.7891 MB / 334.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.394e-05/0.1144, allocations: 4 kB / 465.9 MB, free: 0.7852 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.673e-06/0.1144, allocations: 0 / 465.9 MB, free: 0.7852 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.275e-05/0.1144, allocations: 0 / 465.9 MB, free: 0.7852 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 7.91e-07/0.1144, allocations: 0 / 465.9 MB, free: 0.7852 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 4.268e-06/0.1145, allocations: 0 / 465.9 MB, free: 0.7852 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 2.647e-05/0.1145, allocations: 11.84 kB / 465.9 MB, free: 0.7734 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.596e-06/0.1145, allocations: 3.984 kB / 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 8.635e-05/0.1146, allocations: 110.5 kB / 466 MB, free: 0.6523 MB / 334.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.053e-05/0.1146, allocations: 11.97 kB / 466 MB, free: 0.6406 MB / 334.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.193e-05/0.1146, allocations: 4.094 kB / 466 MB, free: 0.6406 MB / 334.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.111e-06/0.1147, allocations: 7.922 kB / 466 MB, free: 0.6328 MB / 334.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.138e-06/0.1147, allocations: 3.938 kB / 466 MB, free: 0.6289 MB / 334.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.568e-06/0.1147, allocations: 4 kB / 466 MB, free: 0.625 MB / 334.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001366/0.1148, allocations: 173.6 kB / 466.2 MB, free: 416 kB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.116e-06/0.1148, allocations: 3.938 kB / 466.2 MB, free: 412 kB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 4.51e-07/0.1148, allocations: 0 / 466.2 MB, free: 412 kB / 334.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.382e-06/0.1148, allocations: 0 / 466.2 MB, free: 412 kB / 334.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.891e-06/0.1148, allocations: 0 / 466.2 MB, free: 412 kB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 8.32e-07/0.1149, allocations: 0 / 466.2 MB, free: 412 kB / 334.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.91e-07/0.1149, allocations: 4 kB / 466.2 MB, free: 408 kB / 334.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001319/0.115, allocations: 117 kB / 466.3 MB, free: 272 kB / 334.1 MB Notification: Performance of postOpt removeConstants (simulation): time 4.816e-05/0.1151, allocations: 84.98 kB / 466.4 MB, free: 168 kB / 334.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.003e-05/0.1151, allocations: 0 / 466.4 MB, free: 168 kB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 1.67e-05/0.1151, allocations: 0 / 466.4 MB, free: 168 kB / 334.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 1.484e-05/0.1151, allocations: 7.984 kB / 466.4 MB, free: 160 kB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.813e-06/0.1151, allocations: 0 / 466.4 MB, free: 160 kB / 334.1 MB Notification: Performance of sorting global known variables: time 3.081e-05/0.1152, allocations: 79.31 kB / 466.5 MB, free: 80 kB / 334.1 MB Notification: Performance of sort global known variables: time 2.9e-07/0.1152, allocations: 0 / 466.5 MB, free: 80 kB / 334.1 MB Notification: Performance of remove unused functions: time 0.0001859/0.1153, allocations: 8 kB / 466.5 MB, free: 72 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.0005997/0.116, allocations: 0.6923 MB / 467.2 MB, free: 15.36 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.0001796/0.1161, allocations: 59.98 kB / 467.3 MB, free: 15.3 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 2.454e-06/0.1162, allocations: 3.938 kB / 467.3 MB, free: 15.29 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 3.313e-05/0.1162, allocations: 36 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.0003472/0.1165, allocations: 31.97 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.0004398/0.117, allocations: 223.1 kB / 467.5 MB, free: 14.97 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000248/0.1173, allocations: 0.6846 MB / 468.2 MB, free: 14.26 MB / 350.1 MB Notification: Performance of simCode: alias equations: time 1.622e-05/0.1173, allocations: 4 kB / 468.2 MB, free: 14.25 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 2.555e-05/0.1173, allocations: 15.42 kB / 468.2 MB, free: 14.24 MB / 350.1 MB Notification: Performance of SimCode: time 2.3e-07/0.1173, allocations: 3.938 kB / 468.2 MB, free: 14.23 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.01943/0.1367, allocations: 2.474 MB / 470.7 MB, free: 11.84 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 7.81/7.947, allocations: 3.625 kB / 470.7 MB, free: 11.84 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)