Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr ExternalMedia_ExternalMedia.Test.TestMedium.TestState.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: translateModel(ExternalMedia.Test.TestMedium.TestState,tolerance=1e-06,outputFormat="empty",numberOfIntervals=2000,variableFilter="",fileNamePrefix="ExternalMedia_ExternalMedia.Test.TestMedium.TestState") translateModel(ExternalMedia.Test.TestMedium.TestState,tolerance=1e-06,outputFormat="empty",numberOfIntervals=2000,variableFilter="",fileNamePrefix="ExternalMedia_ExternalMedia.Test.TestMedium.TestState") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001026/0.001026, allocations: 100.3 kB / 15.05 MB, free: 1.105 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.0009669/0.0009669, allocations: 177.3 kB / 15.94 MB, free: 228 kB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.338/1.338, allocations: 223.2 MB / 239.9 MB, free: 5.453 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ExternalMedia 4.0.0/package.mo): time 0.15/0.15, allocations: 2.795 MB / 293.8 MB, free: 4.328 MB / 238.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0004618/0.0004619, allocations: 8 kB / 355.5 MB, free: 4.375 MB / 286.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1128/0.1133, allocations: 51.25 MB / 406.8 MB, free: 1.07 MB / 334.1 MB Notification: Performance of NFInst.instantiate(ExternalMedia.Test.TestMedium.TestState): time 0.00658/0.1199, allocations: 5.015 MB / 411.8 MB, free: 12.03 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.000296/0.1202, allocations: 311.5 kB / 412.1 MB, free: 11.73 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 2.32e-05/0.1203, allocations: 0 / 412.1 MB, free: 11.73 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0002551/0.1206, allocations: 79.73 kB / 412.2 MB, free: 11.65 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 3.306e-05/0.1206, allocations: 19.94 kB / 412.2 MB, free: 11.63 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0001852/0.1208, allocations: 43.84 kB / 412.2 MB, free: 11.59 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 9.088e-05/0.1209, allocations: 43.88 kB / 412.3 MB, free: 11.54 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 6.233e-05/0.121, allocations: 3.938 kB / 412.3 MB, free: 11.54 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 3.105e-05/0.121, allocations: 15.94 kB / 412.3 MB, free: 11.52 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 4.686e-05/0.1211, allocations: 11.94 kB / 412.3 MB, free: 11.51 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 1.07e-05/0.1211, allocations: 0 / 412.3 MB, free: 11.51 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0002339/0.1213, allocations: 67.97 kB / 412.4 MB, free: 11.45 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 9.899e-06/0.1213, allocations: 0 / 412.4 MB, free: 11.45 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 3.513e-05/0.1214, allocations: 37.64 kB / 412.4 MB, free: 11.4 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0001026/0.1215, allocations: 31.95 kB / 412.4 MB, free: 11.37 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 2.545e-06/0.1215, allocations: 0 / 412.4 MB, free: 11.37 MB / 350.1 MB Notification: Performance of FrontEnd: time 1.453e-06/0.1215, allocations: 0 / 412.4 MB, free: 11.37 MB / 350.1 MB Notification: Performance of Transformations before backend: time 4.037e-06/0.1215, allocations: 0 / 412.4 MB, free: 11.37 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: 15 * Number of variables: 15 Notification: Performance of Generate backend data structure: time 0.0003392/0.1218, allocations: 355.2 kB / 412.8 MB, free: 10.98 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.824e-05/0.1219, allocations: 8.031 kB / 412.8 MB, free: 10.97 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.008e-05/0.1219, allocations: 3.906 kB / 412.8 MB, free: 10.96 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001207/0.1221, allocations: 167 kB / 412.9 MB, free: 10.76 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.245e-05/0.1221, allocations: 0 / 412.9 MB, free: 10.76 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 8.506e-06/0.1221, allocations: 0 / 412.9 MB, free: 10.76 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001365/0.1222, allocations: 57.62 kB / 413 MB, free: 10.7 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 7.874e-06/0.1223, allocations: 0 / 413 MB, free: 10.7 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.153e-05/0.1223, allocations: 3.953 kB / 413 MB, free: 10.7 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.806e-06/0.1223, allocations: 0 / 413 MB, free: 10.7 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 4.12e-05/0.1223, allocations: 31.98 kB / 413 MB, free: 10.66 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001631/0.1225, allocations: 169.7 kB / 413.2 MB, free: 10.45 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 8.503e-05/0.1226, allocations: 50.58 kB / 413.3 MB, free: 10.39 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.464e-05/0.1226, allocations: 0 / 413.3 MB, free: 10.39 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.294e-05/0.1227, allocations: 38.5 kB / 413.3 MB, free: 10.34 MB / 350.1 MB Notification: Performance of pre-optimization done (n=15): time 7.72e-07/0.1227, allocations: 0 / 413.3 MB, free: 10.34 MB / 350.1 MB Notification: Performance of matching and sorting (n=15): time 0.0002721/0.1229, allocations: 214.9 kB / 413.5 MB, free: 10.11 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.56e-05/0.123, allocations: 59.39 kB / 413.6 MB, free: 10.04 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 4.297e-05/0.123, allocations: 89.86 kB / 413.6 MB, free: 9.941 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 1.157e-05/0.1231, allocations: 25.7 kB / 413.7 MB, free: 9.91 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 2.769e-05/0.1231, allocations: 84.12 kB / 413.8 MB, free: 9.824 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 6.273e-05/0.1232, allocations: 51.28 kB / 413.8 MB, free: 9.773 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.023e-06/0.1232, allocations: 0 / 413.8 MB, free: 9.773 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 9.749e-05/0.1233, allocations: 314.8 kB / 414.1 MB, free: 9.457 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 2.965e-05/0.1233, allocations: 27.98 kB / 414.1 MB, free: 9.43 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 2.335e-05/0.1233, allocations: 26.67 kB / 414.2 MB, free: 9.406 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 4.152e-05/0.1234, allocations: 27.98 kB / 414.2 MB, free: 9.379 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.563e-06/0.1234, allocations: 3.938 kB / 414.2 MB, free: 9.375 MB / 350.1 MB Notification: Performance of matching and sorting (n=15) (initialization): time 0.0001104/0.1235, allocations: 89.59 kB / 414.3 MB, free: 9.281 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.483e-05/0.1235, allocations: 15.88 kB / 414.3 MB, free: 9.266 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.426e-06/0.1235, allocations: 3.984 kB / 414.3 MB, free: 9.262 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.155e-05/0.1236, allocations: 0 / 414.3 MB, free: 9.262 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 1.102e-06/0.1236, allocations: 0 / 414.3 MB, free: 9.262 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 4.659e-06/0.1236, allocations: 0 / 414.3 MB, free: 9.262 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 3.06e-05/0.1236, allocations: 11.89 kB / 414.3 MB, free: 9.25 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.01e-06/0.1236, allocations: 4.062 kB / 414.3 MB, free: 9.246 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: 1 (state.phase) * 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 (linear and non-linear blocks): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 6.853e-05/0.1237, allocations: 105.8 kB / 414.4 MB, free: 9.133 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.338e-05/0.1237, allocations: 15.89 kB / 414.4 MB, free: 9.117 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001577/0.1239, allocations: 109.5 kB / 414.5 MB, free: 9.008 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.698e-06/0.1239, allocations: 0 / 414.5 MB, free: 9.008 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.158e-06/0.1239, allocations: 4.031 kB / 414.5 MB, free: 9.004 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.807e-06/0.1239, allocations: 3.984 kB / 414.6 MB, free: 9 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001124/0.124, allocations: 173.6 kB / 414.7 MB, free: 8.781 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.162e-06/0.124, allocations: 0 / 414.7 MB, free: 8.781 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 1.002e-06/0.124, allocations: 0 / 414.7 MB, free: 8.781 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.914e-06/0.1241, allocations: 0 / 414.7 MB, free: 8.781 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.04e-06/0.1241, allocations: 0 / 414.7 MB, free: 8.781 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.412e-06/0.1241, allocations: 0 / 414.7 MB, free: 8.781 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.052e-06/0.1241, allocations: 0 / 414.7 MB, free: 8.781 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001201/0.1242, allocations: 131.6 kB / 414.8 MB, free: 8.637 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 3.495e-05/0.1242, allocations: 85.09 kB / 414.9 MB, free: 8.535 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 8.927e-06/0.1243, allocations: 0 / 414.9 MB, free: 8.535 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 1.879e-05/0.1243, allocations: 0 / 414.9 MB, free: 8.535 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 1.498e-05/0.1243, allocations: 3.938 kB / 414.9 MB, free: 8.531 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.314e-06/0.1243, allocations: 0 / 414.9 MB, free: 8.531 MB / 350.1 MB Notification: Performance of sorting global known variables: time 2.568e-05/0.1243, allocations: 75.28 kB / 415 MB, free: 8.457 MB / 350.1 MB Notification: Performance of sort global known variables: time 1.1e-07/0.1243, allocations: 0 / 415 MB, free: 8.457 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.0001879/0.1245, allocations: 19.94 kB / 415 MB, free: 8.438 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: 1 (state.phase) * 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 (linear and non-linear blocks): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.0002379/0.1248, allocations: 128.7 kB / 415.2 MB, free: 8.309 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.0001094/0.1249, allocations: 71.92 kB / 415.2 MB, free: 8.238 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 1.834e-06/0.1249, allocations: 4.062 kB / 415.2 MB, free: 8.234 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 3.47e-05/0.1249, allocations: 39.98 kB / 415.3 MB, free: 8.195 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003071/0.1253, allocations: 31.92 kB / 415.3 MB, free: 8.164 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0003327/0.1256, allocations: 274.2 kB / 415.6 MB, free: 7.867 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002259/0.1258, allocations: 0.6928 MB / 416.3 MB, free: 7.148 MB / 350.1 MB Notification: Performance of simCode: alias equations: time 2.711e-05/0.1259, allocations: 4 kB / 416.3 MB, free: 7.145 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 9.769e-06/0.1259, allocations: 7.438 kB / 416.3 MB, free: 7.137 MB / 350.1 MB Notification: Performance of SimCode: time 2.2e-07/0.1259, allocations: 3.938 kB / 416.3 MB, free: 7.133 MB / 350.1 MB Notification: Performance of Templates: time 0.003569/0.1295, allocations: 1.371 MB / 417.6 MB, free: 5.789 MB / 350.1 MB make -j1 -f ExternalMedia_ExternalMedia.Test.TestMedium.TestState.makefile Environment - environmentSimulation: (rm -f ExternalMedia_ExternalMedia.Test.TestMedium.TestState.pipe ; mkfifo ExternalMedia_ExternalMedia.Test.TestMedium.TestState.pipe ; head -c 1048576 < ExternalMedia_ExternalMedia.Test.TestMedium.TestState.pipe >> ../files/ExternalMedia_ExternalMedia.Test.TestMedium.TestState.sim & ./ExternalMedia_ExternalMedia.Test.TestMedium.TestState -abortSlowSimulation -alarm=480 -lv LOG_STATS > ExternalMedia_ExternalMedia.Test.TestMedium.TestState.pipe 2>&1) Environment - environmentSimulation: