Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr ExternalMedia_ExternalMedia.Test.TestMedium.TestConstants.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.TestConstants,fileNamePrefix="ExternalMedia_ExternalMedia_Test_TestMedium_TestConstants",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(ExternalMedia.Test.TestMedium.TestConstants,fileNamePrefix="ExternalMedia_ExternalMedia_Test_TestMedium_TestConstants",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.0007547/0.0007547, allocations: 97.64 kB / 15.36 MB, free: 0.7344 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.004769/0.004769, allocations: 170.1 kB / 16.27 MB, free: 6.652 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.302/1.302, allocations: 223.3 MB / 240.3 MB, free: 5.352 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ExternalMedia 4.0.0/package.mo): time 0.137/0.137, allocations: 2.785 MB / 294.2 MB, free: 4.254 MB / 238.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0002934/0.0002934, allocations: 8 kB / 356.3 MB, free: 3.91 MB / 286.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.08839/0.0887, allocations: 51.26 MB / 407.6 MB, free: 0.6055 MB / 334.1 MB Notification: Performance of NFInst.instantiate(ExternalMedia.Test.TestMedium.TestConstants): time 0.006183/0.09492, allocations: 6.923 MB / 414.5 MB, free: 9.648 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 8.055e-06/0.09495, allocations: 7.922 kB / 414.5 MB, free: 9.641 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 8.847e-06/0.09497, allocations: 7.938 kB / 414.5 MB, free: 9.633 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 8.646e-06/0.09498, allocations: 0 / 414.5 MB, free: 9.633 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0002638/0.09525, allocations: 112.4 kB / 414.6 MB, free: 9.523 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 2.104e-06/0.09526, allocations: 0 / 414.6 MB, free: 9.523 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 2.74e-05/0.09529, allocations: 7.938 kB / 414.6 MB, free: 9.516 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 2.496e-05/0.09532, allocations: 0 / 414.6 MB, free: 9.516 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.02236/0.1177, allocations: 22.39 kB / 414.6 MB, free: 9.496 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 1.552e-05/0.1177, allocations: 0 / 414.6 MB, free: 9.496 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 1.12e-05/0.1178, allocations: 3.984 kB / 414.6 MB, free: 9.492 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 5.511e-06/0.1178, allocations: 4 kB / 414.6 MB, free: 9.488 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 9.347e-06/0.1178, allocations: 4 kB / 414.7 MB, free: 9.484 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 2.699e-05/0.1178, allocations: 25.7 kB / 414.7 MB, free: 9.453 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 3.622e-05/0.1179, allocations: 0 / 414.7 MB, free: 9.453 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 6.913e-06/0.1179, allocations: 0 / 414.7 MB, free: 9.453 MB / 350.1 MB Notification: Performance of FrontEnd: time 1.613e-06/0.1179, allocations: 3.938 kB / 414.7 MB, free: 9.449 MB / 350.1 MB Notification: Performance of Transformations before backend: time 4.368e-06/0.1179, allocations: 0 / 414.7 MB, free: 9.449 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: 1 * Number of variables: 1 Notification: Performance of Generate backend data structure: time 0.0002535/0.1181, allocations: 315.6 kB / 415 MB, free: 9.094 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.444e-05/0.1182, allocations: 8.031 kB / 415 MB, free: 9.086 MB / 350.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 3.524e-05/0.1182, allocations: 30.75 kB / 415 MB, free: 9.047 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 2.389e-05/0.1183, allocations: 16.77 kB / 415 MB, free: 9.031 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 9.891e-05/0.1184, allocations: 164.4 kB / 415.2 MB, free: 8.832 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.12e-05/0.1184, allocations: 384 / 415.2 MB, free: 8.832 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 6.111e-06/0.1184, allocations: 384 / 415.2 MB, free: 8.832 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 8.806e-05/0.1185, allocations: 29.64 kB / 415.2 MB, free: 8.797 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 7.304e-06/0.1185, allocations: 0 / 415.2 MB, free: 8.797 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 8.065e-06/0.1185, allocations: 3.984 kB / 415.2 MB, free: 8.793 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.698e-06/0.1185, allocations: 0 / 415.2 MB, free: 8.793 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 1.948e-05/0.1185, allocations: 7.938 kB / 415.2 MB, free: 8.785 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0003086/0.1189, allocations: 379.5 kB / 415.6 MB, free: 8.363 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 7.995e-05/0.1189, allocations: 169.2 kB / 415.8 MB, free: 8.188 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 3.916e-05/0.119, allocations: 80.14 kB / 415.9 MB, free: 8.105 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.309e-05/0.119, allocations: 79.22 kB / 415.9 MB, free: 8.027 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.396e-05/0.1191, allocations: 117.8 kB / 416.1 MB, free: 7.902 MB / 350.1 MB Notification: Performance of pre-optimization done (n=0): time 1.433e-06/0.1191, allocations: 0 / 416.1 MB, free: 7.902 MB / 350.1 MB Notification: Performance of matching and sorting (n=0): time 6.778e-05/0.1192, allocations: 29.64 kB / 416.1 MB, free: 7.867 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.369e-05/0.1192, allocations: 130.7 kB / 416.2 MB, free: 7.727 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 7.908e-05/0.1193, allocations: 89.86 kB / 416.3 MB, free: 7.629 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 1.227e-05/0.1193, allocations: 25.7 kB / 416.3 MB, free: 7.598 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 3.744e-05/0.1194, allocations: 80.14 kB / 416.4 MB, free: 7.516 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 3.336e-06/0.1194, allocations: 4.125 kB / 416.4 MB, free: 7.512 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.249e-05/0.1194, allocations: 9.719 kB / 416.4 MB, free: 7.496 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 0.000104/0.1195, allocations: 322.8 kB / 416.7 MB, free: 7.172 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 5.932e-06/0.1195, allocations: 0 / 416.7 MB, free: 7.172 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 3.987e-06/0.1195, allocations: 0 / 416.7 MB, free: 7.172 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 2.34e-05/0.1195, allocations: 12.84 kB / 416.7 MB, free: 7.156 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.883e-06/0.1196, allocations: 3.938 kB / 416.7 MB, free: 7.152 MB / 350.1 MB Notification: Performance of matching and sorting (n=1) (initialization): time 8.695e-05/0.1196, allocations: 29.7 kB / 416.8 MB, free: 7.117 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.211e-05/0.1197, allocations: 8.094 kB / 416.8 MB, free: 7.109 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.787e-06/0.1197, allocations: 0 / 416.8 MB, free: 7.109 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 9.648e-06/0.1197, allocations: 0 / 416.8 MB, free: 7.109 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 4.506e-05/0.1197, allocations: 8 kB / 416.8 MB, free: 7.102 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 4.088e-06/0.1197, allocations: 0 / 416.8 MB, free: 7.102 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 1.151e-05/0.1198, allocations: 0 / 416.8 MB, free: 7.102 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.677e-06/0.1198, allocations: 0 / 416.8 MB, free: 7.102 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): 1 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * 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.488e-05/0.1199, allocations: 193.1 kB / 417 MB, free: 6.902 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.298e-05/0.1199, allocations: 116.8 kB / 417.1 MB, free: 6.781 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 4.533e-05/0.12, allocations: 104.1 kB / 417.2 MB, free: 6.676 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.766e-05/0.12, allocations: 180.3 kB / 417.4 MB, free: 6.492 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.821e-05/0.1201, allocations: 184.2 kB / 417.6 MB, free: 6.305 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.355e-05/0.1201, allocations: 176.3 kB / 417.7 MB, free: 6.125 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.000206/0.1203, allocations: 409.1 kB / 418.1 MB, free: 5.668 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.815e-05/0.1204, allocations: 105 kB / 418.2 MB, free: 5.559 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 3.719e-05/0.1204, allocations: 105 kB / 418.3 MB, free: 5.449 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 5.297e-05/0.1205, allocations: 184.2 kB / 418.5 MB, free: 5.262 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.73e-05/0.1205, allocations: 176.3 kB / 418.7 MB, free: 5.082 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 5.505e-05/0.1206, allocations: 180.2 kB / 418.9 MB, free: 4.898 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.268e-05/0.1207, allocations: 188.3 kB / 419 MB, free: 4.707 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001174/0.1208, allocations: 307.7 kB / 419.3 MB, free: 4.383 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 8.316e-05/0.1209, allocations: 178.1 kB / 419.5 MB, free: 4.184 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 7.03e-05/0.121, allocations: 184.2 kB / 419.7 MB, free: 3.996 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 6.281e-05/0.121, allocations: 101 kB / 419.8 MB, free: 3.891 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.276e-05/0.1211, allocations: 184.3 kB / 420 MB, free: 3.703 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.988e-05/0.1211, allocations: 112.9 kB / 420.1 MB, free: 3.586 MB / 350.1 MB Notification: Performance of sorting global known variables: time 3.54e-05/0.1212, allocations: 79.22 kB / 420.2 MB, free: 3.508 MB / 350.1 MB Notification: Performance of sort global known variables: time 1.1e-07/0.1212, allocations: 0 / 420.2 MB, free: 3.508 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.0001973/0.1214, allocations: 4 kB / 420.2 MB, free: 3.504 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 (0): * Single equations (assignments): 0 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * 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.0003482/0.1217, allocations: 0.7971 MB / 421 MB, free: 2.68 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 5.442e-05/0.1218, allocations: 8.281 kB / 421 MB, free: 2.672 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 1.904e-06/0.1218, allocations: 4 kB / 421 MB, free: 2.668 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 1.653e-06/0.1218, allocations: 0 / 421 MB, free: 2.668 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003574/0.1222, allocations: 0.5246 MB / 421.5 MB, free: 2.141 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0003289/0.1225, allocations: 189.5 kB / 421.7 MB, free: 1.91 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000215/0.1227, allocations: 0.6692 MB / 422.4 MB, free: 1.215 MB / 350.1 MB Notification: Performance of simCode: alias equations: time 1.29e-05/0.1228, allocations: 0 / 422.4 MB, free: 1.215 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 1.356e-05/0.1228, allocations: 7.438 kB / 422.4 MB, free: 1.207 MB / 350.1 MB Notification: Performance of SimCode: time 1.523e-06/0.1228, allocations: 0 / 422.4 MB, free: 1.207 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.008821/0.1316, allocations: 0.6931 MB / 423.1 MB, free: 0.6133 MB / 350.1 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0002049/0.1318, allocations: 201.9 kB / 423.2 MB, free: 356 kB / 350.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 1.679/1.811, allocations: 0 / 423.2 MB, free: 356 kB / 350.1 MB (rm -f ExternalMedia_ExternalMedia.Test.TestMedium.TestConstants.pipe ; mkfifo ExternalMedia_ExternalMedia.Test.TestMedium.TestConstants.pipe ; head -c 1048576 < ExternalMedia_ExternalMedia.Test.TestMedium.TestConstants.pipe >> ../files/ExternalMedia_ExternalMedia.Test.TestMedium.TestConstants.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator --tempDir=temp_ExternalMedia_ExternalMedia_Test_TestMedium_TestConstants_fmu --startTime=0 --stopTime=1 --timeout=50 --tolerance=1e-06 ExternalMedia_ExternalMedia_Test_TestMedium_TestConstants.fmu > ExternalMedia_ExternalMedia.Test.TestMedium.TestConstants.pipe 2>&1)