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: translateModel(ExternalMedia.Test.TestMedium.TestConstants,tolerance=1e-06,outputFormat="empty",numberOfIntervals=2000,variableFilter="",fileNamePrefix="ExternalMedia_ExternalMedia.Test.TestMedium.TestConstants") translateModel(ExternalMedia.Test.TestMedium.TestConstants,tolerance=1e-06,outputFormat="empty",numberOfIntervals=2000,variableFilter="",fileNamePrefix="ExternalMedia_ExternalMedia.Test.TestMedium.TestConstants") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.0009357/0.0009357, allocations: 111.3 kB / 15.23 MB, free: 0.6602 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.001008/0.001008, allocations: 192.9 kB / 16.14 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.232/1.232, allocations: 222.9 MB / 239.8 MB, free: 4.586 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ExternalMedia 4.0.0/package.mo): time 0.1212/0.1212, allocations: 2.763 MB / 292.7 MB, free: 3.824 MB / 238.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001043/0.001043, allocations: 55.91 kB / 353.7 MB, free: 5.059 MB / 286.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09554/0.0966, allocations: 50.24 MB / 404 MB, free: 2.773 MB / 334.1 MB Notification: Performance of NFInst.instantiate(ExternalMedia.Test.TestMedium.TestConstants): time 0.00757/0.1042, allocations: 7.332 MB / 411.3 MB, free: 11.4 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 9.618e-06/0.1042, allocations: 11.92 kB / 411.3 MB, free: 11.39 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 7.915e-06/0.1042, allocations: 0 / 411.3 MB, free: 11.39 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 1.24e-05/0.1043, allocations: 4 kB / 411.3 MB, free: 11.38 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0003069/0.1046, allocations: 104.4 kB / 411.4 MB, free: 11.28 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 2.294e-06/0.1046, allocations: 0 / 411.4 MB, free: 11.28 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 3.118e-05/0.1046, allocations: 7.938 kB / 411.4 MB, free: 11.27 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 3.115e-05/0.1047, allocations: 0 / 411.4 MB, free: 11.27 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.01772/0.1224, allocations: 28.12 kB / 411.4 MB, free: 11.25 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 1.653e-05/0.1225, allocations: 0 / 411.4 MB, free: 11.25 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 8.376e-06/0.1225, allocations: 0 / 411.4 MB, free: 11.25 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 6.121e-06/0.1225, allocations: 0 / 411.4 MB, free: 11.25 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 1.043e-05/0.1225, allocations: 0 / 411.4 MB, free: 11.25 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 2.108e-05/0.1225, allocations: 8 kB / 411.4 MB, free: 11.24 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 5.505e-05/0.1226, allocations: 3.938 kB / 411.5 MB, free: 11.23 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.269e-06/0.1226, allocations: 0 / 411.5 MB, free: 11.23 MB / 350.1 MB Notification: Performance of FrontEnd: time 1.213e-06/0.1226, allocations: 0 / 411.5 MB, free: 11.23 MB / 350.1 MB Notification: Performance of Transformations before backend: time 5.36e-06/0.1226, allocations: 0 / 411.5 MB, free: 11.23 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.0003123/0.1229, allocations: 315.6 kB / 411.8 MB, free: 10.88 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.179e-05/0.123, allocations: 8.031 kB / 411.8 MB, free: 10.87 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 2.915e-05/0.123, allocations: 4.875 kB / 411.8 MB, free: 10.87 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000102/0.1231, allocations: 164.4 kB / 411.9 MB, free: 10.67 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.651e-05/0.1231, allocations: 8.375 kB / 411.9 MB, free: 10.66 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.237e-05/0.1232, allocations: 384 / 411.9 MB, free: 10.66 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001021/0.1233, allocations: 29.83 kB / 412 MB, free: 10.62 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 7.955e-06/0.1233, allocations: 0 / 412 MB, free: 10.62 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 9.057e-06/0.1233, allocations: 0 / 412 MB, free: 10.62 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 9.027e-06/0.1233, allocations: 0 / 412 MB, free: 10.62 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 2.177e-05/0.1233, allocations: 11.92 kB / 412 MB, free: 10.61 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0003262/0.1237, allocations: 383.3 kB / 412.4 MB, free: 10.19 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 9.116e-05/0.1238, allocations: 177.2 kB / 412.5 MB, free: 10 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 3.362e-05/0.1238, allocations: 80.14 kB / 412.6 MB, free: 9.922 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 3.556e-05/0.1239, allocations: 79.27 kB / 412.7 MB, free: 9.844 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.624e-05/0.1239, allocations: 105.8 kB / 412.8 MB, free: 9.73 MB / 350.1 MB Notification: Performance of pre-optimization done (n=0): time 8.72e-07/0.1239, allocations: 0 / 412.8 MB, free: 9.73 MB / 350.1 MB Notification: Performance of matching and sorting (n=0): time 7.77e-05/0.124, allocations: 37.62 kB / 412.8 MB, free: 9.688 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.235e-05/0.1241, allocations: 130.7 kB / 413 MB, free: 9.547 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 7.641e-05/0.1241, allocations: 89.86 kB / 413 MB, free: 9.449 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 1.037e-05/0.1242, allocations: 25.7 kB / 413.1 MB, free: 9.418 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 5.18e-05/0.1242, allocations: 84.14 kB / 413.1 MB, free: 9.332 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 3.727e-06/0.1242, allocations: 0 / 413.1 MB, free: 9.332 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.791e-05/0.1243, allocations: 13.72 kB / 413.2 MB, free: 9.312 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 0.0001122/0.1244, allocations: 318.9 kB / 413.5 MB, free: 8.992 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 9.578e-06/0.1244, allocations: 0 / 413.5 MB, free: 8.992 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 5.881e-06/0.1244, allocations: 0 / 413.5 MB, free: 8.992 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 4.236e-05/0.1245, allocations: 12.84 kB / 413.5 MB, free: 8.977 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.773e-06/0.1245, allocations: 0 / 413.5 MB, free: 8.977 MB / 350.1 MB Notification: Performance of matching and sorting (n=1) (initialization): time 9.808e-05/0.1246, allocations: 37.64 kB / 413.5 MB, free: 8.934 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.087e-05/0.1246, allocations: 9.875 kB / 413.5 MB, free: 8.926 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.601e-06/0.1246, allocations: 0 / 413.5 MB, free: 8.926 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.593e-05/0.1246, allocations: 4.094 kB / 413.5 MB, free: 8.922 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 5.332e-05/0.1247, allocations: 0 / 413.5 MB, free: 8.922 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.051e-06/0.1247, allocations: 0 / 413.5 MB, free: 8.922 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 1.482e-05/0.1247, allocations: 0 / 413.5 MB, free: 8.922 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.135e-06/0.1247, allocations: 4 kB / 413.5 MB, free: 8.918 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 0.000102/0.1248, allocations: 185.1 kB / 413.7 MB, free: 8.727 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 6.761e-05/0.1249, allocations: 112.8 kB / 413.8 MB, free: 8.609 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.967e-05/0.125, allocations: 108.1 kB / 413.9 MB, free: 8.5 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.614e-05/0.125, allocations: 184.3 kB / 414.1 MB, free: 8.312 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.556e-05/0.1251, allocations: 184.2 kB / 414.3 MB, free: 8.125 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.23e-05/0.1251, allocations: 176.3 kB / 414.5 MB, free: 7.945 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002111/0.1254, allocations: 409.1 kB / 414.9 MB, free: 7.488 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.06e-05/0.1254, allocations: 101 kB / 415 MB, free: 7.383 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 3.182e-05/0.1254, allocations: 105 kB / 415.1 MB, free: 7.273 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 5.804e-05/0.1255, allocations: 188.2 kB / 415.3 MB, free: 7.082 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.919e-05/0.1256, allocations: 180.3 kB / 415.4 MB, free: 6.898 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 5.596e-05/0.1256, allocations: 180.2 kB / 415.6 MB, free: 6.715 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.575e-05/0.1257, allocations: 180.2 kB / 415.8 MB, free: 6.531 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001299/0.1258, allocations: 315.7 kB / 416.1 MB, free: 6.199 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 5.98e-05/0.1259, allocations: 178.1 kB / 416.3 MB, free: 6 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.651e-05/0.1259, allocations: 192.1 kB / 416.4 MB, free: 5.805 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 7.246e-05/0.126, allocations: 101 kB / 416.5 MB, free: 5.699 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.744e-05/0.1261, allocations: 180.3 kB / 416.7 MB, free: 5.516 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.097e-05/0.1261, allocations: 112.9 kB / 416.8 MB, free: 5.398 MB / 350.1 MB Notification: Performance of sorting global known variables: time 2.957e-05/0.1262, allocations: 83.28 kB / 416.9 MB, free: 5.316 MB / 350.1 MB Notification: Performance of sort global known variables: time 3.7e-07/0.1262, allocations: 0 / 416.9 MB, free: 5.316 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.000214/0.1264, allocations: 0 / 416.9 MB, free: 5.316 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.0001051/0.1265, allocations: 166.5 kB / 417.1 MB, free: 5.145 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 5.45e-05/0.1265, allocations: 0 / 417.1 MB, free: 5.145 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 2.224e-06/0.1266, allocations: 0 / 417.1 MB, free: 5.145 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 1.803e-06/0.1266, allocations: 4.156 kB / 417.1 MB, free: 5.141 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000338/0.1269, allocations: 0.5262 MB / 417.6 MB, free: 4.609 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.00023/0.1271, allocations: 166.4 kB / 417.8 MB, free: 4.418 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002062/0.1274, allocations: 0.6692 MB / 418.4 MB, free: 3.723 MB / 350.1 MB Notification: Performance of simCode: alias equations: time 1.731e-05/0.1274, allocations: 0 / 418.4 MB, free: 3.723 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 1.633e-05/0.1274, allocations: 11.44 kB / 418.5 MB, free: 3.711 MB / 350.1 MB Notification: Performance of SimCode: time 2.21e-07/0.1274, allocations: 0 / 418.5 MB, free: 3.711 MB / 350.1 MB Notification: Performance of Templates: time 0.001719/0.1291, allocations: 155.7 kB / 418.6 MB, free: 3.562 MB / 350.1 MB make -j1 -f ExternalMedia_ExternalMedia.Test.TestMedium.TestConstants.makefile (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 & ./ExternalMedia_ExternalMedia.Test.TestMedium.TestConstants -abortSlowSimulation -alarm=480 -lv LOG_STATS > ExternalMedia_ExternalMedia.Test.TestMedium.TestConstants.pipe 2>&1)